Skip to content

Commit

Permalink
Merge pull request #295 from jonititan/patch-1
Browse files Browse the repository at this point in the history
Fixed issue found in #294
  • Loading branch information
AlexanderJuestel authored Aug 15, 2023
2 parents 78453cd + ac0f4d8 commit 5edba7f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions gemgis/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -2573,17 +2573,17 @@ def reproject_raster(path_in: str,
'height': height
})

# Writing the Destination DataSet
with rasterio.open(path_out, 'w', **kwargs) as dst:
for i in range(1, src.count + 1):
reproject(
source=rasterio.band(src, i),
destination=rasterio.band(dst, i),
src_transform=src.transform,
src_crs=src.crs,
dst_transform=transform,
dst_crs=dst_crs,
resampling=Resampling.nearest)
# Writing the Destination DataSet
with rasterio.open(path_out, 'w', **kwargs) as dst:
for i in range(1, src.count + 1):
reproject(
source=rasterio.band(src, i),
destination=rasterio.band(dst, i),
src_transform=src.transform,
src_crs=src.crs,
dst_transform=transform,
dst_crs=dst_crs,
resampling=Resampling.nearest)


def extract_contour_lines_from_raster(raster: Union[rasterio.io.DatasetReader, np.ndarray, str],
Expand Down

0 comments on commit 5edba7f

Please sign in to comment.