GeoSeries to a file.
Signature
Parameters
str
required
File path or file handle to write to.
Union[str, None]
default:"None"
The format driver used to write the file, by default None. If not
specified, it’s inferred from the file extension. Available formats
are “geojson”, “geopackage”, and “geoparquet”.
Union[dict, None]
default:"None"
Union[bool, None]
default:"None"
If True, writes the index as a column. If False, no index is
written. By default None, the index is written only if it is named,
is a MultiIndex, or has a non-integer data type.
str
The write mode: ‘w’ to overwrite the existing file or ‘a’ to append.
pyproj.CRS
The coordinate reference system to write. If None, it is determined
from the
GeoSeries crs attribute. The value can be anything
accepted by pyproj.CRS.from_user_input(), such as an
authority string (e.g., “EPSG:4326”) or a WKT string.Additional keyword arguments passed to the underlying writing engine.

