From ba7a126fb2e793e04bed8d6e85a50fed0cd68cf0 Mon Sep 17 00:00:00 2001 From: vitaligi <54726763+vitaligi@users.noreply.github.com> Date: Wed, 25 Sep 2024 17:25:57 +0300 Subject: [PATCH] fix: missed conversion from geometry to footprint --- src/models/raster/ingestion/zod/schemas/partData.schema.ts | 2 +- src/yaml/ingestionTrigger/partData/rasterLayerPartData.yaml | 4 ++-- src/yaml/ingestionTrigger/rasterLayerExample.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/models/raster/ingestion/zod/schemas/partData.schema.ts b/src/models/raster/ingestion/zod/schemas/partData.schema.ts index 5431cfc..003418e 100644 --- a/src/models/raster/ingestion/zod/schemas/partData.schema.ts +++ b/src/models/raster/ingestion/zod/schemas/partData.schema.ts @@ -29,5 +29,5 @@ export const partSchema = z.object({ sensors: z.array(z.string().min(1)).min(1), countries: z.array(z.string().min(1)).optional(), cities: z.array(z.string().min(1)).optional(), - geometry: z.custom(), + footprint: z.custom(), }); diff --git a/src/yaml/ingestionTrigger/partData/rasterLayerPartData.yaml b/src/yaml/ingestionTrigger/partData/rasterLayerPartData.yaml index 709fcb6..33d9e8d 100644 --- a/src/yaml/ingestionTrigger/partData/rasterLayerPartData.yaml +++ b/src/yaml/ingestionTrigger/partData/rasterLayerPartData.yaml @@ -11,7 +11,7 @@ components: - sourceName - imagingTimeBeginUTC - imagingTimeEndUTC - - geometry + - footprint - resolutionDegree - resolutionMeter - sourceResolutionMeter @@ -73,5 +73,5 @@ components: description: cities included in the layer description: type: string - geometry: + footprint: $ref: '../../geojson.yaml#/components/schemas/Polygon' diff --git a/src/yaml/ingestionTrigger/rasterLayerExample.yaml b/src/yaml/ingestionTrigger/rasterLayerExample.yaml index b0a39ef..719bcd3 100644 --- a/src/yaml/ingestionTrigger/rasterLayerExample.yaml +++ b/src/yaml/ingestionTrigger/rasterLayerExample.yaml @@ -36,7 +36,7 @@ components: cities: - string description: string - geometry: + footprint: type: Polygon coordinates: - - - 34.85149443279957 @@ -73,7 +73,7 @@ components: cities: - string description: string - geometry: + footprint: type: Polygon coordinates: - - - 34.85149443279957