This is a compilations of what I sent to other people.
I have taken it from the cadastre at (https://seduvi.cdmx.gob.mx/programas-delegacionales-de-desarrollo-urbano), I was extremely surprised that CDMX’s cadastre has not being used because it is in the public domain (“Este programa es de carácter público, no es patrocinado ni promovido por partido político alguno y sus recursos provienen de los impuestos que pagan todos los contribuyentes.”) You only need to credit the source: “Agencia Digital de Innovación Pública “Sistema Abierto de Información Geográfica (SIGCDMX)” Disponible en: https://sig.cdmx.gob.mx/”.
After reading osm.wiki/Import/Guidelines, I will make a import page for CDMX data to serve as a documentation for where the data comes from.
Step 1
I download the data from (https://sig.cdmx.gob.mx/datos/descarga). There are two types of data there, the actual cadastry data “Descarga de datos del catastro” and landuse data “Descarga de datos SEDUVI”. The cadastry data is basically a bunch of points and I find that the only useful data there is the address data, which is fairly inaccurate.
It is better to download the landuse data since it has the polygons to work with. I download the shapefile from the “Descarga de datos SEDUVI” section. I’m working at Cuauhtémoc alcadia because it is the central alcadia of CDMX
Generally, since houses in Mexico are connected to each other, often the landuse is the building footprint itself. But, for more complex places like schools, churches, hospital, government areas, etc. it only covers the surrounding of the complex.
Step 2
I then use an application called QGIS to process the shapefile data, by open the .shp file. There are 4 files in that folder that are meant for different functions, fortunately QGIS is smart enough to parse them all. There are a couple of things that I need to do: - I changed the projection from default to EPSG:4326 (osm.wiki/Converting_to_WGS84#QGIS) - Using the Processing toolbox, I use k-means clustering and split vector layer tools to split the alcadia data to 30 files, which is an arbitrary number. This make the files much easier to manage and review in JOSM. - I export it to geojson format, which is readable by JOSM and OSM.
Step 3
I open one file to JOSM and then on another layer, I download the OSM data around the area. We now have two layers, our SIGCDMX data and OSM data. This is the hardest step since I need to figure out how to make the SIGCDMX data live peacefully with OSM data. This is how I do it, in order:
- Use Ctrl+F, search “type:way” to select all ways. Then I remove all the junk tags and add “building=yes”, since 90% of the polygons reflect the actual building footprints in Mexico because all the houses are connected.
- Simplify the areas with a JOSM plugin named “SimplifyArea”. With all ways selected, I click a button that activate the plugin, and a lot of useless nodes are removed! Then, I go to the Validation tool, click verify, then it would spit out an error of “duplicated nodes”. I then press the wrench to auto-fix it, and it works like a charm!
- For places with existing OSM data, I either spend my time adjusting the data node-by-node, occasionally splitting the data or such. Or, I use “Ctrl+C” and “Ctrl+Shift+V” to copy the tags from the old OSM shapes to the new geometries, then delete the old ways. Sometimes I saw nodes with the address, to which I usually merge them to the building or remove them.
- Reclassify landuses for the remaining 10%. A lot of them are basically “landuse=construction” (people building something), “landuse=brownfield” (dirt left unused), or “amenity=parking” (mexicans park their cars on empty spots). But some of them are also schools, commercial areas, industry, parks, etc. During this time I also be mindful to align the roads to the new buildings, or the service roads to the parking lots.
- We still have two layers: SIGCDMX data and OSM data. After doing most of the processing work, I merge the SIGCDMX layer to OSM layer, by right click on it, merge, and click through all the warnings since we have done the processing work.
- I then continue to look for problematic areas, sometimes drawing new buildings or edit the geometries. Afterwards, I use the verification tool to look for common errors such as “highways overlap buildings” or “building inside buildings” or “building overlaps buildings” or “self-intersect ways”, etc. You get the idea.
- Before actually uploading, I then press the upload button to check for any additional errors, and scan the area for any additional adjustments. I often use the satellite layer for this purpose. Finally, I upload the data!
I estimate that for each time I did this, I uploaded at 1000 buildings, since each geojson files contains around a thousand buildings. It is frankly not as quick as you might think, given that I often further split the geojson file to a half and work on 500 buildings at a time for hours. A rough calculation that if I work though 1 geojson file per day, I will finish an alcaldia every 2 months, and finish mapping CDMX in 2 years, ignoring adding addresses or additional verification checks. Mexico City is huge (;𖦹ㅁ𖦹).
Step 4
The next step is to redraw building geometries to match with the satellite data and doing more verifications to check the OSM data is accurate. I then use this page (https://seduvi.cdmx.gob.mx/programas-delegacionales-de-desarrollo-urbano) to map actual landuse data (residential, commercial, retail, etc.) following the example of Quixlian in the Zona Rosa/Colonia Juaréz. As for adding addresses, currently I only use Maxillary and street view images, but I think that in the future we could merge the cadastre data with the building geometries for addresses, but I don’t know how to do that yet and I’m not sure whether the city government did a good job or not.
And here you go, a “short” guide on importing data! Time to write the actual import documentation.
Viva México ٩(^ᗜ^ )و ´-
Discussion
Comment from inserteunnombreaqui on 10 August 2025 at 07:14
On Wiki: osm.wiki/SIGCDMX_import_in_Mexico_City
Comment from Quixlian on 10 August 2025 at 21:30
Your work is impressive. You’ve shown a great understanding of the data and the tools, and it’s clear that you’ve put a lot of effort into making sure everything is accurate. Your step-by-step process is going to be super helpful for others.
Creating an import page for CDMX official data is a great idea and will be really useful for future reference. I’m excited about the potential of this data to enhance the mapping of Mexico City. Your dedication and the quality of your work are evident, and I’m confident that together we can make significant progress. Keep up the good work!
Comment from inserteunnombreaqui on 11 August 2025 at 05:01
Muchas gracias Quixlian! Dos años antes editaba el mapa de mi ciudad (Hánoi, Vietnam) y aprendí muchisimo sobre JOSM y porque OSM si sirve en el mundo. Pero después tuve muchas tareas y por los funas con los scammers/doxxing, borra mi cuenta en OSM y se olvidé. La CDMX y México me interesa desde un año atrás y ama muchos aspectos de la cultura mexicana. Sin embargo, lo que me gusta más es la arquitectura en CDMX que vi en los videos de Sinueton/canales arquitecturas en youtube, como el metro, la naturaleza, la cultura chilanga … siento que las casas pegadas en Mexico se ven como las casas en mi país…
Me siento muy agradecido de que tú y otros mexicanos se interesen en mí y en mi trabajo. Por favor dígame cuando cometa errores, los mensajes son muy importantes para mi.
Comment from mapeadora on 11 August 2025 at 14:16
Hola, felicito tu esfuerzo, sin embargo existe un proceso que todo usuario de OSM debe seguir para hacer importaciones, ¿nos puedes indicar tus pasos en este sentido y su documentación propia? El tema de la licencia deben también considerarse con más cuidado ya que mencionar la fuente en el objeto que agregas no es suficiente (no permanecerá necesariamente en la etapa del uso de datos finales, y esto entonces podrá violar los términos iniciales de las licencias). Nos comentas sobre el proceso formal en línea con las normas de OSM?
Comment from mapeadora on 11 August 2025 at 14:19
Agrego si es necesario dicho proceso: Import/Guidelines - OpenStreetMap Wiki https://share.google/RfSaEFaTnas0jk3D9
Comment from inserteunnombreaqui on 11 August 2025 at 16:03
Hola mapeadora, escribí esta página en la wiki para documentar lo que hago: osm.wiki/SIGCDMX_import_in_Mexico_City.
Sobre la licencia, en la página de SIGCDMX (https://sig.cdmx.gob.mx/datos/descarga) se indica: «Si vas a citar este recurso, te sugerimos que lo hagas de esta forma: Agencia Digital de Innovación Pública “Sistema Abierto de Información Geográfica (SIGCDMX)” Disponible en: https://sig.cdmx.gob.mx/».
En el Sistema de Datos Abiertos vi que el dato tiene una licencia CC-BY, pero el sitio se cayó. En archive.org (https://web.archive.org/web/20220819024617/https://datos.cdmx.gob.mx/api/3/action/package_show?id=uso-de-suelo) se indica en el JSON: “license_id”: “cc-by”, “license_title”: “Creative Commons Attribution”, “license_url”: “https://web.archive.org/web/20220819024617/http://www.opendefinition.org/licenses/cc-by”.
Creo que es suficiente con que el dato tenga una licencia compatible con OSM.
Comment from mapeadora on 11 August 2025 at 16:59
Falta, me parece, un paso esencial del proceso, que es conversarlo con la comunidad local OSM en sus diferentes canales, asegurando llegar al máximo numero de personas, esto antes de iniciar la importación. Esto incluye Telegram y Community forum en sus canales de México.
-> Step 4: Community Buy-in Discuss your plan. Contact the local OSM community to notify them of your plans, including a link to your wiki page. This will help gain the benefit of past experiences, which may include having already reviewed the data you’re considering for import. Check for local user groups, local chapters, and country-specific mailing lists. The osm-community-index can be used to locate some active local communities. Be prepared to answer questions from the community. Discuss with the community the suitability of each layer for importing. Some data can be readily imported without much difficulty, while others are far more difficult (e.g. street centerlines). You must not import the data without local buy-in.
Step 5: Import Review Once the data has been completely prepared and documented, you may submit your review post. You must submit a new post to the Community Forum, to the relevant local community, or to the general channel if no category for the community exists. The post must have the import and import-proposal tags, and follow this template. After 14 days have passed, and all concerns have been addressed, the import may begin.
Comment from mapeadora on 11 August 2025 at 17:12
Por otro lado el asunto de licencia no está tan sencillo, pero al publicar en los chats comunitarios (que es obliggatorio) se te podrá dar mayor explicación y también basado en experiencias. Saludos!
Comment from inserteunnombreaqui on 11 August 2025 at 17:18
Gracias por dimelo. Ahora voy a dejar los changesets y hablar con la comunidad OSM mexicana, y si la licencia no es compatible yo deberá de borrar el import. Discúlpame por mis acciones.
Comment from mapeadora on 12 August 2025 at 23:37
Con la comunidad veremos los comentarios, no te preocupes y si hay cosas que deben ser cambiadas podrás hacerlo, al seguir el proceso estipulado se podrán detectar eventuales problemas. Ojalá esté todo bien!
Comment from inserteunnombreaqui on 13 August 2025 at 01:35
Estoy siendo agradecido por ustedes confían en mi… Ahora voy a investigar otras ciudades de primero mundo como Madrid, Paris, Berlin, … para aprender como dibujar bien en openstreetmap y cómo hacer los importaciones.
Comment from Mapanauta on 13 August 2025 at 21:40
Hola, Muchas gracias por el esfuerzo e interés de hacer una importación de datos OSM, debido a que hace algunos años participé en una de las importaciones en el canal de Telegram de OSM México me pidieron poner parte de la experiencia y sugerencias.
Al hacer una importación de datos en OSM (como ediciones automatizadas en lugar de añadir datos manualmente) es necesario seguir las Directrices de Importación [1]. Este es un conjunto de reglas que la comunidad OSM ha construido para evitar errores cometidos en el pasado y que en lugar de mejorar los datos hicieron algún daño. Esto está regulado por el Data Working Group.
Aquí están los lineamientos de importación [1] osm.wiki/Import/Guidelines http://wiki.openstreetmap.org/wiki/Import/Guidelines
En 2020 hubo un proyecto de importación de carreteras en México realizado por una empresa llamada Kaart y tienen un proyecto muy bien documentado [2] Por favor, consulta el enlace y puedes utilizarlo como un buen ejemplo de cómo hay que preparar también un Wiki en OpenStreetMap para mencionar todo el plan de proyecto de importación.
[2] osm.wiki/Mexico_Road_Name_Project
Una de las personas que más ha participado en proyectos de importación en África compartió conmigo ejemplos de proyectos de importación, especialmente de Puntos de Interés (POI). Hay buenos ejemplos de cómo lo han hecho otros países, pero probablemente el mejor ejemplo sea el de la importación de la red de carreteras de México.
[3] Madrid Pharmacies data import osm.wiki/Madrid_Pharmacies_Import
[4] Health facilities in Nigeria osm.wiki/Import_Nigeria_eHealth_Borno_Health_Facilities
[5] Schools in Uganda osm.wiki/WikiProject_Uganda/Import_Uganda_Bureau_Of_Statistics_Education_Facilities
[6] Data from UNICEF Import project osm.wiki/Import_CAR_UNICEF_workflow
Por favor cualquier duda o comentario me avisas, si no tengo la respuesta trataré de ver quién es la persona que puede ayudar en el proceso,
Miriam G @mapanauta
Comment from inserteunnombreaqui on 14 August 2025 at 04:05
Hola Mapanauta,
No sabía que hay importaciones en México, tuvo que aprender desde los ejemplos que me das. Ahora estoy trabajando en la zona Zócalo y la Condesa porque son zonas más importantes de la ciudad y cerca de la zona rosa. La zona rosa se dibujada manualmente, sin datos exteriores ni importaciones, y se ve muy bien.
Sobre SIGCDMX, los datos tienen la licencia de CC-BY que es compatible con openstreetmap. Actualmente el proceso de hacer la importación es casi todo la mano de obra porque las formas son malas y tuvo mucho tiempo por corregirlas, además odio que el mapa solo tiene datos del gobierno porque no sirve, quiero el OSM tiene más datos. El problema es que no soy mexicano ni tampoco estoy en CDMX :(. Muchísimas gracias por tus consejos, me siento muy agradecido que la comunidad openstreetmap mexicana es tan amable y interesada a mis esfuerzos.
Saludos, An
Comment from inserteunnombreaqui on 14 August 2025 at 04:11
Mapanauta y otra gente aquí: ¿qué opinan sobre los edificios (que tienen la etiqueta source=SIGCDMX) al lado del Zócalo y la Condesa? Son aceptables? Como mejorar mi manera de dibujar? Gracias y saludos, An
Comment from Thelema on 14 August 2025 at 04:51
Hola, me parece un excelente proyecto, sin embargo creo que se requiere autorización expresa por escrito de la Secretaría de Movilidad (SEMOVI) para utilizar los datos en OpenStreetMap.
https://blog.openstreetmap.org/2017/03/17/use-of-cc-by-data/ aunque es relativamente viejo de 2017, es perfectamente aplicable para esta fuente de datos con licencia CC-BY.
¿Alguien sabe cómo consultar vía Transparencia a la Secretaría si estos datos se pueden utilizar en OpenStreetMap?
Comment from inserteunnombreaqui on 14 August 2025 at 05:18
Hacia arriba:
Creo que la repuesta es sí porque este es la fuente de mis datos, pero mejor espera que el sitio se vaya actualizando.
Comment from Thelema on 14 August 2025 at 05:40
Los datos están publicados bajo la licencia CC-BY en su versión 4.0 https://datos.cdmx.gob.mx/dataset/?q=uso+de+suelo&sort=score+desc%2C+metadata_modified+desc&_organization_limit=0&organization=secretaria-de-administracion-y-finanzas&license_id=CC-BY-4.0-ESP
Por lo que estaría genial consultar a la Secretaría vía Transparencia, o por oficio escrito, con una traducción al español de la plantilla https://osmfoundation.org/wiki/Licence/Waiver_and_Permission_Templates/Cover_letter_and_waiver_template_for_CC_BY_4.0
Comment from inserteunnombreaqui on 14 August 2025 at 06:14
Aaaaaa que mal. En el sitio de SIGCDMX se escribe (https://sig.cdmx.gob.mx/datos/descarga):
y en la pagina del mapa (https://sig.cdmx.gob.mx/sig_cdmx/) tienen los contactos:
CENTRO DE APERTURA
Agencia Digital de Innovación Pública
https://centrodeapertura.datos.cdmx.gob.mx/
Correo: [email protected]
CONTACTO SEDUVI
Secretaria de Desarrollo Urbano y Vivienda.
Calle Amores 1322,Colonia Del Valle Centro, Alcaldía Benito Juárez C.P. 03100, Ciudad de México Entrada por San Lorenzo 712.
Teléfono. 5130 2100 Ext.2329 y 2313.
Correo: [email protected]
—— ¿Podrías escribir un correo sobre la licencia al gobierno?
Comment from inserteunnombreaqui on 14 August 2025 at 06:16
Creo que no puedo acceder al sitio de datos abiertos porque estoy fuera de mexico, si quiero acceder iré a usa un VPN.