File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -282,6 +282,7 @@ def __init__(
282282 if not geometries .index .equals (cube .indexes [cube .dims [0 ]]):
283283 log .error (f"Invalid VectorCube components { geometries .index = } != { cube .indexes [cube .dims [0 ]]= } " )
284284 raise VectorCubeError ("Incompatible vector cube components" )
285+ geometries = DriverVectorCube ._convert_crs84 (geometries )
285286 self ._geometries : gpd .GeoDataFrame = geometries
286287 self ._cube = cube
287288
@@ -414,7 +415,6 @@ def from_parquet(
414415 location = io .BytesIO (resp .raw .read ())
415416 df = gpd .read_parquet (location )
416417 log .info (f"Read geoparquet from { location } crs { df .crs } length { len (df )} " )
417- df = DriverVectorCube ._convert_crs84 (df )
418418 return cls .from_geodataframe (df , columns_for_cube = columns_for_cube )
419419
420420 @staticmethod
@@ -466,7 +466,6 @@ def from_geojson(
466466 f"Can not construct DriverVectorCube from { geojson .get ('type' , type (geojson ))!r} "
467467 )
468468 gdf = gpd .GeoDataFrame .from_features (features , crs = crs )
469- gdf = DriverVectorCube ._convert_crs84 (gdf )
470469 return cls .from_geodataframe (gdf , columns_for_cube = columns_for_cube )
471470
472471 @classmethod
You can’t perform that action at this time.
0 commit comments