Skip to content

Commit

Permalink
feat: add tile index file
Browse files Browse the repository at this point in the history
  • Loading branch information
friedjoff committed Apr 27, 2020
1 parent 8284c40 commit 8a8e0e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ node_modules
data/spatial/export/*.geojson
data/spatial/tiles/fonts
data/spatial/tiles/forest-type
data/spatial/tiles/tiles.txt
data/spatial/tiles/tree
data/spatial/altitudinal_zones_1995
data/spatial/altitudinal_zones_2085_dry
Expand Down
3 changes: 2 additions & 1 deletion lib/data/spatial/3-tile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ _tile "silver_fir_areas"
echo "Joining tiles ..."
cd /data/spatial/tiles
tile-join --force --maximum-zoom=12 --no-tile-size-limit -e "tree" altitudinal_zones_1995.mbtiles altitudinal_zones_2085_dry.mbtiles altitudinal_zones_2085_less_dry.mbtiles cantonal_boundaries.mbtiles forest_ecoregions.mbtiles forest_types.mbtiles silver_fir_areas.mbtiles
rm altitudinal_zones_1995.mbtiles altitudinal_zones_2085_dry.mbtiles altitudinal_zones_2085_less_dry.mbtiles cantonal_boundaries.mbtiles forest_ecoregions.mbtiles forest_types.mbtiles silver_fir_areas.mbtiles
rm altitudinal_zones_1995.mbtiles altitudinal_zones_2085_dry.mbtiles altitudinal_zones_2085_less_dry.mbtiles cantonal_boundaries.mbtiles forest_ecoregions.mbtiles forest_types.mbtiles silver_fir_areas.mbtiles
find tree -name '*.pbf' > tiles.txt
2 changes: 2 additions & 0 deletions lib/data/spatial/tiles/_headers
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
Access-Control-Allow-Origin: *
/*.pbf
Access-Control-Allow-Origin: *
/*.txt
Access-Control-Allow-Origin: *
/tree/*.pbf
Content-Encoding: gzip

0 comments on commit 8a8e0e2

Please # to comment.