clarisma / geodesk-py

Fast and storage-efficient spatial database engine for OpenStreetMap data
https://docs.geodesk.com/python
GNU Lesser General Public License v3.0
36 stars 0 forks source link

`Formatter`: Allow customization of IDs #37

Open clarisma opened 10 months ago

clarisma commented 10 months ago

For formats that include a feature ID (currently one GeoJSON), enable the ability to specify a template for IDs (by default, each ID is a string consisting of the uppercase type letter and the feature's ID, e.g. N123). Users may prefer other formats, such as node/123 or a plain number (may need a transformation to ensure uniqueness across OSM types) -- see #35.

Proposed: