Skip to content

Instantly share code, notes, and snippets.

@jupaneira
Last active August 28, 2016 05:30
Show Gist options
  • Save jupaneira/d96f98e2bd7fcbc9ce66a70e99e801bd to your computer and use it in GitHub Desktop.
Save jupaneira/d96f98e2bd7fcbc9ce66a70e99e801bd to your computer and use it in GitHub Desktop.
Colombian Municipality

This is an interactive Map of the Colombian Municipality, made with TopoJSON and D3.

Inspired by the Mexican municipalities map, it shows the Administrative division of Colombia.

Colombia is a unitary republic conformed by thirty-two departments and a Capital District. Departments are formed by a grouping of municipalities. [Administrative divisions of Colombia](Administrative divisions of Colombia)

It uses TopoJSON to diferentiate the Departments boundaries through the function topojson.mesh and a special filter.

To obtain the TopoJSON, first I converted the .shp file of the Municipality divition of Colombia by Maurix Suárez to GeoJSON, using:

ogr2ogr   -f GeoJSON -t_srs EPSG:4326  Colombia.geo.json   depto.shp

and then, through mapshaper I obtained the topoJSON file with the corresponding attributes.

Enjoy it :)

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.)

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