Skip to content

Commit

Permalink
Merge branch 'feat/provide-capture-area-tde-965' of github.com:linz/t…
Browse files Browse the repository at this point in the history
…opo-imagery into feat/provide-capture-area-tde-965
  • Loading branch information
paulfouquet committed Feb 7, 2024
2 parents 83657f8 + 2ecd433 commit 11548f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/files/tests/fs_s3_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def test_list_files_in_uri() -> None:
boto3_client.put_object(Bucket=bucket_name, Key="data/image.tiff", Body=b"")
boto3_client.put_object(Bucket=bucket_name, Key="data/image_meta.xml", Body=b"")

files = list_files_in_uri("s3://testbucket/data/", [".json", "_meta.xml"], boto3_client)
files = list_files_in_uri(f"s3://{bucket_name}/data/", [".json", "_meta.xml"], boto3_client)

assert len(files) == 2
assert set(files) == {"data/collection.json", "data/image_meta.xml"}
Expand Down
2 changes: 1 addition & 1 deletion scripts/stac/imagery/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def add_capture_area(self, polygons: List[shapely.geometry.shape], target: str)
target: path of the capture-area-geojson file
"""

# The GSD is currently alway in meters (e.g. `0.3m`)
# The GSD is measured in meters (e.g., `0.3m`)
capture_area_document = generate_capture_area(polygons, float(self.metadata["gsd"].replace("m", "")))
capture_area_content: bytes = json.dumps(capture_area_document).encode("utf-8")
file_checksum = checksum.multihash_as_hex(capture_area_content)
Expand Down

0 comments on commit 11548f4

Please sign in to comment.