onthegomap / planetiler

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

[FEATURE] Expose OSM feature type #878

Closed quincylvania closed 2 months ago

quincylvania commented 2 months ago

As a followup to #731, there is still one important OSM metadata value that doesn't seem to be accessible as a variable: the geometry type (node, way, or relation). Basically I want to be able to have attributes like these without forking planetiler:

  - key: OSM_TYPE
    value: "${feature.osm_type}" # e.g. `relation`
  - key: OSM_ID
    value: "${feature.osm_type.charAt(0) + feature.id}" # e.g. `r12345678`
quincylvania commented 2 months ago

@msbarry Thanks so much for the rapid response! This will be very helpful.