Closed indus closed 11 months ago
Thanks for this contribution! I fixed one thing (hoisting was modifying the original data layer -- we only want to apply it to the -o
command where it is used), and added a test.
Thanks for accepting this feature. Looks like I only did 20% of the work. I hope I can do better next time.
This option would allow to move properties to the root level of features like so:
Output bboxDE_hoisted.json:
The GeoJSON extension of Tippecanoe is the main reason I want this feature. The suggested postprocessing step with ndjson-cli does not always work and is a step I would like to avoid.
This option is intentionally designed generic (and not tippecanoe specific) because I think it can be useful in other situations as well. For example having
id
on root level is not uncommon and sometimes needed as it is part of the GeoJSON Standard