Skip to content

Instantly share code, notes, and snippets.

@peterlozano
Last active August 29, 2015 14:04
Show Gist options
  • Save peterlozano/ce075e241a973bef153d to your computer and use it in GitHub Desktop.
Save peterlozano/ce075e241a973bef153d to your computer and use it in GitHub Desktop.
Leaflet + d3.js. Cádiz Map.
all: cadiz.json
cadiz.json: ca_manzanas.json
topojson \
-o cadiz.json \
--id-property ID_MANZ \
--properties muni=INE_MUN \
-- \
ca_manzanas.json
ca_manzanas.json: CARTOCIUDAD_CALLEJERO_CADIZ/MANZANA.shp
ogr2ogr \
-f GeoJSON \
ca_manzanas.json \
-where "INE_MUN IN ('11012', '11028', '11031')" \
CARTOCIUDAD_CALLEJERO_CADIZ/MANZANA.shp
CARTOCIUDAD_CALLEJERO_CADIZ.zip:
wget http://ftpcdd.cnig.es/PUBLICACION_CARTOCIUDAD/CARTOCIUDAD_CALLEJERO_CADIZ.zip
CARTOCIUDAD_CALLEJERO_CADIZ/MANZANA.shp: CARTOCIUDAD_CALLEJERO_CADIZ.zip
unzip -n CARTOCIUDAD_CALLEJERO_CADIZ.zip
clean:
rm -rf cadiz.json ca_manzanas.json
distclean: clean
rm -rf CARTOCIUDAD_CALLEJERO_CADIZ*
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