bcn-geodata icon indicating copy to clipboard operation
bcn-geodata copied to clipboard

The official shapefiles of Barcelona, converted to GeoJSON and TopoJSON

Barcelona geodata

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]

Metadata

Please read the metadata file for a description of every file and field.

Recreate the files

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.

Source

Ajuntament de Barcelona / CartoBCN (CC-BY).

Last data update: 11/03/2020.