cldf / pycldf

python package to read and write CLDF datasets
https://cldf.clld.org
Apache License 2.0
15 stars 7 forks source link

Properties returning GeoJSON serializable objects must return positions using floats not Decimals #177

Closed xrotwang closed 5 months ago

xrotwang commented 5 months ago

orm.Language.as_geojson_feature must cast lat/lon values to float in order to be serializable with json.dumps or similar. https://github.com/cldf/pycldf/blob/2ea08a74d6de7c905871da62a1427299bd4b8d0f/src/pycldf/orm.py#L345-L352