Skip to main content
Returns a GeoJSON string representation of the GeoSeries.

Signature

Parameters

bool
default:"True"
Include bbox (bounds) in the geojson
bool
default:"False"
Whether to retain the index of the GeoSeries as the id property in the generated GeoJSON. Default is False, but may want True if the index is just arbitrary row numbers.
bool
default:"False"
If the CRS is set on the active geometry column it is exported as WGS84 (EPSG:4326) to meet the 2016 GeoJSON specification. Set to True to force re-projection and set to False to ignore CRS. False by default.

Returns

JSON string
See also
  • GeoSeries.to_file: write GeoSeries to file

Examples