Shapely¶
For interoperability with Shapely, use the top-level to_shapely
and from_shapely
functions.
Shapely interoperability requires shapely
to be installed, and requires Shapely version 2.0 or higher.
Examples¶
from geoarrow.rust.core import from_shapely, to_shapely
import shapely
shapely_geoms = to_shapely(geoarrow_array)
geoarrow_array = from_shapely(shapely_geoms)