From d70d2157cf130304234785921ef98a505692ae29 Mon Sep 17 00:00:00 2001 From: Alice Fage Date: Tue, 24 Sep 2024 10:35:26 +1200 Subject: [PATCH] test: end-to-end footprint --- .github/workflows/format-tests.yml | 5 +++++ .../tests/data/output/BG35_1000_4829_footprint.geojson | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 scripts/tests/data/output/BG35_1000_4829_footprint.geojson diff --git a/.github/workflows/format-tests.yml b/.github/workflows/format-tests.yml index d036b2f7d..ca7ce544e 100644 --- a/.github/workflows/format-tests.yml +++ b/.github/workflows/format-tests.yml @@ -50,6 +50,11 @@ jobs: docker run -v "${{ runner.temp }}:/tmp/" topo-imagery python3 standardise_validate.py --from-file ./tests/data/aerial.json --preset webp --target-epsg 2193 --source-epsg 2193 --target /tmp/cutline/ --collection-id 123 --start-datetime 2023-01-01 --end-datetime 2023-01-01 --cutline ./tests/data/cutline_aerial.fgb --gsd 10m --create-footprints=true cmp --silent "${{ runner.temp }}/cutline/BG35_1000_4829.tiff" ./scripts/tests/data/output/BG35_1000_4829_cut.tiff + - name: End to end test - Footprint + run: | + docker run -v "${{ runner.temp }}:/tmp/" topo-imagery python3 standardise_validate.py --from-file ./tests/data/aerial.json --preset webp --target-epsg 2193 --source-epsg 2193 --target /tmp/ --collection-id 123 --start-datetime 2023-01-01 --end-datetime 2023-01-01 --gsd 10m --create-footprints=true + cmp --silent "${{ runner.temp }}/BG35_1000_4829_footprint.geojson" ./scripts/tests/data/output/BG35_1000_4829_footprint.geojson + - name: End to end test - Thumbnails (Topo50/Topo250) run: | docker run -v "${{ runner.temp }}:/tmp/" topo-imagery python3 thumbnails.py --from-file ./tests/data/thumbnails.json --target /tmp/ diff --git a/scripts/tests/data/output/BG35_1000_4829_footprint.geojson b/scripts/tests/data/output/BG35_1000_4829_footprint.geojson new file mode 100644 index 000000000..0d82b420f --- /dev/null +++ b/scripts/tests/data/output/BG35_1000_4829_footprint.geojson @@ -0,0 +1,9 @@ +{ +"type": "FeatureCollection", +"name": "footprint", +"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, +"xy_coordinate_resolution": 1e-08, +"features": [ +{ "type": "Feature", "properties": { "location": "/tmp/tmpezm3tk4z/BG35_1000_4829.tiff" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 175.78216634, -38.85027165 ], [ 175.78241902, -38.85675232 ], [ 175.78794458, -38.85662046 ], [ 175.7876914, -38.85013982 ], [ 175.78216634, -38.85027165 ] ] ] ] } } +] +}