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

Deprecation warnings related to geopandas parquet and Shapely #58

Open
nmarchio opened this issue Sep 21, 2022 · 7 comments
Open

Deprecation warnings related to geopandas parquet and Shapely #58

nmarchio opened this issue Sep 21, 2022 · 7 comments
Labels
package management Improve how to install, upgrade, configure software priority High priority issue

Comments

@nmarchio
Copy link
Member

nmarchio commented Sep 21, 2022

Sort out deprecation warning and migrate / test everything using Shapely 2.0 when its released

https://github.com/mansueto-institute/kblock/blob/main/kblock/batch_kblock.py#L34

warnings.filterwarnings('ignore', message='.*initial implementation of Parquet.*')
warnings.filterwarnings("ignore", category=ShapelyDeprecationWarning)
@nmarchio nmarchio added the package management Improve how to install, upgrade, configure software label Sep 21, 2022
@nmarchio
Copy link
Member Author

nmarchio commented Oct 5, 2022

@nmarchio nmarchio added the priority High priority issue label Oct 28, 2022
@nmarchio
Copy link
Member Author

nmarchio commented Oct 28, 2022

@nmarchio
Copy link
Member Author

nmarchio commented Nov 4, 2022

@nmarchio
Copy link
Member Author

nmarchio commented Nov 4, 2022

Parquet: opengeospatial/geoparquet#122

@nmarchio
Copy link
Member Author

GNB
/Users/nm/Desktop/kblock/kblock/batch_1a_prepare_gadm.py:97: ShapelyDeprecationWarning: The array interface is deprecated and will no longer work in Shapely 2.0. Convert the '.coords' to a numpy array instead.
  coast_fixes = gpd.GeoDataFrame.from_dict({'geometry': gpd.GeoSeries(pygeos.to_shapely(pygeos.get_parts(land_buffer[~pygeos.is_empty(land_buffer)]))).set_crs(3395).to_crs(4326)}).set_crs(4326)
CMR
/Users/nm/Desktop/kblock/kblock/batch_1a_prepare_gadm.py:97: ShapelyDeprecationWarning: The array interface is deprecated and will no longer work in Shapely 2.0. Convert the '.coords' to a numpy array instead.
  coast_fixes = gpd.GeoDataFrame.from_dict({'geometry': gpd.GeoSeries(pygeos.to_shapely(pygeos.get_parts(land_buffer[~pygeos.is_empty(land_buffer)]))).set_crs(3395).to_crs(4326)}).set_crs(4326)
(geospatial) nm@nmarchio kblock % 

@nmarchio
Copy link
Member Author

/project2/bettencourt/mnp/update/repo/kblock/kblock/batch_1a_prepare_gadm.py:183: ShapelyDeprecationWarning: The array interface is deprecated and will no longer work in Shapely 2.0. Convert the '.coords' to a numpy array instead.
  land_buffer = pygeos.to_shapely(pygeos.get_parts(land_buffer[~pygeos.is_empty(land_buffer)]))
/software/python-anaconda-2021.05-el7-x86_64/envs/geospatial/lib/python3.9/site-packages/pygeos/set_operations.py:12

@nmarchio
Copy link
Member Author

/software/python-anaconda-2021.05-el7-x86_64/envs/geospatial/lib/python3.9/site-packages/pygeos/set_operations.py:129: RuntimeWarning: invalid value encountered in intersection
  return lib.intersection(a, b, **kwargs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package management Improve how to install, upgrade, configure software priority High priority issue
Projects
None yet
Development

No branches or pull requests

1 participant