Package gavo :: Package formats :: Module geojson
[frames] | no frames]

Module geojson

source code

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.

Functions
 
writeTableAsGeoJSON(table, target, acquireSamples=False)
writes a table as geojson.
source code
Variables
  JSON_MF_REGISTRY = <gavo.utils.serializers.ValueMapperFactoryR...
  __package__ = 'gavo.formats'
Function Details

writeTableAsGeoJSON(table, target, acquireSamples=False)

source code 

writes a table as geojson.

This requires an annotation with geojson:FeatureCollection.


Variables Details

JSON_MF_REGISTRY

Value:
<gavo.utils.serializers.ValueMapperFactoryRegistry object>