Skip to content

Commit

Permalink
Improve conversion
Browse files Browse the repository at this point in the history
This commit matches the json files with the OSM slippy map, apparently we don't need a grid anymore
  • Loading branch information
martgnz committed Aug 6, 2019
1 parent ff7152d commit c1b2e43
Show file tree
Hide file tree
Showing 17 changed files with 1,509 additions and 1,517 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ $ ./convert.sh

You can tweak the script to delete properties from the original shapefile and adjust the simplification.

Thanks to [@oscarfonts](https://github.com/oscarfonts) for the NTv2 ICC grid.

## Source

Ajuntament de Barcelona / [CartoBCN](http://w20.bcn.cat/cartobcn/) ([CC-BY](http://w133.bcn.cat/geoportal/descargas/ca_ca_cond_us_carto.pdf)).
Expand Down
466 changes: 233 additions & 233 deletions area-estadistica-basica/area-estadistica-basica.geojson

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion area-estadistica-basica/area-estadistica-basica.json

Large diffs are not rendered by default.

146 changes: 73 additions & 73 deletions barris/barris.geojson

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion barris/barris.json

Large diffs are not rendered by default.

8 changes: 1 addition & 7 deletions convert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
generate_files() {
rm $1/*.geojson $1/*.json

ogr2ogr -f "GeoJSON" \
-s_srs "+init=epsg:23031 +nadgrids=./src/100800401.gsb +wktext" \
-t_srs EPSG:4326 \
-overwrite \
"$1"/"$1".geojson \
src/"$2".shp

ogr2ogr -f "GeoJSON" -t_srs crs:84 "$1"/"$1".geojson src/"$2".shp
geo2topo -q 1e4 "$1"/"$1".geojson > "$1"/"$1".json
}

Expand Down
20 changes: 10 additions & 10 deletions districtes/districtes.geojson

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion districtes/districtes.json

Large diffs are not rendered by default.

80 changes: 40 additions & 40 deletions gran-barri/gran-barri.geojson

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gran-barri/gran-barri.json

Large diffs are not rendered by default.

2,140 changes: 1,070 additions & 1,070 deletions seccio-censal/seccio-censal.geojson

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion seccio-censal/seccio-censal.json

Large diffs are not rendered by default.

Binary file removed src/100800401.gsb
Binary file not shown.
2 changes: 1 addition & 1 deletion terme-municipal/terme-municipal.geojson

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion terme-municipal/terme-municipal.json

Large diffs are not rendered by default.

148 changes: 74 additions & 74 deletions zona-urban-audit/zona-urban-audit.geojson

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion zona-urban-audit/zona-urban-audit.json

Large diffs are not rendered by default.

0 comments on commit c1b2e43

Please sign in to comment.