geopandas / pyogrio

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

FIX: Disallow negative skip_features #312

Closed brendan-ward closed 9 months ago

brendan-ward commented 9 months ago

This sidesteps making a decision around implementing support for negative skip_features in #309 for now and simply disallows that, which would have been equivalent to the behavior prior to #282. We can add support for negative slicing at a different time, if we so choose.

This raises a specific ValueError and expands tests to match. I also added checks for negative max_features and associated tests.