Skip to content

Commit

Permalink
feat: merge existing capture-area
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfouquet committed Feb 7, 2025
1 parent 5a9030f commit fca02f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/stac/imagery/create_stac.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from typing import Any, TypeAlias, cast

from linz_logger import get_log
from shapely.geometry import shape
from shapely.geometry.base import BaseGeometry

from scripts.files import fs
Expand Down Expand Up @@ -62,6 +63,8 @@ def create_collection(
collection = ImageryCollection.from_file(
os.path.join(odr_url, "collection.json"), collection_metadata, current_datetime
)
capture_area = json.loads(read(os.path.join(odr_url, "capture-area.geojson")))
item_polygons.append(shape(capture_area["geometry"]))
else:
collection = ImageryCollection(
metadata=collection_metadata,
Expand Down

0 comments on commit fca02f1

Please sign in to comment.