Skip to main content
Encode a GeoDataFrame to GeoArrow format. See https://geoarrow.org/ for details on the GeoArrow specification. This function returns a generic Arrow data object implementing the Arrow PyCapsule Protocol_ (i.e. having an __arrow_c_stream__ method). This object can then be consumed by your Arrow implementation of choice that supports this protocol. .. _Arrow PyCapsule Protocol: https://arrow.apache.org/docs/format/CDataInterface/PyCapsuleInterface.html Note: Requires geopandas versions >= 1.0.0 to use with Sedona.

Parameters

index : bool, default None If True, always include the dataframe’s index(es) as columns in the file output. If False, the index(es) will not be written to the file. If None, the index(ex) will be included as columns in the file output except RangeIndex which is stored as metadata only. Note: Unlike in geopandas, None will include the index in the column because Sedona always converts RangeIndex into a general Index.

ArrowTable A generic Arrow table object with geometry columns encoded to GeoArrow. Examples

Signature

Parameters

bool | None
default:"None"
default:"'WKB'"
bool
default:"True"
bool | None
default:"None"
{‘WKB’, ‘geoarrow’ }, default ‘WKB’ The GeoArrow encoding to use for the data conversion.