Skip to content

Instantly share code, notes, and snippets.

@john-guerra
Forked from kristw/index.html
Last active June 27, 2024 21:18
Show Gist options
  • Save john-guerra/43c7656821069d00dcbc to your computer and use it in GitHub Desktop.
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.)

@dalejandroramirez
Copy link

Hola, quiero quedarme solo con los datos del departamento de antioquia, saben como puedo hacer esto?

@Sebls
Copy link

Sebls commented Jun 27, 2024

¡Excelentes archivos! Los usé para la visualización de datos geo-espaciales por medio de las librerias Geopandas y Geoplot de Python.

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