For GeoPandas (and for interoperability with Shapely), I need a way to convert geometries from pygeos to Shapely and vice versa.
As discussed in #47, one way is to go through WKB. In that PR I had a way to directly clone the GEOSGeometry pointer, but if pygeos and shapely are not using the same GEOS library, this can cause problems.
However, going through WKB is also not fully faithful. For example, empty points don't have a WKB representation.
For GeoPandas (and for interoperability with Shapely), I need a way to convert geometries from pygeos to Shapely and vice versa.
As discussed in #47, one way is to go through WKB. In that PR I had a way to directly clone the GEOSGeometry pointer, but if pygeos and shapely are not using the same GEOS library, this can cause problems.
However, going through WKB is also not fully faithful. For example, empty points don't have a WKB representation.