Skip to content

Commit 5153401

Browse files
author
Martín González
committed
fix some typos
1 parent ba09d82 commit 5153401

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ bcn-geodata
33
The official shapefiles from Barcelona, converted to GeoJSON and TopoJSON for making your life easier.
44

55
## Recreate the files
6-
- Go to the [CartoBCN](http://w20.bcn.cat/cartobcn/) website and make an account. After that, to click on `Catàleg` and select the SHP we are going to use, `ED50. DIVISIONS ADMINISTRATIVES en format CAD/SHP/KMZ`.
6+
- Go to the [CartoBCN](http://w20.bcn.cat/cartobcn/) website and make an account. After that, click on `Catàleg` and select the SHP we are going to use, `ED50. DIVISIONS ADMINISTRATIVES en format CAD/SHP/KMZ` in this case.
77

8-
- Extract the zip and extract the `BCN_DIVADM_ED50_SHP.ZIP` zip again. We have five different files, first, the basic statistic area, then `Àrea d'interès`, which is an area important for statistic purposes (covers zones that are useful for calculating stuff), after that the neighbourhoods, the districts and the census area. We will first convert the shapefiles to GeoJSON, using the `ogr2ogr` tool. [A good tutorial](http://ben.balter.com/2013/06/26/how-to-convert-shapefiles-to-geojson-for-use-on-github/) if you don't know what I'm talking about. Let's go!
8+
- Extract the zip and the `BCN_DIVADM_ED50_SHP.ZIP` file again. We have five different files. First, the basic statistic area, then `Àrea d'interès`, which is an area important for statistic purposes (but it covers only Montjuïc), after that the neighbourhoods, the districts and the census area. We will first convert the shapefiles to GeoJSON, using the `ogr2ogr` tool. [A good tutorial](http://ben.balter.com/2013/06/26/how-to-convert-shapefiles-to-geojson-for-use-on-github/) if you don't know what I'm talking about. Let's go!
99

1010
```bash
1111
ogr2ogr -f GeoJSON \
@@ -22,8 +22,10 @@ topojson -o output.topo.json \
2222
NAME_OF_YOUR.geojson \
2323
-p barri=N_Barri,codi=C_Barri
2424
```
25-
In this case I'm using the BCN_Barri_ED50_SHP.shp file. Using the `p` option I tell TopoJSON to preserve the name of the neighbourhood and its code, and rename them to `nom` and `codi`. You can adapt this to your needs looking at the GeoJSON properties of each file.
25+
In this case I'm using the BCN_Barri_ED50_SHP.shp file. Using the `-p` option I tell TopoJSON to preserve the name of the neighbourhood and its code, and rename them to `barri` and `codi`. You can adapt this to your needs looking at the GeoJSON properties for each file.
2626

27-
Congrats! Now you have a set of TopoJSONs ready to visualize! Look at [their command line reference](https://github.com/mbostock/topojson/wiki/Command-Line-Reference) for more powerful options.
27+
----
28+
29+
Congrats! Now you have a set of TopoJSONs ready to visualize! Look at [the TopoJSON command line reference](https://github.com/mbostock/topojson/wiki/Command-Line-Reference) for more powerful options.
2830

2931
Source: Ajuntament de Barcelona / [CartoBCN](http://w20.bcn.cat/cartobcn/). License: CC-BY.

0 commit comments

Comments
 (0)