geometric_features.feature_collection.FeatureCollection.to_geojson

FeatureCollection.to_geojson(fileName, stripHistory=False, indent=4)[source]

Write the feature collection to a geojson file

Parameters
  • fileName (str) – A geojson file to write to

  • stripHistory (bool, optional) – Whether to remove the history attribute (e.g. when splitting features for inclusion in the geometric_features repo)

  • indent (int, optional) – The number of spaces to use for indentation when formatting the geojson file