Skip to content

Commit

Permalink
fix the geometry crs issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cheginit committed Aug 4, 2020
1 parent f4db3b6 commit 24682f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygeoutils/pygeoutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def _create_dataset(content: bytes, name: str) -> Union[xr.Dataset, xr.DataArray
if a not in ds.attrs:
ds.attrs[a] = v

ds = xarray_geomask(ds, geometry, geo_crs)
ds = xarray_geomask(ds, _geometry[0], attrs["crs"])

if len(ds.variables) - len(ds.dims) == 1:
ds = ds[list(ds.keys())[0]]
Expand Down

0 comments on commit 24682f0

Please sign in to comment.