Skip to content

Commit

Permalink
fix: incorrect SICD/SIDD metadata added by tile factory
Browse files Browse the repository at this point in the history
  • Loading branch information
edparris committed Aug 14, 2024
1 parent ecc3539 commit 43babdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aws/osml/image_processing/gdal_tile_factory.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import base64
import copy
import logging
from secrets import token_hex
from typing import Any, Dict, List, Optional, Tuple
Expand Down Expand Up @@ -84,7 +85,7 @@ def create_encoded_tile(
# Use the request and metadata from the raster dataset to create a set of keyword
# arguments for the gdal.Translate() function. This will configure that function to
# create image tiles using the format, compression, etc. requested by the client.
gdal_translate_kwargs = self.default_gdal_translate_kwargs.copy()
gdal_translate_kwargs = copy.deepcopy(self.default_gdal_translate_kwargs)

if output_size is not None:
gdal_translate_kwargs["width"] = output_size[0]
Expand Down

0 comments on commit 43babdd

Please sign in to comment.