Skip to content

Instantly share code, notes, and snippets.

@davo
Last active August 29, 2015 14:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davo/f1014c040ed82524b793 to your computer and use it in GitHub Desktop.
Save davo/f1014c040ed82524b793 to your computer and use it in GitHub Desktop.
Parcelario CABA, GeoJSON a TopoJSON
# Requiere GDAL y TopoJSON
# brew install gdal
# npm install -g topojson
all: \
parcelario-topojson.json
parcelario.zip:
curl -o parcelario.zip 'https://recursos-data.buenosaires.gob.ar/ckan2/parcelas/parcelas.zip'
mo_parcelascatastro_100112.shp: parcelario.zip
unzip parcelario.zip
touch mo_parcelascatastro_100112.shp
parcelario.json: mo_parcelascatastro_100112.shp
ogr2ogr -t_srs EPSG:4326 -f GeoJSON parcelario.json mo_parcelascatastro_100112.shp
parcelario-topojson.json: parcelario.json
topojson -o parcelario-topojson.json parcelario.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment