gavo.formats.geojson module

Generating geojson (RFC 7946) files.

This requires annotation with the geojson (DaCHS-private) data model.

See separate documentation in the reference documentation.

No streaming is forseen for this format for now; whatever a web browser can cope with, we can, too. I hope.

To add more geometry types, pick a type name (typically different from what geojson calls the thing because it also depends on the input), add it to _FEATURE_MAKERS and write the Factory, taking _getSepcooFactory as a model.

gavo.formats.geojson.writeTableAsGeoJSON(table, target, acquireSamples=False)[source]

writes a table as geojson.

This requires an annotation with geojson:FeatureCollection.