geopandas / pyogrio

Vectorized vector I/O using OGR
https://pyogrio.readthedocs.io
MIT License
260 stars 22 forks source link

TST: Fix write of FlatGeobuf for empty / null geometries for GDAL >= 3.6.4 #247

Closed brendan-ward closed 1 year ago

brendan-ward commented 1 year ago

GDAL 3.6.4 includes changes to the FlatGeobuf driver that disallows writing null / empty geometries when also writing a spatial index (the default).

This updates the failing test to strip those out before writing.

This fixes the failing tests for latest GDAL.