The official shapefiles of Barcelona, converted to GeoJSON and TopoJSON.
[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 respective 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 source update: 11/03/2020.