You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hvplot is trying to convert extents from one projection to another using project_extents function but when i use a projection with a spherical globe I get the following error:
/usr/apps/anaconda3/envs/gviews/lib/python3.9/site-packages/cartopy/crs.py:825: ShapelyDeprecationWarning: __len__ for multi-part geometries is deprecated and will be removed in Shapely 2.0. Check the length of the `geoms` property instead to get the number of parts of a multi-part geometry.
if len(multi_line_string) > 1:
/usr/apps/anaconda3/envs/gviews/lib/python3.9/site-packages/cartopy/crs.py:877: ShapelyDeprecationWarning: Iteration over multi-part geometries is deprecated and will be removed in Shapely 2.0. Use the `geoms` property to access the constituent parts of a multi-part geometry.
for line in multi_line_string:
/usr/apps/anaconda3/envs/gviews/lib/python3.9/site-packages/cartopy/crs.py:944: ShapelyDeprecationWarning: __len__ for multi-part geometries is deprecated and will be removed in Shapely 2.0. Check the length of the `geoms` property instead to get the number of parts of a multi-part geometry.
if len(p_mline) > 0:
/usr/apps/anaconda3/envs/gviews/lib/python3.9/site-packages/cartopy/crs.py:982: ShapelyDeprecationWarning: Iteration over multi-part geometries is deprecated and will be removed in Shapely 2.0. Use the `geoms` property to access the constituent parts of a multi-part geometry.
line_strings.extend(multi_line_string)
/usr/apps/anaconda3/envs/gviews/lib/python3.9/site-packages/cartopy/crs.py:982: ShapelyDeprecationWarning: __len__ for multi-part geometries is deprecated and will be removed in Shapely 2.0. Check the length of the `geoms` property instead to get the number of parts of a multi-part geometry.
line_strings.extend(multi_line_string)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
/usr/apps/anaconda3/envs/gviews/lib/python3.9/site-packages/geoviews/util.py in project_extents(extents, src_proj, dest_proj, tol)
96try:
---> 97 geom_in_crs = dest_proj.project_geometry(geom_in_src_proj, src_proj)
98exceptValueError:
/usr/apps/anaconda3/envs/gviews/lib/python3.9/site-packages/cartopy/crs.py in project_geometry(self, geometry, src_crs)
796ifnot method_name:
--> 797 raise ValueError(f'Unsupported geometry type {geom_type!r}')
798returngetattr(self, method_name)(geometry, src_crs)
ValueError: Unsupported geometry type 'GeometryCollection'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
<ipython-input-7-92202881847f> in <module>
----> 1 project_extents(extents, crsLCC, ccrs.GOOGLE_MERCATOR)
/usr/apps/anaconda3/envs/gviews/lib/python3.9/site-packages/geoviews/util.py in project_extents(extents, src_proj, dest_proj, tol)
99 src_name =type(src_proj).__name__100 dest_name =type(dest_proj).__name__
--> 101 raise ValueError('Could not project data from %s projection '
102'to %s projection. Ensure the coordinate '103'reference system (crs) matches your data 'ValueError: Could not project data from LambertConformal projection to Mercator projection. Ensure the coordinate reference system (crs) matches your data and the kdims.
If I use a projection without the spherical parameter, it works. However, this is not my reference coordinate system.
Python 3.9.7
IPython 7.30.1
cartopy 0.20.1
geoviews 1.9.2
hvplot is trying to convert extents from one projection to another using project_extents function but when i use a projection with a spherical globe I get the following error:
If I use a projection without the spherical parameter, it works. However, this is not my reference coordinate system.
The text was updated successfully, but these errors were encountered: