From 93244364577c998041df8ebbaca55cde73411402 Mon Sep 17 00:00:00 2001 From: Mehmood Asghar Date: Tue, 9 Jul 2024 11:00:26 -0400 Subject: [PATCH] Add Polygon element for geospatial --- schemas/geospatial-schema.json | 46 ++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/schemas/geospatial-schema.json b/schemas/geospatial-schema.json index 6d0e1f7..efd194f 100644 --- a/schemas/geospatial-schema.json +++ b/schemas/geospatial-schema.json @@ -1217,7 +1217,53 @@ "title": "Geographic description identifier", "_xpath": "gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:geographicElement/EX_GeographicDescription/gmd:geographicIdentifier/gmd:MD_Identifier/gmd:code/gco:CharacterString", "type": "string" + }, + "geographicBoundingPolygon": { + "title": "Geographic Bounding Polygon", + "description": "Geographic Bounding Polygon", + "type": "object", + "properties": { + "id":{ + "title": "Identifier", + "type": "string" + }, + "polygon": { + "title": "Polygon", + "type": "array", + "items": { + "type": "object", + "properties": { + + "ring":{ + "title": "Ring boundary", + "type": "string", + "enum": ["exterior", "interior"] + }, + + "type":{ + "title": "Type", + "type": "string", + "enum": ["Point", "LineString", "Polygon"] + }, + "coordinates": { + "title": "Coordinates", + "type": "array", + "items": { + "type": "array", + "items": { + "type": "number" + } + } + } + } + } + } + } } + + + + } } },