Skip to content

Instantly share code, notes, and snippets.

@john-guerra
Forked from kristw/index.html
Last active November 28, 2025 07:22
Show Gist options
  • Select an option

  • Save john-guerra/43c7656821069d00dcbc to your computer and use it in GitHub Desktop.

Select an option

Save john-guerra/43c7656821069d00dcbc to your computer and use it in GitHub Desktop.
GeoJson map of Colombia

Geo Json map of Colombia

Based on the Map of Thailand by Master Krist Wongsuphasawat, a simple map of Colombia using GeoJSON and D3.js

As in Krist example:

  • Each province is color-coded by the length of its name in English.
  • Hover each province to see text effects.
  • New font is chosen randomly every time you change the province.
  • Click on a province to zoom in. Click somewhere else to zoom out.

I obtained the Colombian GeoJSON by transforming the Colombian shapefiles by Maurix Suárez, using:

ogr2ogr   -f GeoJSON -t_srs EPSG:4326  Colombia.geo.json   depto.shp
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

@vanessabuitrago-web
Copy link

Hola, donde descargo el mapa geojson con municipios?

@john-guerra
Copy link
Author

@RAG7777
Copy link

RAG7777 commented Sep 22, 2025

Hola John, soy nuevo en esto. Me podrías explicar como puedo descargar el mapa de Colombia para cargarlo a Power BI. En resumen estoy usando el mapa de Azures pero no me deja regionalizar Arauca, Córdoba, San Andrés y Vaupés, adicional un municipio de Córdoba me lo ubica en Nariño.

Intenté cambiando los nombres, las tildes, etc, pero nada funciona, por lo cual descargué la Latitud y Longitud Divipola del DANE, pero tampoco logro que me regionalice el mapa dichas ubicaciones.

Te agradezco cualquier ayuda que me puedas brindar.

Captura de pantalla 2025-09-22 162052

@john-guerra
Copy link
Author

john-guerra commented Sep 24, 2025 via email

@ultramarp
Copy link

ultramarp commented Sep 24, 2025

Descargue el mapa Topo Json que @john-guerra creo, de ahi debes importarlo en la visual de shapeMap en PBI, hace varios años atras hice eso mismo con este mapa y me funcionó bien.
Asegurate que los nombres de los departamentos hagan match con tu dataset.
image

John, estuve viendo tu portafolio y es genial todo lo que has hecho y compartido.

@daritzateheran
Copy link

image Working with Metabase perfectly — amazing work, @john-guerra Kudos, and thanks for sharing this resource!!

This totally saved me on a challenge I was stuck on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment