Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geopandas warning #264

Open
barneydobson opened this issue Aug 23, 2024 · 0 comments
Open

geopandas warning #264

barneydobson opened this issue Aug 23, 2024 · 0 comments
Labels
deprecation Deprecation warning from dependencies hacktoberfest

Comments

@barneydobson
Copy link
Collaborator

barneydobson commented Aug 23, 2024

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:

base_dir: C:\Users\bdobson\Documents\data\swmmanywhere
project: temp
extension: json
bbox: [5.15735581e-02, 5.15591821e+01, 9.82559111e-02, 5.16043375e+01]
@barneydobson barneydobson added the deprecation Deprecation warning from dependencies label Aug 23, 2024
@barneydobson barneydobson changed the title Geopandas warning geopandas warning Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecation Deprecation warning from dependencies hacktoberfest
Projects
None yet
Development

No branches or pull requests

1 participant