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`: Add `shape` option #40

Open clarisma opened 7 months ago

clarisma commented 7 months ago

shape would allow user to specify a function that supplies the geometry for a given feature; this could be used to apply various transformations, e.g.:

features.geojson(shape=lambda f: f.shape.simplify(100))

(See clarisma/gol-tool#80)