Closed jorisvandenbossche closed 1 month ago
I agree we should have better errors here.
https://github.com/geoarrow/geoarrow-rs/pull/784 was a big refactor in the Rust core to treat "serialized arrays" like WKT and WKB as a separate concept from "native arrays" like point/line/polygon/etc.
This means that functions like area
now only accept this NativeArray
trait object and not a SerializedArray
trait object. This should enable us to have simpler error messages because we can error when importing the NativeArray
object.
Example I was trying:
The default in geopandas is still WKB, so when passing
gs.to_arrow(geometry_encoding="geoarrow")
explicitly to get native encoding works fine. But it would be useful to get a better error message (or should the WKB actually be supported and get converted on the fly?)