writeGeoJson

Writes this GeoDataFrame into a GeoJSON file.

Each Feature in the resulting GeoJSON file corresponds to a single row in this GeoDataFrame:

  • "geometry" value is taken from the geometry column.

  • other column values are stored as "properties" of the corresponding names and with the corresponding structure.

According to the specification, the CRS in GeoJSON should be WGS 84; the deprecated "crs" field is written for now.

Parameters

path

a String path to GeoJSON file


Writes this GeoDataFrame into a GeoJSON file.

Each Feature in the resulting GeoJSON file corresponds to a single row in this GeoDataFrame:

  • "geometry" value is taken from the geometry column.

  • other column values are stored as "properties" of the corresponding names and with the corresponding structure.

According to the specification, the CRS in GeoJSON should be WGS 84; the deprecated "crs" field is written for now.

Parameters

path

a Path to GeoJSON file


Writes this GeoDataFrame into a GeoJSON file.

Each Feature in the resulting GeoJSON file corresponds to a single row in this GeoDataFrame:

  • "geometry" value is taken from the geometry column.

  • other column values are stored as "properties" of the corresponding names and with the corresponding structure.

According to the specification, the CRS in GeoJSON should be WGS 84; the deprecated "crs" field is written for now.

Parameters

file

a GeoJSON file