Skip to content

Commit

Permalink
Merge branch 'chore/sc-288219/add-an-option-to-give-a-specific-name-t…
Browse files Browse the repository at this point in the history
…o' into chore/sc-288224/upload-multiple-bands-of-the-same-raster
  • Loading branch information
volaya authored Nov 16, 2023
2 parents ed7f675 + ec6d743 commit b6bcc68
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions raster_loader/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ def rasterio_windows_to_records(

"""Open a raster file with rasterio."""
with rasterio.open(file_path) as raster_dataset:

raster_crs = raster_dataset.crs.to_string()

if input_crs is None:
Expand Down Expand Up @@ -425,7 +424,6 @@ def rasterio_windows_to_records(
metadata["num_pixels"] = 0

for _, window in raster_dataset.block_windows():

record = {}
for band_metadata in bands_metadata:
band = band_metadata["band"]
Expand Down Expand Up @@ -890,7 +888,6 @@ def table_creator(columns, clustering):
jobs = []
with tqdm(total=total_blocks) as pbar:
for records in batched(records_gen, chunk_size):

try:
# raise error if job went wrong (blocking call)
jobs.pop().result()
Expand Down

0 comments on commit b6bcc68

Please sign in to comment.