Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tile making recipe to reduce tile size #264

Open
DeepakSharda opened this issue Sep 13, 2024 · 3 comments
Open

Tile making recipe to reduce tile size #264

DeepakSharda opened this issue Sep 13, 2024 · 3 comments

Comments

@DeepakSharda
Copy link

Erica,

We tried different approach to dump data in geojson based of the fclass tags from OSM data. We tried to make tiles smaller and effecient with this reciepe. This recipe is for people who is being using tippecanoe to make tiles lighter and faster.

  • landuse_1

  • tippecanoe -z17 -Z4 -o ./mbtiles/landuse_1.mbtiles --drop-densest-as-needed --detect-shared-borders --coalesce-densest-as-needed -pS -P landuse_1.geojson -y fclass -y name

  • landuse_2

  • tippecanoe -z17 -Z8 -o ./mbtiles/landuse_2.mbtiles --drop-densest-as-needed --detect-shared-borders --coalesce-densest-as-needed -pS -P landuse_2.geojson -y fclass -y name

  • landuse_3

  • tippecanoe -z17 -Z12 -o ./mbtiles/landuse_3.mbtiles --drop-densest-as-needed --detect-shared-borders --coalesce-densest-as-needed -pS -P landuse_3.geojson -y fclass -y name

for roads

  • roads (trunk_motorways)

  • tippecanoe -z17 -Z4 -o ./mbtiles/trunk_motorway_road.mbtiles --drop-densest-as-needed --coalesce-densest-as-needed -pS -P trunk_and_motorway_and_link.geojsonl.json -y oneway -y ref -y fclass -y name -y bridge -y tunnel

  • roads (primary roads)

  • tippecanoe -z17 -Z7 -o ./mbtiles/primary_road.mbtiles --drop-densest-as-needed --coalesce-densest-as-needed -pS -P primary_and_link.geojsonl.json -y fclass -y name -y bridge -y tunnel -y oneway -y ref

  • roads (secondary roads)

  • tippecanoe -z17 -Z9 -o ./mbtiles/secondary_road.mbtiles --drop-densest-as-needed --coalesce-densest-as-needed -pS -P secondary_link_service.geojsonl.json -y fclass -y name -y bridge -y tunnel -y oneway -y ref

  • roads (tertiary roads)

  • tippecanoe -z17 -Z10 -o ./mbtiles/tertiary_road.mbtiles --drop-densest-as-needed --coalesce-densest-as-needed -pS -P tertiary_and_link.geojsonl.json -y fclass -y name -y bridge -y tunnel -y oneway -y ref

  • roads (residential roads)

  • tippecanoe -z17 -Z14 -o ./mbtiles/residential_road.mbtiles --drop-densest-as-needed --coalesce-densest-as-needed -pS -P residential_all.geojsonl.json -y fclass -y name -y bridge -y tunnel -y oneway -y ref

  • roads (mix roads)

  • tippecanoe -z17 -Z15 -o ./mbtiles/mix_road.mbtiles --drop-densest-as-needed --coalesce-densest-as-needed -pS -P mix_roads.geojsonl.json -y fclass -y name -y bridge -y tunnel -y oneway -y ref

  • roads (unclassesfiled, unknow roads)

  • tippecanoe -z17 -Z14 -o ./mbtiles/unclassified_unknown_roads.mbtiles --drop-densest-as-needed --coalesce-densest-as-needed -pS -P track_all_unclassified_unknown.geojsonl.json -y fclass -y name -y bridge -y tunnel -y oneway -y ref

{A15D8926-23A6-4E92-880B-261AE28B5426}

@e-n-f
Copy link
Collaborator

e-n-f commented Sep 13, 2024

Thanks. You are suggesting this for inclusion in the "recipe" section of the README?

@DeepakSharda
Copy link
Author

if it helps people why not . some of them can help and make it better .

@DeepakSharda
Copy link
Author

this approach is best to reduce the tile size but merging Tile-Join takes ages it runs sometimes for 24 hours and use only single core on 48 core machine. how we can use tile join to use all the cores ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants