The official shapefiles of Barcelona, converted to GeoJSON and TopoJSON for making your life easier.
[Check out barcelona-atlas to generate your TopoJSON with combined features, fine-grained controls and no need of external dependencies]
Please read the metadata file for a description of every file and field.
Assuming that you have ogr2ogr and topojson-server installed globally:
- Run the script
$ ./convert.sh
- VoilĂ ! Find the files in their respectives folder.
You can tweak the script to delete properties from the original shapefile and adjust the simplification.
Ajuntament de Barcelona / CartoBCN (CC-BY).
Last data update: 28/11/2018.