Closed mwtoews closed 3 hours ago
Thanks!
The snippet won't fix it as it just inverts the order of conditions but notna()
will emit the warning anyway. We shall suppress the warning here.
Thanks for the tips, makes sense to follow the second suggestion. I can prepare a test and PR for this one.
I'm seeing a UserWarning with geopandas-1.0.0 while using the
to_file()
method.And checking the code here: https://github.com/geopandas/pyogrio/blob/af292e579572a6a33a22a6403873b8e7b0a9d7f6/pyogrio/geopandas.py#L523
A simple fix would be to apply the suggestion from the warning.