File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -980,7 +980,7 @@ def from_hdf5(cls, file_name):
980980 gdf .drop (columns = [xycol + ".x" , xycol + ".y" ], inplace = True )
981981 for wkbcol in metadata .get ("wkb_columns" , []):
982982 gdf [wkbcol ] = gpd .GeoSeries .from_wkb (gdf [wkbcol ], crs = crs )
983- gdf .set_geometry ("geometry" , crs = crs , inplace = True )
983+ gdf .set_geometry ("geometry" , inplace = True )
984984
985985 except TypeError :
986986 with h5py .File (file_name , "r" ) as data :
Original file line number Diff line number Diff line change @@ -727,7 +727,7 @@ def test_read_write_hdf5(self):
727727
728728 def test_read_write_hdf5_with_additional_columns (self ):
729729 tmpfile = Path ("test_write_hdf5.out.hdf5" )
730- crs = DEF_CRS
730+ crs = CRS . from_user_input ( ALT_CRS )
731731 centroids_w = Centroids (
732732 lat = VEC_LAT ,
733733 lon = VEC_LON ,
@@ -762,7 +762,7 @@ def test_read_write_hdf5_with_additional_columns(self):
762762 ]
763763 * 8
764764 }
765- ).set_geometry ("more_shapes" )
765+ ).set_geometry ("more_shapes" , crs = DEF_CRS )
766766 )
767767 )
768768 centroids_w .write_hdf5 (tmpfile )
You can’t perform that action at this time.
0 commit comments