2024/08/23 10:07:03 | graphfcn: remove_non_pipe_allowable_links completed.
C:\Users\bdobson\Anaconda3\envs\sa\Lib\site-packages\pyogrio\geopandas.py:523: UserWarning: GeoSeries.notna() previously returned False for both missing (None) and empty geometries. Now, it only returns False for missing values. Since the calling GeoSeries contains empty geometries, the result has changed compared to previous versions of GeoPandas.
Given a GeoSeries 's', you can use '~s.is_empty & s.notna()' to get back the old behaviour.
To further ignore this warning, you can do:
import warnings; warnings.filterwarnings('ignore', 'GeoSeries.notna', UserWarning)
has_z_arr = geometry[geometry.notna() & (~geometry.is_empty)].has_z
Can be triggered with: