onthegomap / planetiler

Flexible tool to build planet-scale vector tilesets from OpenStreetMap data fast
Apache License 2.0
1.35k stars 107 forks source link

[BUG] feature_id gets a 1 added to the end #1042

Closed hyperknot closed 1 hour ago

hyperknot commented 2 hours ago

Describe the bug The OSM feature id gets a 1 to the end. For example: 471357231 https://www.openstreetmap.org/node/471357231 is shown as

maputnik

Latest full planet run, GitHub commit: cf49b86

msbarry commented 1 hour ago

Yep that's the new behavior as of #826 - the vector tile feature IDs are osm ID * 10 + {1 for OSM nodes, 2 for OSM ways, 3 for OSM relations, 0 for any other source} so you can tell whether the feature came from a node, way or relation. You can set --feature-source-id-multiplier=false if you want to disable the behavior and just set vector tile feature IDs to the original ID of the osm element.

hyperknot commented 1 hour ago

I see, thanks!