diff --git a/.generation/input/openapi.json b/.generation/input/openapi.json index b9b55e4b..c7e7a383 100644 --- a/.generation/input/openapi.json +++ b/.generation/input/openapi.json @@ -4192,13 +4192,13 @@ ] } }, - "/wcs/{workflow}?request=DescribeCoverage": { + "/wcs/{workflow}": { "get": { "tags": [ "OGC WCS" ], - "summary": "Get WCS Coverage Description", - "operationId": "wcs_describe_coverage_handler", + "summary": "OGC WCS endpoint", + "operationId": "wcs_handler", "parameters": [ { "name": "workflow", @@ -4210,201 +4210,39 @@ } }, { - "name": "version", - "in": "query", - "required": true, - "schema": { - "$ref": "#/components/schemas/WcsVersion" - } - }, - { - "name": "service", - "in": "query", - "required": true, - "schema": { - "$ref": "#/components/schemas/WcsService" - } - }, - { - "name": "request", - "in": "query", - "required": true, - "schema": { - "$ref": "#/components/schemas/DescribeCoverageRequest" - } - }, - { - "name": "identifiers", + "name": "boundingbox", "in": "query", - "required": true, + "required": false, "schema": { "type": "string" }, - "example": "" - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "text/xml": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "session_token": [] - } - ] - } - }, - "/wcs/{workflow}?request=GetCapabilities": { - "get": { - "tags": [ - "OGC WCS" - ], - "summary": "Get WCS Capabilities", - "operationId": "wcs_capabilities_handler", - "parameters": [ - { - "name": "workflow", - "in": "path", - "description": "Workflow id", - "required": true, - "schema": { - "$ref": "#/components/schemas/WorkflowId" - } - }, - { - "name": "version", - "in": "query", - "required": false, - "schema": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/WcsVersion" - } - ] - } - }, - { - "name": "service", - "in": "query", - "required": true, - "schema": { - "$ref": "#/components/schemas/WcsService" - } - }, - { - "name": "request", - "in": "query", - "required": true, - "schema": { - "$ref": "#/components/schemas/GetCapabilitiesRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "text/xml": { - "schema": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "session_token": [] - } - ] - } - }, - "/wcs/{workflow}?request=GetCoverage": { - "get": { - "tags": [ - "OGC WCS" - ], - "summary": "Get WCS Coverage", - "operationId": "wcs_get_coverage_handler", - "parameters": [ - { - "name": "workflow", - "in": "path", - "description": "Workflow id", - "required": true, - "schema": { - "$ref": "#/components/schemas/WorkflowId" - } - }, - { - "name": "version", - "in": "query", - "required": true, - "schema": { - "$ref": "#/components/schemas/WcsVersion" - } - }, - { - "name": "service", - "in": "query", - "required": true, - "schema": { - "$ref": "#/components/schemas/WcsService" - } - }, - { - "name": "request", - "in": "query", - "required": true, - "schema": { - "$ref": "#/components/schemas/GetCoverageRequest" - } + "example": "-90,-180,90,180,urn:ogc:def:crs:EPSG::4326" }, { "name": "format", "in": "query", - "required": true, + "required": false, "schema": { "$ref": "#/components/schemas/GetCoverageFormat" } }, { - "name": "identifier", - "in": "query", - "required": true, - "schema": { - "type": "string" - }, - "example": "" - }, - { - "name": "boundingbox", + "name": "gridbasecrs", "in": "query", - "required": true, + "required": false, "schema": { "type": "string" }, - "example": "-90,-180,90,180,urn:ogc:def:crs:EPSG::4326" + "example": "urn:ogc:def:crs:EPSG::4326" }, { - "name": "gridbasecrs", + "name": "gridoffsets", "in": "query", - "required": true, + "required": false, "schema": { "type": "string" }, - "example": "urn:ogc:def:crs:EPSG::4326" + "example": "-0.1,0.1" }, { "name": "gridorigin", @@ -4416,24 +4254,25 @@ "example": "90,-180" }, { - "name": "gridoffsets", + "name": "identifier", "in": "query", "required": false, "schema": { "type": "string" }, - "example": "-0.1,0.1" + "example": "" }, { - "name": "time", + "name": "identifiers", "in": "query", "required": false, "schema": { "type": "string" - } + }, + "example": "" }, { - "name": "resx", + "name": "nodatavalue", "in": "query", "required": false, "schema": { @@ -4445,7 +4284,16 @@ } }, { - "name": "resy", + "name": "request", + "in": "query", + "description": "type of WCS request", + "required": true, + "schema": { + "$ref": "#/components/schemas/WcsRequest" + } + }, + { + "name": "resx", "in": "query", "required": false, "schema": { @@ -4457,7 +4305,7 @@ } }, { - "name": "nodatavalue", + "name": "resy", "in": "query", "required": false, "schema": { @@ -4467,67 +4315,37 @@ ], "format": "double" } - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/PngResponse" - } - }, - "security": [ + }, { - "session_token": [] - } - ] - } - }, - "/wfs/{workflow}?request=GetCapabilities": { - "get": { - "tags": [ - "OGC WFS" - ], - "summary": "Get WFS Capabilities", - "operationId": "wfs_capabilities_handler", - "parameters": [ + "name": "service", + "in": "query", + "required": false, + "schema": { + "$ref": "#/components/schemas/WcsService" + } + }, { - "name": "workflow", - "in": "path", - "description": "Workflow id", - "required": true, + "name": "time", + "in": "query", + "required": false, "schema": { - "$ref": "#/components/schemas/WorkflowId" + "type": "string" } }, { "name": "version", - "in": "path", - "required": true, + "in": "query", + "required": false, "schema": { "oneOf": [ { "type": "null" }, { - "$ref": "#/components/schemas/WfsVersion" + "$ref": "#/components/schemas/WcsVersion" } ] } - }, - { - "name": "service", - "in": "path", - "required": true, - "schema": { - "$ref": "#/components/schemas/WfsService" - } - }, - { - "name": "request", - "in": "path", - "required": true, - "schema": { - "$ref": "#/components/schemas/GetCapabilitiesRequest" - } } ], "responses": { @@ -4549,13 +4367,13 @@ ] } }, - "/wfs/{workflow}?request=GetFeature": { + "/wfs/{workflow}": { "get": { "tags": [ "OGC WFS" ], - "summary": "Get WCS Features", - "operationId": "wfs_feature_handler", + "summary": "OGC WFS endpoint", + "operationId": "wfs_handler", "parameters": [ { "name": "workflow", @@ -4566,66 +4384,30 @@ "$ref": "#/components/schemas/WorkflowId" } }, - { - "name": "version", - "in": "query", - "required": false, - "schema": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/WfsVersion" - } - ] - } - }, - { - "name": "service", - "in": "query", - "required": true, - "schema": { - "$ref": "#/components/schemas/WfsService" - } - }, - { - "name": "request", - "in": "query", - "required": true, - "schema": { - "$ref": "#/components/schemas/GetFeatureRequest" - } - }, - { - "name": "typeNames", - "in": "query", - "required": true, - "schema": { - "$ref": "#/components/schemas/TypeNames" - }, - "example": "" - }, { "name": "bbox", "in": "query", - "required": true, + "required": false, "schema": { "$ref": "#/components/schemas/OgcBoundingBox" }, "example": "-90,-180,90,180" }, { - "name": "time", + "name": "count", "in": "query", "required": false, "schema": { - "type": "string" - }, - "example": "2014-04-01T12:00:00.000Z" + "type": [ + "integer", + "null" + ], + "format": "int64", + "minimum": 0 + } }, { - "name": "srsName", + "name": "filter", "in": "query", "required": false, "schema": { @@ -4633,8 +4415,7 @@ "string", "null" ] - }, - "example": "EPSG:4326" + } }, { "name": "namespaces", @@ -4648,27 +4429,23 @@ } }, { - "name": "count", + "name": "propertyName", "in": "query", "required": false, "schema": { "type": [ - "integer", + "string", "null" - ], - "format": "int64", - "minimum": 0 + ] } }, { - "name": "sortBy", + "name": "request", "in": "query", - "required": false, + "description": "type of WFS request", + "required": true, "schema": { - "type": [ - "string", - "null" - ] + "$ref": "#/components/schemas/WfsRequest" } }, { @@ -4683,7 +4460,15 @@ } }, { - "name": "filter", + "name": "service", + "in": "query", + "required": false, + "schema": { + "$ref": "#/components/schemas/WfsService" + } + }, + { + "name": "sortBy", "in": "query", "required": false, "schema": { @@ -4694,7 +4479,7 @@ } }, { - "name": "propertyName", + "name": "srsName", "in": "query", "required": false, "schema": { @@ -4702,12 +4487,30 @@ "string", "null" ] - } + }, + "example": "EPSG:4326" + }, + { + "name": "time", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "example": "2014-04-01T12:00:00.000Z" + }, + { + "name": "typeNames", + "in": "query", + "required": false, + "schema": { + "$ref": "#/components/schemas/TypeNames" + }, + "example": "" }, { - "name": "queryResolution", + "name": "version", "in": "query", - "description": "Vendor parameter for specifying a spatial query resolution", "required": false, "schema": { "oneOf": [ @@ -4715,7 +4518,7 @@ "type": "null" }, { - "$ref": "#/components/schemas/WfsResolution" + "$ref": "#/components/schemas/WfsVersion" } ] } @@ -4819,93 +4622,10 @@ "when": { "start": "1970-01-01T00:00:00+00:00", "end": "1970-01-01T00:00:00.001+00:00", - "type": "Interval" - } - } - ] - } - } - } - } - }, - "security": [ - { - "session_token": [] - } - ] - } - }, - "/wms/{workflow}?request=GetCapabilities": { - "get": { - "tags": [ - "OGC WMS" - ], - "summary": "Get WMS Capabilities", - "operationId": "wms_capabilities_handler", - "parameters": [ - { - "name": "workflow", - "in": "path", - "description": "Workflow id", - "required": true, - "schema": { - "$ref": "#/components/schemas/WorkflowId" - } - }, - { - "name": "version", - "in": "path", - "required": true, - "schema": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/WmsVersion" - } - ] - } - }, - { - "name": "service", - "in": "path", - "required": true, - "schema": { - "$ref": "#/components/schemas/WmsService" - } - }, - { - "name": "request", - "in": "path", - "required": true, - "schema": { - "$ref": "#/components/schemas/GetCapabilitiesRequest" - } - }, - { - "name": "format", - "in": "path", - "required": true, - "schema": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/GetCapabilitiesFormat" - } - ] - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "text/xml": { - "schema": { - "type": "string" + "type": "Interval" + } + } + ] } } } @@ -4918,13 +4638,13 @@ ] } }, - "/wms/{workflow}?request=GetLegendGraphic": { + "/wms/{workflow}": { "get": { "tags": [ "OGC WMS" ], - "summary": "Get WMS Legend Graphic", - "operationId": "wms_legend_graphic_handler", + "summary": "OGC WMS endpoint", + "operationId": "wms_handler", "parameters": [ { "name": "workflow", @@ -4936,107 +4656,82 @@ } }, { - "name": "version", - "in": "path", - "required": true, - "schema": { - "$ref": "#/components/schemas/WmsVersion" - } - }, - { - "name": "service", - "in": "path", - "required": true, + "name": "bbox", + "in": "query", + "required": false, "schema": { - "$ref": "#/components/schemas/WmsService" - } + "$ref": "#/components/schemas/OgcBoundingBox" + }, + "example": "-90,-180,90,180" }, { - "name": "request", - "in": "path", - "required": true, + "name": "bgcolor", + "in": "query", + "required": false, "schema": { - "$ref": "#/components/schemas/GetLegendGraphicRequest" + "type": [ + "string", + "null" + ] } }, { - "name": "layer", - "in": "path", - "required": true, + "name": "crs", + "in": "query", + "required": false, "schema": { - "type": "string" + "type": [ + "string", + "null" + ] }, - "example": "" - } - ], - "responses": { - "501": { - "description": "Not implemented" - } - }, - "security": [ - { - "session_token": [] - } - ] - } - }, - "/wms/{workflow}?request=GetMap": { - "get": { - "tags": [ - "OGC WMS" - ], - "summary": "Get WMS Map", - "operationId": "wms_map_handler", - "parameters": [ - { - "name": "workflow", - "in": "path", - "description": "Workflow id", - "required": true, - "schema": { - "$ref": "#/components/schemas/WorkflowId" - } + "example": "EPSG:4326" }, { - "name": "version", + "name": "elevation", "in": "query", - "required": true, + "required": false, "schema": { - "$ref": "#/components/schemas/WmsVersion" + "type": [ + "string", + "null" + ] } }, { - "name": "service", + "name": "exceptions", "in": "query", - "required": true, + "required": false, "schema": { - "$ref": "#/components/schemas/WmsService" + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/GetMapExceptionFormat" + } + ] } }, { - "name": "request", + "name": "format", "in": "query", - "required": true, + "required": false, "schema": { - "$ref": "#/components/schemas/GetMapRequest" + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/WmsResponseFormat" + } + ] } }, - { - "name": "width", - "in": "query", - "required": true, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "example": 512 - }, { "name": "height", "in": "query", - "required": true, + "required": false, "schema": { "type": "integer", "format": "int32", @@ -5045,74 +4740,71 @@ "example": 256 }, { - "name": "bbox", + "name": "info_format", "in": "query", - "required": true, + "required": false, "schema": { - "$ref": "#/components/schemas/OgcBoundingBox" - }, - "example": "-90,-180,90,180" + "type": [ + "string", + "null" + ] + } }, { - "name": "format", + "name": "layer", "in": "query", - "required": true, + "required": false, "schema": { - "$ref": "#/components/schemas/GetMapFormat" + "type": "string" } }, { "name": "layers", "in": "query", - "required": true, + "required": false, "schema": { "type": "string" }, "example": "" }, { - "name": "crs", + "name": "query_layers", "in": "query", "required": false, "schema": { - "type": [ - "string", - "null" - ] - }, - "example": "EPSG:4326" + "type": "string" + } }, { - "name": "styles", + "name": "request", "in": "query", + "description": "type of WMS request", "required": true, "schema": { - "type": "string" - }, - "example": "custom:{\"type\":\"linearGradient\",\"breakpoints\":[{\"value\":1,\"color\":[0,0,0,255]},{\"value\":255,\"color\":[255,255,255,255]}],\"noDataColor\":[0,0,0,0],\"defaultColor\":[0,0,0,0]}" + "$ref": "#/components/schemas/WmsRequest" + } }, { - "name": "time", + "name": "service", "in": "query", "required": false, "schema": { - "type": "string" - }, - "example": "2014-04-01T12:00:00.000Z" + "$ref": "#/components/schemas/WmsService" + } }, { - "name": "transparent", + "name": "sld", "in": "query", "required": false, "schema": { "type": [ - "boolean", + "string", "null" ] } }, { - "name": "bgcolor", + "name": "sld_body", "in": "query", "required": false, "schema": { @@ -5123,40 +4815,36 @@ } }, { - "name": "sld", + "name": "styles", "in": "query", "required": false, "schema": { - "type": [ - "string", - "null" - ] - } + "type": "string" + }, + "example": "custom:{\"type\":\"linearGradient\",\"breakpoints\":[{\"value\":1,\"color\":[0,0,0,255]},{\"value\":255,\"color\":[255,255,255,255]}],\"noDataColor\":[0,0,0,0],\"defaultColor\":[0,0,0,0]}" }, { - "name": "sld_body", + "name": "time", "in": "query", "required": false, "schema": { - "type": [ - "string", - "null" - ] - } + "type": "string" + }, + "example": "2014-04-01T12:00:00.000Z" }, { - "name": "elevation", + "name": "transparent", "in": "query", "required": false, "schema": { "type": [ - "string", + "boolean", "null" ] } }, { - "name": "exceptions", + "name": "version", "in": "query", "required": false, "schema": { @@ -5165,10 +4853,21 @@ "type": "null" }, { - "$ref": "#/components/schemas/GetMapExceptionFormat" + "$ref": "#/components/schemas/WmsVersion" } ] } + }, + { + "name": "width", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "example": 512 } ], "responses": { @@ -6597,12 +6296,6 @@ } } }, - "DescribeCoverageRequest": { - "type": "string", - "enum": [ - "DescribeCoverage" - ] - }, "EbvPortalDataProviderDefinition": { "type": "object", "required": [ @@ -7219,42 +6912,12 @@ } } }, - "GetCapabilitiesFormat": { - "type": "string", - "enum": [ - "text/xml" - ] - }, - "GetCapabilitiesRequest": { - "type": "string", - "enum": [ - "GetCapabilities" - ] - }, "GetCoverageFormat": { "type": "string", "enum": [ "image/tiff" ] }, - "GetCoverageRequest": { - "type": "string", - "enum": [ - "GetCoverage" - ] - }, - "GetFeatureRequest": { - "type": "string", - "enum": [ - "GetFeature" - ] - }, - "GetLegendGraphicRequest": { - "type": "string", - "enum": [ - "GetLegendGraphic" - ] - }, "GetMapExceptionFormat": { "type": "string", "enum": [ @@ -7262,18 +6925,6 @@ "JSON" ] }, - "GetMapFormat": { - "type": "string", - "enum": [ - "image/png" - ] - }, - "GetMapRequest": { - "type": "string", - "enum": [ - "GetMap" - ] - }, "GfbioAbcdDataProviderDefinition": { "type": "object", "required": [ @@ -11138,6 +10789,14 @@ } } }, + "WcsRequest": { + "type": "string", + "enum": [ + "GetCapabilities", + "DescribeCoverage", + "GetCoverage" + ] + }, "WcsService": { "type": "string", "enum": [ @@ -11151,8 +10810,12 @@ "1.1.1" ] }, - "WfsResolution": { - "type": "string" + "WfsRequest": { + "type": "string", + "enum": [ + "GetCapabilities", + "GetFeature" + ] }, "WfsService": { "type": "string", @@ -11222,6 +10885,23 @@ } } }, + "WmsRequest": { + "type": "string", + "enum": [ + "GetCapabilities", + "GetMap", + "GetFeatureInfo", + "GetStyles", + "GetLegendGraphic" + ] + }, + "WmsResponseFormat": { + "type": "string", + "enum": [ + "text/xml", + "image/png" + ] + }, "WmsService": { "type": "string", "enum": [ diff --git a/.generation/post-process/python.py b/.generation/post-process/python.py index 6edfa1ed..82e0e9a0 100644 --- a/.generation/post-process/python.py +++ b/.generation/post-process/python.py @@ -122,22 +122,6 @@ def layers_api_py(file_contents: List[str]) -> Generator[str, None, None]: yield line -def ogc_xyz_api_py(ogc_api: Literal['wfs', 'wms']) -> Callable[[List[str]], Generator[str, None, None]]: - '''Modify the ogc_xyz_api.py file.''' - def _ogc_xyz_api_py(file_contents: List[str]) -> Generator[str, None, None]: - '''Modify the ogc_wfs_api.py file.''' - for line in file_contents: - dedented_line = dedent(line) - if dedented_line.startswith(f"resource_path='/{ogc_api}/{{workflow}}?request="): - line = indent(dedent(f'''\ - # Note: remove query string in path part for ogc endpoints - resource_path='/{ogc_api}/{{workflow}}', - '''), 3 * INDENT) - - yield line - return _ogc_xyz_api_py - - def raster_result_descriptor_py(file_contents: List[str]) -> Generator[str, None, None]: ''' Modify the raster_result_descriptor.py file. @@ -272,8 +256,6 @@ def time_step_py(file_contents: List[str]) -> Generator[str, None, None]: 'api_client.py': api_client_py, 'exceptions.py': exceptions_py, 'layers_api.py': layers_api_py, - 'ogcwfs_api.py': ogc_xyz_api_py('wfs'), - 'ogcwms_api.py': ogc_xyz_api_py('wms'), 'plot_result_descriptor.py': plot_result_descriptor_py, 'raster_result_descriptor.py': raster_result_descriptor_py, 'task_status_with_id.py': task_status_with_id_py, diff --git a/python/.openapi-generator/FILES b/python/.openapi-generator/FILES index 817a5836..b26b705a 100644 --- a/python/.openapi-generator/FILES +++ b/python/.openapi-generator/FILES @@ -45,7 +45,6 @@ docs/DatasetResource.md docs/DatasetsApi.md docs/DerivedColor.md docs/DerivedNumber.md -docs/DescribeCoverageRequest.md docs/EbvPortalDataProviderDefinition.md docs/EdrDataProviderDefinition.md docs/EdrVectorSpec.md @@ -69,15 +68,8 @@ docs/GdalSourceTimePlaceholder.md docs/GeneralApi.md docs/GeoJson.md docs/GeoTransform.md -docs/GetCapabilitiesFormat.md -docs/GetCapabilitiesRequest.md docs/GetCoverageFormat.md -docs/GetCoverageRequest.md -docs/GetFeatureRequest.md -docs/GetLegendGraphicRequest.md docs/GetMapExceptionFormat.md -docs/GetMapFormat.md -docs/GetMapRequest.md docs/GfbioAbcdDataProviderDefinition.md docs/GfbioCollectionsDataProviderDefinition.md docs/GridBoundingBox2D.md @@ -260,11 +252,15 @@ docs/VectorResultDescriptor.md docs/Volume.md docs/VolumeFileLayersResponse.md docs/WcsBoundingbox.md +docs/WcsRequest.md docs/WcsService.md docs/WcsVersion.md +docs/WfsRequest.md docs/WfsService.md docs/WfsVersion.md docs/WildliveDataConnectorDefinition.md +docs/WmsRequest.md +docs/WmsResponseFormat.md docs/WmsService.md docs/WmsVersion.md docs/Workflow.md @@ -334,7 +330,6 @@ geoengine_openapi_client/models/dataset_name_response.py geoengine_openapi_client/models/dataset_resource.py geoengine_openapi_client/models/derived_color.py geoengine_openapi_client/models/derived_number.py -geoengine_openapi_client/models/describe_coverage_request.py geoengine_openapi_client/models/ebv_portal_data_provider_definition.py geoengine_openapi_client/models/edr_data_provider_definition.py geoengine_openapi_client/models/edr_vector_spec.py @@ -357,15 +352,8 @@ geoengine_openapi_client/models/gdal_multi_band.py geoengine_openapi_client/models/gdal_source_time_placeholder.py geoengine_openapi_client/models/geo_json.py geoengine_openapi_client/models/geo_transform.py -geoengine_openapi_client/models/get_capabilities_format.py -geoengine_openapi_client/models/get_capabilities_request.py geoengine_openapi_client/models/get_coverage_format.py -geoengine_openapi_client/models/get_coverage_request.py -geoengine_openapi_client/models/get_feature_request.py -geoengine_openapi_client/models/get_legend_graphic_request.py geoengine_openapi_client/models/get_map_exception_format.py -geoengine_openapi_client/models/get_map_format.py -geoengine_openapi_client/models/get_map_request.py geoengine_openapi_client/models/gfbio_abcd_data_provider_definition.py geoengine_openapi_client/models/gfbio_collections_data_provider_definition.py geoengine_openapi_client/models/grid_bounding_box2_d.py @@ -535,11 +523,15 @@ geoengine_openapi_client/models/vector_result_descriptor.py geoengine_openapi_client/models/volume.py geoengine_openapi_client/models/volume_file_layers_response.py geoengine_openapi_client/models/wcs_boundingbox.py +geoengine_openapi_client/models/wcs_request.py geoengine_openapi_client/models/wcs_service.py geoengine_openapi_client/models/wcs_version.py +geoengine_openapi_client/models/wfs_request.py geoengine_openapi_client/models/wfs_service.py geoengine_openapi_client/models/wfs_version.py geoengine_openapi_client/models/wildlive_data_connector_definition.py +geoengine_openapi_client/models/wms_request.py +geoengine_openapi_client/models/wms_response_format.py geoengine_openapi_client/models/wms_service.py geoengine_openapi_client/models/wms_version.py geoengine_openapi_client/models/workflow.py @@ -595,7 +587,6 @@ test/test_dataset_resource.py test/test_datasets_api.py test/test_derived_color.py test/test_derived_number.py -test/test_describe_coverage_request.py test/test_ebv_portal_data_provider_definition.py test/test_edr_data_provider_definition.py test/test_edr_vector_spec.py @@ -619,15 +610,8 @@ test/test_gdal_source_time_placeholder.py test/test_general_api.py test/test_geo_json.py test/test_geo_transform.py -test/test_get_capabilities_format.py -test/test_get_capabilities_request.py test/test_get_coverage_format.py -test/test_get_coverage_request.py -test/test_get_feature_request.py -test/test_get_legend_graphic_request.py test/test_get_map_exception_format.py -test/test_get_map_format.py -test/test_get_map_request.py test/test_gfbio_abcd_data_provider_definition.py test/test_gfbio_collections_data_provider_definition.py test/test_grid_bounding_box2_d.py @@ -810,11 +794,15 @@ test/test_vector_result_descriptor.py test/test_volume.py test/test_volume_file_layers_response.py test/test_wcs_boundingbox.py +test/test_wcs_request.py test/test_wcs_service.py test/test_wcs_version.py +test/test_wfs_request.py test/test_wfs_service.py test/test_wfs_version.py test/test_wildlive_data_connector_definition.py +test/test_wms_request.py +test/test_wms_response_format.py test/test_wms_service.py test/test_wms_version.py test/test_workflow.py diff --git a/python/README.md b/python/README.md index 5f715f2b..32c67c3e 100644 --- a/python/README.md +++ b/python/README.md @@ -135,14 +135,9 @@ Class | Method | HTTP request | Description *MLApi* | [**add_ml_model**](docs/MLApi.md#add_ml_model) | **POST** /ml/models | Create a new ml model. *MLApi* | [**get_ml_model**](docs/MLApi.md#get_ml_model) | **GET** /ml/models/{model_name} | Get ml model by name. *MLApi* | [**list_ml_models**](docs/MLApi.md#list_ml_models) | **GET** /ml/models | List ml models. -*OGCWCSApi* | [**wcs_capabilities_handler**](docs/OGCWCSApi.md#wcs_capabilities_handler) | **GET** /wcs/{workflow}?request=GetCapabilities | Get WCS Capabilities -*OGCWCSApi* | [**wcs_describe_coverage_handler**](docs/OGCWCSApi.md#wcs_describe_coverage_handler) | **GET** /wcs/{workflow}?request=DescribeCoverage | Get WCS Coverage Description -*OGCWCSApi* | [**wcs_get_coverage_handler**](docs/OGCWCSApi.md#wcs_get_coverage_handler) | **GET** /wcs/{workflow}?request=GetCoverage | Get WCS Coverage -*OGCWFSApi* | [**wfs_capabilities_handler**](docs/OGCWFSApi.md#wfs_capabilities_handler) | **GET** /wfs/{workflow}?request=GetCapabilities | Get WFS Capabilities -*OGCWFSApi* | [**wfs_feature_handler**](docs/OGCWFSApi.md#wfs_feature_handler) | **GET** /wfs/{workflow}?request=GetFeature | Get WCS Features -*OGCWMSApi* | [**wms_capabilities_handler**](docs/OGCWMSApi.md#wms_capabilities_handler) | **GET** /wms/{workflow}?request=GetCapabilities | Get WMS Capabilities -*OGCWMSApi* | [**wms_legend_graphic_handler**](docs/OGCWMSApi.md#wms_legend_graphic_handler) | **GET** /wms/{workflow}?request=GetLegendGraphic | Get WMS Legend Graphic -*OGCWMSApi* | [**wms_map_handler**](docs/OGCWMSApi.md#wms_map_handler) | **GET** /wms/{workflow}?request=GetMap | Get WMS Map +*OGCWCSApi* | [**wcs_handler**](docs/OGCWCSApi.md#wcs_handler) | **GET** /wcs/{workflow} | OGC WCS endpoint +*OGCWFSApi* | [**wfs_handler**](docs/OGCWFSApi.md#wfs_handler) | **GET** /wfs/{workflow} | OGC WFS endpoint +*OGCWMSApi* | [**wms_handler**](docs/OGCWMSApi.md#wms_handler) | **GET** /wms/{workflow} | OGC WMS endpoint *PermissionsApi* | [**add_permission_handler**](docs/PermissionsApi.md#add_permission_handler) | **PUT** /permissions | Adds a new permission. *PermissionsApi* | [**get_resource_permissions_handler**](docs/PermissionsApi.md#get_resource_permissions_handler) | **GET** /permissions/resources/{resource_type}/{resource_id} | Lists permission for a given resource. *PermissionsApi* | [**remove_permission_handler**](docs/PermissionsApi.md#remove_permission_handler) | **DELETE** /permissions | Removes an existing permission. @@ -235,7 +230,6 @@ Class | Method | HTTP request | Description - [DatasetResource](docs/DatasetResource.md) - [DerivedColor](docs/DerivedColor.md) - [DerivedNumber](docs/DerivedNumber.md) - - [DescribeCoverageRequest](docs/DescribeCoverageRequest.md) - [EbvPortalDataProviderDefinition](docs/EbvPortalDataProviderDefinition.md) - [EdrDataProviderDefinition](docs/EdrDataProviderDefinition.md) - [EdrVectorSpec](docs/EdrVectorSpec.md) @@ -258,15 +252,8 @@ Class | Method | HTTP request | Description - [GdalSourceTimePlaceholder](docs/GdalSourceTimePlaceholder.md) - [GeoJson](docs/GeoJson.md) - [GeoTransform](docs/GeoTransform.md) - - [GetCapabilitiesFormat](docs/GetCapabilitiesFormat.md) - - [GetCapabilitiesRequest](docs/GetCapabilitiesRequest.md) - [GetCoverageFormat](docs/GetCoverageFormat.md) - - [GetCoverageRequest](docs/GetCoverageRequest.md) - - [GetFeatureRequest](docs/GetFeatureRequest.md) - - [GetLegendGraphicRequest](docs/GetLegendGraphicRequest.md) - [GetMapExceptionFormat](docs/GetMapExceptionFormat.md) - - [GetMapFormat](docs/GetMapFormat.md) - - [GetMapRequest](docs/GetMapRequest.md) - [GfbioAbcdDataProviderDefinition](docs/GfbioAbcdDataProviderDefinition.md) - [GfbioCollectionsDataProviderDefinition](docs/GfbioCollectionsDataProviderDefinition.md) - [GridBoundingBox2D](docs/GridBoundingBox2D.md) @@ -436,11 +423,15 @@ Class | Method | HTTP request | Description - [Volume](docs/Volume.md) - [VolumeFileLayersResponse](docs/VolumeFileLayersResponse.md) - [WcsBoundingbox](docs/WcsBoundingbox.md) + - [WcsRequest](docs/WcsRequest.md) - [WcsService](docs/WcsService.md) - [WcsVersion](docs/WcsVersion.md) + - [WfsRequest](docs/WfsRequest.md) - [WfsService](docs/WfsService.md) - [WfsVersion](docs/WfsVersion.md) - [WildliveDataConnectorDefinition](docs/WildliveDataConnectorDefinition.md) + - [WmsRequest](docs/WmsRequest.md) + - [WmsResponseFormat](docs/WmsResponseFormat.md) - [WmsService](docs/WmsService.md) - [WmsVersion](docs/WmsVersion.md) - [Workflow](docs/Workflow.md) diff --git a/python/geoengine_openapi_client/__init__.py b/python/geoengine_openapi_client/__init__.py index 26307970..0e27efe5 100644 --- a/python/geoengine_openapi_client/__init__.py +++ b/python/geoengine_openapi_client/__init__.py @@ -85,7 +85,6 @@ "DatasetResource", "DerivedColor", "DerivedNumber", - "DescribeCoverageRequest", "EbvPortalDataProviderDefinition", "EdrDataProviderDefinition", "EdrVectorSpec", @@ -108,15 +107,8 @@ "GdalSourceTimePlaceholder", "GeoJson", "GeoTransform", - "GetCapabilitiesFormat", - "GetCapabilitiesRequest", "GetCoverageFormat", - "GetCoverageRequest", - "GetFeatureRequest", - "GetLegendGraphicRequest", "GetMapExceptionFormat", - "GetMapFormat", - "GetMapRequest", "GfbioAbcdDataProviderDefinition", "GfbioCollectionsDataProviderDefinition", "GridBoundingBox2D", @@ -286,11 +278,15 @@ "Volume", "VolumeFileLayersResponse", "WcsBoundingbox", + "WcsRequest", "WcsService", "WcsVersion", + "WfsRequest", "WfsService", "WfsVersion", "WildliveDataConnectorDefinition", + "WmsRequest", + "WmsResponseFormat", "WmsService", "WmsVersion", "Workflow", @@ -368,7 +364,6 @@ from geoengine_openapi_client.models.dataset_resource import DatasetResource as DatasetResource from geoengine_openapi_client.models.derived_color import DerivedColor as DerivedColor from geoengine_openapi_client.models.derived_number import DerivedNumber as DerivedNumber -from geoengine_openapi_client.models.describe_coverage_request import DescribeCoverageRequest as DescribeCoverageRequest from geoengine_openapi_client.models.ebv_portal_data_provider_definition import EbvPortalDataProviderDefinition as EbvPortalDataProviderDefinition from geoengine_openapi_client.models.edr_data_provider_definition import EdrDataProviderDefinition as EdrDataProviderDefinition from geoengine_openapi_client.models.edr_vector_spec import EdrVectorSpec as EdrVectorSpec @@ -391,15 +386,8 @@ from geoengine_openapi_client.models.gdal_source_time_placeholder import GdalSourceTimePlaceholder as GdalSourceTimePlaceholder from geoengine_openapi_client.models.geo_json import GeoJson as GeoJson from geoengine_openapi_client.models.geo_transform import GeoTransform as GeoTransform -from geoengine_openapi_client.models.get_capabilities_format import GetCapabilitiesFormat as GetCapabilitiesFormat -from geoengine_openapi_client.models.get_capabilities_request import GetCapabilitiesRequest as GetCapabilitiesRequest from geoengine_openapi_client.models.get_coverage_format import GetCoverageFormat as GetCoverageFormat -from geoengine_openapi_client.models.get_coverage_request import GetCoverageRequest as GetCoverageRequest -from geoengine_openapi_client.models.get_feature_request import GetFeatureRequest as GetFeatureRequest -from geoengine_openapi_client.models.get_legend_graphic_request import GetLegendGraphicRequest as GetLegendGraphicRequest from geoengine_openapi_client.models.get_map_exception_format import GetMapExceptionFormat as GetMapExceptionFormat -from geoengine_openapi_client.models.get_map_format import GetMapFormat as GetMapFormat -from geoengine_openapi_client.models.get_map_request import GetMapRequest as GetMapRequest from geoengine_openapi_client.models.gfbio_abcd_data_provider_definition import GfbioAbcdDataProviderDefinition as GfbioAbcdDataProviderDefinition from geoengine_openapi_client.models.gfbio_collections_data_provider_definition import GfbioCollectionsDataProviderDefinition as GfbioCollectionsDataProviderDefinition from geoengine_openapi_client.models.grid_bounding_box2_d import GridBoundingBox2D as GridBoundingBox2D @@ -569,11 +557,15 @@ from geoengine_openapi_client.models.volume import Volume as Volume from geoengine_openapi_client.models.volume_file_layers_response import VolumeFileLayersResponse as VolumeFileLayersResponse from geoengine_openapi_client.models.wcs_boundingbox import WcsBoundingbox as WcsBoundingbox +from geoengine_openapi_client.models.wcs_request import WcsRequest as WcsRequest from geoengine_openapi_client.models.wcs_service import WcsService as WcsService from geoengine_openapi_client.models.wcs_version import WcsVersion as WcsVersion +from geoengine_openapi_client.models.wfs_request import WfsRequest as WfsRequest from geoengine_openapi_client.models.wfs_service import WfsService as WfsService from geoengine_openapi_client.models.wfs_version import WfsVersion as WfsVersion from geoengine_openapi_client.models.wildlive_data_connector_definition import WildliveDataConnectorDefinition as WildliveDataConnectorDefinition +from geoengine_openapi_client.models.wms_request import WmsRequest as WmsRequest +from geoengine_openapi_client.models.wms_response_format import WmsResponseFormat as WmsResponseFormat from geoengine_openapi_client.models.wms_service import WmsService as WmsService from geoengine_openapi_client.models.wms_version import WmsVersion as WmsVersion from geoengine_openapi_client.models.workflow import Workflow as Workflow diff --git a/python/geoengine_openapi_client/api/ogcwcs_api.py b/python/geoengine_openapi_client/api/ogcwcs_api.py index 0259682f..7bf8625c 100644 --- a/python/geoengine_openapi_client/api/ogcwcs_api.py +++ b/python/geoengine_openapi_client/api/ogcwcs_api.py @@ -17,14 +17,12 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictBytes, StrictFloat, StrictInt, StrictStr -from typing import Optional, Tuple, Union +from pydantic import Field, StrictFloat, StrictInt, StrictStr +from typing import Optional, Union from typing_extensions import Annotated from uuid import UUID -from geoengine_openapi_client.models.describe_coverage_request import DescribeCoverageRequest -from geoengine_openapi_client.models.get_capabilities_request import GetCapabilitiesRequest from geoengine_openapi_client.models.get_coverage_format import GetCoverageFormat -from geoengine_openapi_client.models.get_coverage_request import GetCoverageRequest +from geoengine_openapi_client.models.wcs_request import WcsRequest from geoengine_openapi_client.models.wcs_service import WcsService from geoengine_openapi_client.models.wcs_version import WcsVersion @@ -47,657 +45,23 @@ def __init__(self, api_client=None) -> None: @validate_call - def wcs_capabilities_handler( + def wcs_handler( self, workflow: Annotated[UUID, Field(description="Workflow id")], - service: WcsService, - request: GetCapabilitiesRequest, - version: Optional[WcsVersion] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> str: - """Get WCS Capabilities - - - :param workflow: Workflow id (required) - :type workflow: str - :param service: (required) - :type service: WcsService - :param request: (required) - :type request: GetCapabilitiesRequest - :param version: - :type version: WcsVersion - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._wcs_capabilities_handler_serialize( - workflow=workflow, - service=service, - request=request, - version=version, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def wcs_capabilities_handler_with_http_info( - self, - workflow: Annotated[UUID, Field(description="Workflow id")], - service: WcsService, - request: GetCapabilitiesRequest, - version: Optional[WcsVersion] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[str]: - """Get WCS Capabilities - - - :param workflow: Workflow id (required) - :type workflow: str - :param service: (required) - :type service: WcsService - :param request: (required) - :type request: GetCapabilitiesRequest - :param version: - :type version: WcsVersion - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._wcs_capabilities_handler_serialize( - workflow=workflow, - service=service, - request=request, - version=version, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def wcs_capabilities_handler_without_preload_content( - self, - workflow: Annotated[UUID, Field(description="Workflow id")], - service: WcsService, - request: GetCapabilitiesRequest, - version: Optional[WcsVersion] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get WCS Capabilities - - - :param workflow: Workflow id (required) - :type workflow: str - :param service: (required) - :type service: WcsService - :param request: (required) - :type request: GetCapabilitiesRequest - :param version: - :type version: WcsVersion - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._wcs_capabilities_handler_serialize( - workflow=workflow, - service=service, - request=request, - version=version, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _wcs_capabilities_handler_serialize( - self, - workflow, - service, - request, - version, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if workflow is not None: - _path_params['workflow'] = workflow - # process the query parameters - if version is not None: - - _query_params.append(('version', version.value)) - - if service is not None: - - _query_params.append(('service', service.value)) - - if request is not None: - - _query_params.append(('request', request.value)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/xml' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'session_token' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/wcs/{workflow}?request=GetCapabilities', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def wcs_describe_coverage_handler( - self, - workflow: Annotated[UUID, Field(description="Workflow id")], - version: WcsVersion, - service: WcsService, - request: DescribeCoverageRequest, - identifiers: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> str: - """Get WCS Coverage Description - - - :param workflow: Workflow id (required) - :type workflow: str - :param version: (required) - :type version: WcsVersion - :param service: (required) - :type service: WcsService - :param request: (required) - :type request: DescribeCoverageRequest - :param identifiers: (required) - :type identifiers: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._wcs_describe_coverage_handler_serialize( - workflow=workflow, - version=version, - service=service, - request=request, - identifiers=identifiers, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def wcs_describe_coverage_handler_with_http_info( - self, - workflow: Annotated[UUID, Field(description="Workflow id")], - version: WcsVersion, - service: WcsService, - request: DescribeCoverageRequest, - identifiers: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[str]: - """Get WCS Coverage Description - - - :param workflow: Workflow id (required) - :type workflow: str - :param version: (required) - :type version: WcsVersion - :param service: (required) - :type service: WcsService - :param request: (required) - :type request: DescribeCoverageRequest - :param identifiers: (required) - :type identifiers: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._wcs_describe_coverage_handler_serialize( - workflow=workflow, - version=version, - service=service, - request=request, - identifiers=identifiers, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def wcs_describe_coverage_handler_without_preload_content( - self, - workflow: Annotated[UUID, Field(description="Workflow id")], - version: WcsVersion, - service: WcsService, - request: DescribeCoverageRequest, - identifiers: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get WCS Coverage Description - - - :param workflow: Workflow id (required) - :type workflow: str - :param version: (required) - :type version: WcsVersion - :param service: (required) - :type service: WcsService - :param request: (required) - :type request: DescribeCoverageRequest - :param identifiers: (required) - :type identifiers: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._wcs_describe_coverage_handler_serialize( - workflow=workflow, - version=version, - service=service, - request=request, - identifiers=identifiers, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _wcs_describe_coverage_handler_serialize( - self, - workflow, - version, - service, - request, - identifiers, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if workflow is not None: - _path_params['workflow'] = workflow - # process the query parameters - if version is not None: - - _query_params.append(('version', version.value)) - - if service is not None: - - _query_params.append(('service', service.value)) - - if request is not None: - - _query_params.append(('request', request.value)) - - if identifiers is not None: - - _query_params.append(('identifiers', identifiers)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/xml' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'session_token' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/wcs/{workflow}?request=DescribeCoverage', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def wcs_get_coverage_handler( - self, - workflow: Annotated[UUID, Field(description="Workflow id")], - version: WcsVersion, - service: WcsService, - request: GetCoverageRequest, - format: GetCoverageFormat, - identifier: StrictStr, - boundingbox: StrictStr, - gridbasecrs: StrictStr, - gridorigin: Optional[StrictStr] = None, + request: Annotated[WcsRequest, Field(description="type of WCS request")], + boundingbox: Optional[StrictStr] = None, + format: Optional[GetCoverageFormat] = None, + gridbasecrs: Optional[StrictStr] = None, gridoffsets: Optional[StrictStr] = None, - time: Optional[StrictStr] = None, + gridorigin: Optional[StrictStr] = None, + identifier: Optional[StrictStr] = None, + identifiers: Optional[StrictStr] = None, + nodatavalue: Optional[Union[StrictFloat, StrictInt]] = None, resx: Optional[Union[StrictFloat, StrictInt]] = None, resy: Optional[Union[StrictFloat, StrictInt]] = None, - nodatavalue: Optional[Union[StrictFloat, StrictInt]] = None, + service: Optional[WcsService] = None, + time: Optional[StrictStr] = None, + version: Optional[WcsVersion] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -710,38 +74,40 @@ def wcs_get_coverage_handler( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytearray: - """Get WCS Coverage + ) -> str: + """OGC WCS endpoint :param workflow: Workflow id (required) :type workflow: str - :param version: (required) - :type version: WcsVersion - :param service: (required) - :type service: WcsService - :param request: (required) - :type request: GetCoverageRequest - :param format: (required) - :type format: GetCoverageFormat - :param identifier: (required) - :type identifier: str - :param boundingbox: (required) + :param request: type of WCS request (required) + :type request: WcsRequest + :param boundingbox: :type boundingbox: str - :param gridbasecrs: (required) + :param format: + :type format: GetCoverageFormat + :param gridbasecrs: :type gridbasecrs: str - :param gridorigin: - :type gridorigin: str :param gridoffsets: :type gridoffsets: str - :param time: - :type time: str + :param gridorigin: + :type gridorigin: str + :param identifier: + :type identifier: str + :param identifiers: + :type identifiers: str + :param nodatavalue: + :type nodatavalue: float :param resx: :type resx: float :param resy: :type resy: float - :param nodatavalue: - :type nodatavalue: float + :param service: + :type service: WcsService + :param time: + :type time: str + :param version: + :type version: WcsVersion :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -764,21 +130,22 @@ def wcs_get_coverage_handler( :return: Returns the result object. """ # noqa: E501 - _param = self._wcs_get_coverage_handler_serialize( + _param = self._wcs_handler_serialize( workflow=workflow, - version=version, - service=service, request=request, - format=format, - identifier=identifier, boundingbox=boundingbox, + format=format, gridbasecrs=gridbasecrs, - gridorigin=gridorigin, gridoffsets=gridoffsets, - time=time, + gridorigin=gridorigin, + identifier=identifier, + identifiers=identifiers, + nodatavalue=nodatavalue, resx=resx, resy=resy, - nodatavalue=nodatavalue, + service=service, + time=time, + version=version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -786,7 +153,7 @@ def wcs_get_coverage_handler( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "str", } response_data = self.api_client.call_api( *_param, @@ -800,22 +167,23 @@ def wcs_get_coverage_handler( @validate_call - def wcs_get_coverage_handler_with_http_info( + def wcs_handler_with_http_info( self, workflow: Annotated[UUID, Field(description="Workflow id")], - version: WcsVersion, - service: WcsService, - request: GetCoverageRequest, - format: GetCoverageFormat, - identifier: StrictStr, - boundingbox: StrictStr, - gridbasecrs: StrictStr, - gridorigin: Optional[StrictStr] = None, + request: Annotated[WcsRequest, Field(description="type of WCS request")], + boundingbox: Optional[StrictStr] = None, + format: Optional[GetCoverageFormat] = None, + gridbasecrs: Optional[StrictStr] = None, gridoffsets: Optional[StrictStr] = None, - time: Optional[StrictStr] = None, + gridorigin: Optional[StrictStr] = None, + identifier: Optional[StrictStr] = None, + identifiers: Optional[StrictStr] = None, + nodatavalue: Optional[Union[StrictFloat, StrictInt]] = None, resx: Optional[Union[StrictFloat, StrictInt]] = None, resy: Optional[Union[StrictFloat, StrictInt]] = None, - nodatavalue: Optional[Union[StrictFloat, StrictInt]] = None, + service: Optional[WcsService] = None, + time: Optional[StrictStr] = None, + version: Optional[WcsVersion] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -828,38 +196,40 @@ def wcs_get_coverage_handler_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytearray]: - """Get WCS Coverage + ) -> ApiResponse[str]: + """OGC WCS endpoint :param workflow: Workflow id (required) :type workflow: str - :param version: (required) - :type version: WcsVersion - :param service: (required) - :type service: WcsService - :param request: (required) - :type request: GetCoverageRequest - :param format: (required) - :type format: GetCoverageFormat - :param identifier: (required) - :type identifier: str - :param boundingbox: (required) + :param request: type of WCS request (required) + :type request: WcsRequest + :param boundingbox: :type boundingbox: str - :param gridbasecrs: (required) + :param format: + :type format: GetCoverageFormat + :param gridbasecrs: :type gridbasecrs: str - :param gridorigin: - :type gridorigin: str :param gridoffsets: :type gridoffsets: str - :param time: - :type time: str + :param gridorigin: + :type gridorigin: str + :param identifier: + :type identifier: str + :param identifiers: + :type identifiers: str + :param nodatavalue: + :type nodatavalue: float :param resx: :type resx: float :param resy: :type resy: float - :param nodatavalue: - :type nodatavalue: float + :param service: + :type service: WcsService + :param time: + :type time: str + :param version: + :type version: WcsVersion :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -882,21 +252,22 @@ def wcs_get_coverage_handler_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._wcs_get_coverage_handler_serialize( + _param = self._wcs_handler_serialize( workflow=workflow, - version=version, - service=service, request=request, - format=format, - identifier=identifier, boundingbox=boundingbox, + format=format, gridbasecrs=gridbasecrs, - gridorigin=gridorigin, gridoffsets=gridoffsets, - time=time, + gridorigin=gridorigin, + identifier=identifier, + identifiers=identifiers, + nodatavalue=nodatavalue, resx=resx, resy=resy, - nodatavalue=nodatavalue, + service=service, + time=time, + version=version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -904,7 +275,7 @@ def wcs_get_coverage_handler_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "str", } response_data = self.api_client.call_api( *_param, @@ -918,22 +289,23 @@ def wcs_get_coverage_handler_with_http_info( @validate_call - def wcs_get_coverage_handler_without_preload_content( + def wcs_handler_without_preload_content( self, workflow: Annotated[UUID, Field(description="Workflow id")], - version: WcsVersion, - service: WcsService, - request: GetCoverageRequest, - format: GetCoverageFormat, - identifier: StrictStr, - boundingbox: StrictStr, - gridbasecrs: StrictStr, - gridorigin: Optional[StrictStr] = None, + request: Annotated[WcsRequest, Field(description="type of WCS request")], + boundingbox: Optional[StrictStr] = None, + format: Optional[GetCoverageFormat] = None, + gridbasecrs: Optional[StrictStr] = None, gridoffsets: Optional[StrictStr] = None, - time: Optional[StrictStr] = None, + gridorigin: Optional[StrictStr] = None, + identifier: Optional[StrictStr] = None, + identifiers: Optional[StrictStr] = None, + nodatavalue: Optional[Union[StrictFloat, StrictInt]] = None, resx: Optional[Union[StrictFloat, StrictInt]] = None, resy: Optional[Union[StrictFloat, StrictInt]] = None, - nodatavalue: Optional[Union[StrictFloat, StrictInt]] = None, + service: Optional[WcsService] = None, + time: Optional[StrictStr] = None, + version: Optional[WcsVersion] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -947,37 +319,39 @@ def wcs_get_coverage_handler_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get WCS Coverage + """OGC WCS endpoint :param workflow: Workflow id (required) :type workflow: str - :param version: (required) - :type version: WcsVersion - :param service: (required) - :type service: WcsService - :param request: (required) - :type request: GetCoverageRequest - :param format: (required) - :type format: GetCoverageFormat - :param identifier: (required) - :type identifier: str - :param boundingbox: (required) + :param request: type of WCS request (required) + :type request: WcsRequest + :param boundingbox: :type boundingbox: str - :param gridbasecrs: (required) + :param format: + :type format: GetCoverageFormat + :param gridbasecrs: :type gridbasecrs: str - :param gridorigin: - :type gridorigin: str :param gridoffsets: :type gridoffsets: str - :param time: - :type time: str + :param gridorigin: + :type gridorigin: str + :param identifier: + :type identifier: str + :param identifiers: + :type identifiers: str + :param nodatavalue: + :type nodatavalue: float :param resx: :type resx: float :param resy: :type resy: float - :param nodatavalue: - :type nodatavalue: float + :param service: + :type service: WcsService + :param time: + :type time: str + :param version: + :type version: WcsVersion :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1000,21 +374,22 @@ def wcs_get_coverage_handler_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._wcs_get_coverage_handler_serialize( + _param = self._wcs_handler_serialize( workflow=workflow, - version=version, - service=service, request=request, - format=format, - identifier=identifier, boundingbox=boundingbox, + format=format, gridbasecrs=gridbasecrs, - gridorigin=gridorigin, gridoffsets=gridoffsets, - time=time, + gridorigin=gridorigin, + identifier=identifier, + identifiers=identifiers, + nodatavalue=nodatavalue, resx=resx, resy=resy, - nodatavalue=nodatavalue, + service=service, + time=time, + version=version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1022,7 +397,7 @@ def wcs_get_coverage_handler_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + '200': "str", } response_data = self.api_client.call_api( *_param, @@ -1031,22 +406,23 @@ def wcs_get_coverage_handler_without_preload_content( return response_data.response - def _wcs_get_coverage_handler_serialize( + def _wcs_handler_serialize( self, workflow, - version, - service, request, - format, - identifier, boundingbox, + format, gridbasecrs, - gridorigin, gridoffsets, - time, + gridorigin, + identifier, + identifiers, + nodatavalue, resx, resy, - nodatavalue, + service, + time, + version, _request_auth, _content_type, _headers, @@ -1071,45 +447,41 @@ def _wcs_get_coverage_handler_serialize( if workflow is not None: _path_params['workflow'] = workflow # process the query parameters - if version is not None: - - _query_params.append(('version', version.value)) - - if service is not None: - - _query_params.append(('service', service.value)) - - if request is not None: + if boundingbox is not None: - _query_params.append(('request', request.value)) + _query_params.append(('boundingbox', boundingbox)) if format is not None: _query_params.append(('format', format.value)) - if identifier is not None: - - _query_params.append(('identifier', identifier)) - - if boundingbox is not None: - - _query_params.append(('boundingbox', boundingbox)) - if gridbasecrs is not None: _query_params.append(('gridbasecrs', gridbasecrs)) + if gridoffsets is not None: + + _query_params.append(('gridoffsets', gridoffsets)) + if gridorigin is not None: _query_params.append(('gridorigin', gridorigin)) - if gridoffsets is not None: + if identifier is not None: - _query_params.append(('gridoffsets', gridoffsets)) + _query_params.append(('identifier', identifier)) - if time is not None: + if identifiers is not None: - _query_params.append(('time', time)) + _query_params.append(('identifiers', identifiers)) + + if nodatavalue is not None: + + _query_params.append(('nodatavalue', nodatavalue)) + + if request is not None: + + _query_params.append(('request', request.value)) if resx is not None: @@ -1119,9 +491,17 @@ def _wcs_get_coverage_handler_serialize( _query_params.append(('resy', resy)) - if nodatavalue is not None: + if service is not None: - _query_params.append(('nodatavalue', nodatavalue)) + _query_params.append(('service', service.value)) + + if time is not None: + + _query_params.append(('time', time)) + + if version is not None: + + _query_params.append(('version', version.value)) # process the header parameters # process the form parameters @@ -1132,7 +512,7 @@ def _wcs_get_coverage_handler_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'image/png' + 'text/xml' ] ) @@ -1144,7 +524,7 @@ def _wcs_get_coverage_handler_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/wcs/{workflow}?request=GetCoverage', + resource_path='/wcs/{workflow}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/python/geoengine_openapi_client/api/ogcwfs_api.py b/python/geoengine_openapi_client/api/ogcwfs_api.py index 1e80f1ab..f0c94f45 100644 --- a/python/geoengine_openapi_client/api/ogcwfs_api.py +++ b/python/geoengine_openapi_client/api/ogcwfs_api.py @@ -22,8 +22,7 @@ from typing_extensions import Annotated from uuid import UUID from geoengine_openapi_client.models.geo_json import GeoJson -from geoengine_openapi_client.models.get_capabilities_request import GetCapabilitiesRequest -from geoengine_openapi_client.models.get_feature_request import GetFeatureRequest +from geoengine_openapi_client.models.wfs_request import WfsRequest from geoengine_openapi_client.models.wfs_service import WfsService from geoengine_openapi_client.models.wfs_version import WfsVersion @@ -46,327 +45,22 @@ def __init__(self, api_client=None) -> None: @validate_call - def wfs_capabilities_handler( + def wfs_handler( self, workflow: Annotated[UUID, Field(description="Workflow id")], - version: Optional[WfsVersion], - service: WfsService, - request: GetCapabilitiesRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> str: - """Get WFS Capabilities - - - :param workflow: Workflow id (required) - :type workflow: str - :param version: (required) - :type version: WfsVersion - :param service: (required) - :type service: WfsService - :param request: (required) - :type request: GetCapabilitiesRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._wfs_capabilities_handler_serialize( - workflow=workflow, - version=version, - service=service, - request=request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def wfs_capabilities_handler_with_http_info( - self, - workflow: Annotated[UUID, Field(description="Workflow id")], - version: Optional[WfsVersion], - service: WfsService, - request: GetCapabilitiesRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[str]: - """Get WFS Capabilities - - - :param workflow: Workflow id (required) - :type workflow: str - :param version: (required) - :type version: WfsVersion - :param service: (required) - :type service: WfsService - :param request: (required) - :type request: GetCapabilitiesRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._wfs_capabilities_handler_serialize( - workflow=workflow, - version=version, - service=service, - request=request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def wfs_capabilities_handler_without_preload_content( - self, - workflow: Annotated[UUID, Field(description="Workflow id")], - version: Optional[WfsVersion], - service: WfsService, - request: GetCapabilitiesRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get WFS Capabilities - - - :param workflow: Workflow id (required) - :type workflow: str - :param version: (required) - :type version: WfsVersion - :param service: (required) - :type service: WfsService - :param request: (required) - :type request: GetCapabilitiesRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._wfs_capabilities_handler_serialize( - workflow=workflow, - version=version, - service=service, - request=request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _wfs_capabilities_handler_serialize( - self, - workflow, - version, - service, - request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if workflow is not None: - _path_params['workflow'] = workflow - if version is not None: - _path_params['version'] = version.value - if service is not None: - _path_params['service'] = service.value - if request is not None: - _path_params['request'] = request.value - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/xml' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'session_token' - ] - - return self.api_client.param_serialize( - method='GET', - # Note: remove query string in path part for ogc endpoints - resource_path='/wfs/{workflow}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def wfs_feature_handler( - self, - workflow: Annotated[UUID, Field(description="Workflow id")], - service: WfsService, - request: GetFeatureRequest, - type_names: StrictStr, - bbox: StrictStr, - version: Optional[WfsVersion] = None, - time: Optional[StrictStr] = None, - srs_name: Optional[StrictStr] = None, - namespaces: Optional[StrictStr] = None, + request: Annotated[WfsRequest, Field(description="type of WFS request")], + bbox: Optional[StrictStr] = None, count: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, - sort_by: Optional[StrictStr] = None, - result_type: Optional[StrictStr] = None, filter: Optional[StrictStr] = None, + namespaces: Optional[StrictStr] = None, property_name: Optional[StrictStr] = None, - query_resolution: Annotated[Optional[StrictStr], Field(description="Vendor parameter for specifying a spatial query resolution")] = None, + result_type: Optional[StrictStr] = None, + service: Optional[WfsService] = None, + sort_by: Optional[StrictStr] = None, + srs_name: Optional[StrictStr] = None, + time: Optional[StrictStr] = None, + type_names: Optional[StrictStr] = None, + version: Optional[WfsVersion] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -380,39 +74,37 @@ def wfs_feature_handler( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GeoJson: - """Get WCS Features + """OGC WFS endpoint :param workflow: Workflow id (required) :type workflow: str - :param service: (required) - :type service: WfsService - :param request: (required) - :type request: GetFeatureRequest - :param type_names: (required) - :type type_names: str - :param bbox: (required) + :param request: type of WFS request (required) + :type request: WfsRequest + :param bbox: :type bbox: str - :param version: - :type version: WfsVersion - :param time: - :type time: str - :param srs_name: - :type srs_name: str - :param namespaces: - :type namespaces: str :param count: :type count: int - :param sort_by: - :type sort_by: str - :param result_type: - :type result_type: str :param filter: :type filter: str + :param namespaces: + :type namespaces: str :param property_name: :type property_name: str - :param query_resolution: Vendor parameter for specifying a spatial query resolution - :type query_resolution: str + :param result_type: + :type result_type: str + :param service: + :type service: WfsService + :param sort_by: + :type sort_by: str + :param srs_name: + :type srs_name: str + :param time: + :type time: str + :param type_names: + :type type_names: str + :param version: + :type version: WfsVersion :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -435,22 +127,21 @@ def wfs_feature_handler( :return: Returns the result object. """ # noqa: E501 - _param = self._wfs_feature_handler_serialize( + _param = self._wfs_handler_serialize( workflow=workflow, - service=service, request=request, - type_names=type_names, bbox=bbox, - version=version, - time=time, - srs_name=srs_name, - namespaces=namespaces, count=count, - sort_by=sort_by, - result_type=result_type, filter=filter, + namespaces=namespaces, property_name=property_name, - query_resolution=query_resolution, + result_type=result_type, + service=service, + sort_by=sort_by, + srs_name=srs_name, + time=time, + type_names=type_names, + version=version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -472,23 +163,22 @@ def wfs_feature_handler( @validate_call - def wfs_feature_handler_with_http_info( + def wfs_handler_with_http_info( self, workflow: Annotated[UUID, Field(description="Workflow id")], - service: WfsService, - request: GetFeatureRequest, - type_names: StrictStr, - bbox: StrictStr, - version: Optional[WfsVersion] = None, - time: Optional[StrictStr] = None, - srs_name: Optional[StrictStr] = None, - namespaces: Optional[StrictStr] = None, + request: Annotated[WfsRequest, Field(description="type of WFS request")], + bbox: Optional[StrictStr] = None, count: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, - sort_by: Optional[StrictStr] = None, - result_type: Optional[StrictStr] = None, filter: Optional[StrictStr] = None, + namespaces: Optional[StrictStr] = None, property_name: Optional[StrictStr] = None, - query_resolution: Annotated[Optional[StrictStr], Field(description="Vendor parameter for specifying a spatial query resolution")] = None, + result_type: Optional[StrictStr] = None, + service: Optional[WfsService] = None, + sort_by: Optional[StrictStr] = None, + srs_name: Optional[StrictStr] = None, + time: Optional[StrictStr] = None, + type_names: Optional[StrictStr] = None, + version: Optional[WfsVersion] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -502,39 +192,37 @@ def wfs_feature_handler_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GeoJson]: - """Get WCS Features + """OGC WFS endpoint :param workflow: Workflow id (required) :type workflow: str - :param service: (required) - :type service: WfsService - :param request: (required) - :type request: GetFeatureRequest - :param type_names: (required) - :type type_names: str - :param bbox: (required) + :param request: type of WFS request (required) + :type request: WfsRequest + :param bbox: :type bbox: str - :param version: - :type version: WfsVersion - :param time: - :type time: str - :param srs_name: - :type srs_name: str - :param namespaces: - :type namespaces: str :param count: :type count: int - :param sort_by: - :type sort_by: str - :param result_type: - :type result_type: str :param filter: :type filter: str + :param namespaces: + :type namespaces: str :param property_name: :type property_name: str - :param query_resolution: Vendor parameter for specifying a spatial query resolution - :type query_resolution: str + :param result_type: + :type result_type: str + :param service: + :type service: WfsService + :param sort_by: + :type sort_by: str + :param srs_name: + :type srs_name: str + :param time: + :type time: str + :param type_names: + :type type_names: str + :param version: + :type version: WfsVersion :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -557,22 +245,21 @@ def wfs_feature_handler_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._wfs_feature_handler_serialize( + _param = self._wfs_handler_serialize( workflow=workflow, - service=service, request=request, - type_names=type_names, bbox=bbox, - version=version, - time=time, - srs_name=srs_name, - namespaces=namespaces, count=count, - sort_by=sort_by, - result_type=result_type, filter=filter, + namespaces=namespaces, property_name=property_name, - query_resolution=query_resolution, + result_type=result_type, + service=service, + sort_by=sort_by, + srs_name=srs_name, + time=time, + type_names=type_names, + version=version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -594,23 +281,22 @@ def wfs_feature_handler_with_http_info( @validate_call - def wfs_feature_handler_without_preload_content( + def wfs_handler_without_preload_content( self, workflow: Annotated[UUID, Field(description="Workflow id")], - service: WfsService, - request: GetFeatureRequest, - type_names: StrictStr, - bbox: StrictStr, - version: Optional[WfsVersion] = None, - time: Optional[StrictStr] = None, - srs_name: Optional[StrictStr] = None, - namespaces: Optional[StrictStr] = None, + request: Annotated[WfsRequest, Field(description="type of WFS request")], + bbox: Optional[StrictStr] = None, count: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, - sort_by: Optional[StrictStr] = None, - result_type: Optional[StrictStr] = None, filter: Optional[StrictStr] = None, + namespaces: Optional[StrictStr] = None, property_name: Optional[StrictStr] = None, - query_resolution: Annotated[Optional[StrictStr], Field(description="Vendor parameter for specifying a spatial query resolution")] = None, + result_type: Optional[StrictStr] = None, + service: Optional[WfsService] = None, + sort_by: Optional[StrictStr] = None, + srs_name: Optional[StrictStr] = None, + time: Optional[StrictStr] = None, + type_names: Optional[StrictStr] = None, + version: Optional[WfsVersion] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -624,39 +310,37 @@ def wfs_feature_handler_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get WCS Features + """OGC WFS endpoint :param workflow: Workflow id (required) :type workflow: str - :param service: (required) - :type service: WfsService - :param request: (required) - :type request: GetFeatureRequest - :param type_names: (required) - :type type_names: str - :param bbox: (required) + :param request: type of WFS request (required) + :type request: WfsRequest + :param bbox: :type bbox: str - :param version: - :type version: WfsVersion - :param time: - :type time: str - :param srs_name: - :type srs_name: str - :param namespaces: - :type namespaces: str :param count: :type count: int - :param sort_by: - :type sort_by: str - :param result_type: - :type result_type: str :param filter: :type filter: str + :param namespaces: + :type namespaces: str :param property_name: :type property_name: str - :param query_resolution: Vendor parameter for specifying a spatial query resolution - :type query_resolution: str + :param result_type: + :type result_type: str + :param service: + :type service: WfsService + :param sort_by: + :type sort_by: str + :param srs_name: + :type srs_name: str + :param time: + :type time: str + :param type_names: + :type type_names: str + :param version: + :type version: WfsVersion :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -679,22 +363,21 @@ def wfs_feature_handler_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._wfs_feature_handler_serialize( + _param = self._wfs_handler_serialize( workflow=workflow, - service=service, request=request, - type_names=type_names, bbox=bbox, - version=version, - time=time, - srs_name=srs_name, - namespaces=namespaces, count=count, - sort_by=sort_by, - result_type=result_type, filter=filter, + namespaces=namespaces, property_name=property_name, - query_resolution=query_resolution, + result_type=result_type, + service=service, + sort_by=sort_by, + srs_name=srs_name, + time=time, + type_names=type_names, + version=version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -711,23 +394,22 @@ def wfs_feature_handler_without_preload_content( return response_data.response - def _wfs_feature_handler_serialize( + def _wfs_handler_serialize( self, workflow, - service, request, - type_names, bbox, - version, - time, - srs_name, - namespaces, count, - sort_by, - result_type, filter, + namespaces, property_name, - query_resolution, + result_type, + service, + sort_by, + srs_name, + time, + type_names, + version, _request_auth, _content_type, _headers, @@ -752,61 +434,57 @@ def _wfs_feature_handler_serialize( if workflow is not None: _path_params['workflow'] = workflow # process the query parameters - if version is not None: - - _query_params.append(('version', version.value)) - - if service is not None: + if bbox is not None: - _query_params.append(('service', service.value)) + _query_params.append(('bbox', bbox)) - if request is not None: + if count is not None: - _query_params.append(('request', request.value)) + _query_params.append(('count', count)) - if type_names is not None: + if filter is not None: - _query_params.append(('typeNames', type_names)) + _query_params.append(('filter', filter)) - if bbox is not None: + if namespaces is not None: - _query_params.append(('bbox', bbox)) + _query_params.append(('namespaces', namespaces)) - if time is not None: + if property_name is not None: - _query_params.append(('time', time)) + _query_params.append(('propertyName', property_name)) - if srs_name is not None: + if request is not None: - _query_params.append(('srsName', srs_name)) + _query_params.append(('request', request.value)) - if namespaces is not None: + if result_type is not None: - _query_params.append(('namespaces', namespaces)) + _query_params.append(('resultType', result_type)) - if count is not None: + if service is not None: - _query_params.append(('count', count)) + _query_params.append(('service', service.value)) if sort_by is not None: _query_params.append(('sortBy', sort_by)) - if result_type is not None: + if srs_name is not None: - _query_params.append(('resultType', result_type)) + _query_params.append(('srsName', srs_name)) - if filter is not None: + if time is not None: - _query_params.append(('filter', filter)) + _query_params.append(('time', time)) - if property_name is not None: + if type_names is not None: - _query_params.append(('propertyName', property_name)) + _query_params.append(('typeNames', type_names)) - if query_resolution is not None: + if version is not None: - _query_params.append(('queryResolution', query_resolution)) + _query_params.append(('version', version.value)) # process the header parameters # process the form parameters @@ -829,7 +507,6 @@ def _wfs_feature_handler_serialize( return self.api_client.param_serialize( method='GET', - # Note: remove query string in path part for ogc endpoints resource_path='/wfs/{workflow}', path_params=_path_params, query_params=_query_params, diff --git a/python/geoengine_openapi_client/api/ogcwms_api.py b/python/geoengine_openapi_client/api/ogcwms_api.py index 8e143da6..773593ca 100644 --- a/python/geoengine_openapi_client/api/ogcwms_api.py +++ b/python/geoengine_openapi_client/api/ogcwms_api.py @@ -21,12 +21,9 @@ from typing import Optional, Tuple, Union from typing_extensions import Annotated from uuid import UUID -from geoengine_openapi_client.models.get_capabilities_format import GetCapabilitiesFormat -from geoengine_openapi_client.models.get_capabilities_request import GetCapabilitiesRequest -from geoengine_openapi_client.models.get_legend_graphic_request import GetLegendGraphicRequest from geoengine_openapi_client.models.get_map_exception_format import GetMapExceptionFormat -from geoengine_openapi_client.models.get_map_format import GetMapFormat -from geoengine_openapi_client.models.get_map_request import GetMapRequest +from geoengine_openapi_client.models.wms_request import WmsRequest +from geoengine_openapi_client.models.wms_response_format import WmsResponseFormat from geoengine_openapi_client.models.wms_service import WmsService from geoengine_openapi_client.models.wms_version import WmsVersion @@ -49,657 +46,29 @@ def __init__(self, api_client=None) -> None: @validate_call - def wms_capabilities_handler( + def wms_handler( self, workflow: Annotated[UUID, Field(description="Workflow id")], - version: Optional[WmsVersion], - service: WmsService, - request: GetCapabilitiesRequest, - format: Optional[GetCapabilitiesFormat], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> str: - """Get WMS Capabilities - - - :param workflow: Workflow id (required) - :type workflow: str - :param version: (required) - :type version: WmsVersion - :param service: (required) - :type service: WmsService - :param request: (required) - :type request: GetCapabilitiesRequest - :param format: (required) - :type format: GetCapabilitiesFormat - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._wms_capabilities_handler_serialize( - workflow=workflow, - version=version, - service=service, - request=request, - format=format, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def wms_capabilities_handler_with_http_info( - self, - workflow: Annotated[UUID, Field(description="Workflow id")], - version: Optional[WmsVersion], - service: WmsService, - request: GetCapabilitiesRequest, - format: Optional[GetCapabilitiesFormat], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[str]: - """Get WMS Capabilities - - - :param workflow: Workflow id (required) - :type workflow: str - :param version: (required) - :type version: WmsVersion - :param service: (required) - :type service: WmsService - :param request: (required) - :type request: GetCapabilitiesRequest - :param format: (required) - :type format: GetCapabilitiesFormat - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._wms_capabilities_handler_serialize( - workflow=workflow, - version=version, - service=service, - request=request, - format=format, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def wms_capabilities_handler_without_preload_content( - self, - workflow: Annotated[UUID, Field(description="Workflow id")], - version: Optional[WmsVersion], - service: WmsService, - request: GetCapabilitiesRequest, - format: Optional[GetCapabilitiesFormat], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get WMS Capabilities - - - :param workflow: Workflow id (required) - :type workflow: str - :param version: (required) - :type version: WmsVersion - :param service: (required) - :type service: WmsService - :param request: (required) - :type request: GetCapabilitiesRequest - :param format: (required) - :type format: GetCapabilitiesFormat - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._wms_capabilities_handler_serialize( - workflow=workflow, - version=version, - service=service, - request=request, - format=format, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "str", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _wms_capabilities_handler_serialize( - self, - workflow, - version, - service, - request, - format, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if workflow is not None: - _path_params['workflow'] = workflow - if version is not None: - _path_params['version'] = version.value - if service is not None: - _path_params['service'] = service.value - if request is not None: - _path_params['request'] = request.value - if format is not None: - _path_params['format'] = format.value - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'text/xml' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'session_token' - ] - - return self.api_client.param_serialize( - method='GET', - # Note: remove query string in path part for ogc endpoints - resource_path='/wms/{workflow}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def wms_legend_graphic_handler( - self, - workflow: Annotated[UUID, Field(description="Workflow id")], - version: WmsVersion, - service: WmsService, - request: GetLegendGraphicRequest, - layer: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """Get WMS Legend Graphic - - - :param workflow: Workflow id (required) - :type workflow: str - :param version: (required) - :type version: WmsVersion - :param service: (required) - :type service: WmsService - :param request: (required) - :type request: GetLegendGraphicRequest - :param layer: (required) - :type layer: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._wms_legend_graphic_handler_serialize( - workflow=workflow, - version=version, - service=service, - request=request, - layer=layer, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '501': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def wms_legend_graphic_handler_with_http_info( - self, - workflow: Annotated[UUID, Field(description="Workflow id")], - version: WmsVersion, - service: WmsService, - request: GetLegendGraphicRequest, - layer: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """Get WMS Legend Graphic - - - :param workflow: Workflow id (required) - :type workflow: str - :param version: (required) - :type version: WmsVersion - :param service: (required) - :type service: WmsService - :param request: (required) - :type request: GetLegendGraphicRequest - :param layer: (required) - :type layer: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._wms_legend_graphic_handler_serialize( - workflow=workflow, - version=version, - service=service, - request=request, - layer=layer, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '501': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def wms_legend_graphic_handler_without_preload_content( - self, - workflow: Annotated[UUID, Field(description="Workflow id")], - version: WmsVersion, - service: WmsService, - request: GetLegendGraphicRequest, - layer: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get WMS Legend Graphic - - - :param workflow: Workflow id (required) - :type workflow: str - :param version: (required) - :type version: WmsVersion - :param service: (required) - :type service: WmsService - :param request: (required) - :type request: GetLegendGraphicRequest - :param layer: (required) - :type layer: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._wms_legend_graphic_handler_serialize( - workflow=workflow, - version=version, - service=service, - request=request, - layer=layer, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '501': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _wms_legend_graphic_handler_serialize( - self, - workflow, - version, - service, - request, - layer, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if workflow is not None: - _path_params['workflow'] = workflow - if version is not None: - _path_params['version'] = version.value - if service is not None: - _path_params['service'] = service.value - if request is not None: - _path_params['request'] = request.value - if layer is not None: - _path_params['layer'] = layer - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - - - # authentication setting - _auth_settings: List[str] = [ - 'session_token' - ] - - return self.api_client.param_serialize( - method='GET', - # Note: remove query string in path part for ogc endpoints - resource_path='/wms/{workflow}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def wms_map_handler( - self, - workflow: Annotated[UUID, Field(description="Workflow id")], - version: WmsVersion, - service: WmsService, - request: GetMapRequest, - width: Annotated[int, Field(strict=True, ge=0)], - height: Annotated[int, Field(strict=True, ge=0)], - bbox: StrictStr, - format: GetMapFormat, - layers: StrictStr, - styles: StrictStr, - crs: Optional[StrictStr] = None, - time: Optional[StrictStr] = None, - transparent: Optional[StrictBool] = None, + request: Annotated[WmsRequest, Field(description="type of WMS request")], + bbox: Optional[StrictStr] = None, bgcolor: Optional[StrictStr] = None, - sld: Optional[StrictStr] = None, - sld_body: Optional[StrictStr] = None, + crs: Optional[StrictStr] = None, elevation: Optional[StrictStr] = None, exceptions: Optional[GetMapExceptionFormat] = None, + format: Optional[WmsResponseFormat] = None, + height: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, + info_format: Optional[StrictStr] = None, + layer: Optional[StrictStr] = None, + layers: Optional[StrictStr] = None, + query_layers: Optional[StrictStr] = None, + service: Optional[WmsService] = None, + sld: Optional[StrictStr] = None, + sld_body: Optional[StrictStr] = None, + styles: Optional[StrictStr] = None, + time: Optional[StrictStr] = None, + transparent: Optional[StrictBool] = None, + version: Optional[WmsVersion] = None, + width: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -713,45 +82,51 @@ def wms_map_handler( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: - """Get WMS Map + """OGC WMS endpoint :param workflow: Workflow id (required) :type workflow: str - :param version: (required) - :type version: WmsVersion - :param service: (required) - :type service: WmsService - :param request: (required) - :type request: GetMapRequest - :param width: (required) - :type width: int - :param height: (required) - :type height: int - :param bbox: (required) + :param request: type of WMS request (required) + :type request: WmsRequest + :param bbox: :type bbox: str - :param format: (required) - :type format: GetMapFormat - :param layers: (required) + :param bgcolor: + :type bgcolor: str + :param crs: + :type crs: str + :param elevation: + :type elevation: str + :param exceptions: + :type exceptions: GetMapExceptionFormat + :param format: + :type format: WmsResponseFormat + :param height: + :type height: int + :param info_format: + :type info_format: str + :param layer: + :type layer: str + :param layers: :type layers: str - :param styles: (required) + :param query_layers: + :type query_layers: str + :param service: + :type service: WmsService + :param sld: + :type sld: str + :param sld_body: + :type sld_body: str + :param styles: :type styles: str - :param crs: - :type crs: str :param time: :type time: str :param transparent: :type transparent: bool - :param bgcolor: - :type bgcolor: str - :param sld: - :type sld: str - :param sld_body: - :type sld_body: str - :param elevation: - :type elevation: str - :param exceptions: - :type exceptions: GetMapExceptionFormat + :param version: + :type version: WmsVersion + :param width: + :type width: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -774,25 +149,28 @@ def wms_map_handler( :return: Returns the result object. """ # noqa: E501 - _param = self._wms_map_handler_serialize( + _param = self._wms_handler_serialize( workflow=workflow, - version=version, - service=service, request=request, - width=width, - height=height, bbox=bbox, + bgcolor=bgcolor, + crs=crs, + elevation=elevation, + exceptions=exceptions, format=format, + height=height, + info_format=info_format, + layer=layer, layers=layers, + query_layers=query_layers, + service=service, + sld=sld, + sld_body=sld_body, styles=styles, - crs=crs, time=time, transparent=transparent, - bgcolor=bgcolor, - sld=sld, - sld_body=sld_body, - elevation=elevation, - exceptions=exceptions, + version=version, + width=width, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -814,26 +192,29 @@ def wms_map_handler( @validate_call - def wms_map_handler_with_http_info( + def wms_handler_with_http_info( self, workflow: Annotated[UUID, Field(description="Workflow id")], - version: WmsVersion, - service: WmsService, - request: GetMapRequest, - width: Annotated[int, Field(strict=True, ge=0)], - height: Annotated[int, Field(strict=True, ge=0)], - bbox: StrictStr, - format: GetMapFormat, - layers: StrictStr, - styles: StrictStr, - crs: Optional[StrictStr] = None, - time: Optional[StrictStr] = None, - transparent: Optional[StrictBool] = None, + request: Annotated[WmsRequest, Field(description="type of WMS request")], + bbox: Optional[StrictStr] = None, bgcolor: Optional[StrictStr] = None, - sld: Optional[StrictStr] = None, - sld_body: Optional[StrictStr] = None, + crs: Optional[StrictStr] = None, elevation: Optional[StrictStr] = None, exceptions: Optional[GetMapExceptionFormat] = None, + format: Optional[WmsResponseFormat] = None, + height: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, + info_format: Optional[StrictStr] = None, + layer: Optional[StrictStr] = None, + layers: Optional[StrictStr] = None, + query_layers: Optional[StrictStr] = None, + service: Optional[WmsService] = None, + sld: Optional[StrictStr] = None, + sld_body: Optional[StrictStr] = None, + styles: Optional[StrictStr] = None, + time: Optional[StrictStr] = None, + transparent: Optional[StrictBool] = None, + version: Optional[WmsVersion] = None, + width: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -847,45 +228,51 @@ def wms_map_handler_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bytearray]: - """Get WMS Map + """OGC WMS endpoint :param workflow: Workflow id (required) :type workflow: str - :param version: (required) - :type version: WmsVersion - :param service: (required) - :type service: WmsService - :param request: (required) - :type request: GetMapRequest - :param width: (required) - :type width: int - :param height: (required) - :type height: int - :param bbox: (required) + :param request: type of WMS request (required) + :type request: WmsRequest + :param bbox: :type bbox: str - :param format: (required) - :type format: GetMapFormat - :param layers: (required) - :type layers: str - :param styles: (required) - :type styles: str - :param crs: - :type crs: str - :param time: - :type time: str - :param transparent: - :type transparent: bool :param bgcolor: :type bgcolor: str - :param sld: - :type sld: str - :param sld_body: - :type sld_body: str + :param crs: + :type crs: str :param elevation: :type elevation: str :param exceptions: :type exceptions: GetMapExceptionFormat + :param format: + :type format: WmsResponseFormat + :param height: + :type height: int + :param info_format: + :type info_format: str + :param layer: + :type layer: str + :param layers: + :type layers: str + :param query_layers: + :type query_layers: str + :param service: + :type service: WmsService + :param sld: + :type sld: str + :param sld_body: + :type sld_body: str + :param styles: + :type styles: str + :param time: + :type time: str + :param transparent: + :type transparent: bool + :param version: + :type version: WmsVersion + :param width: + :type width: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -908,25 +295,28 @@ def wms_map_handler_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._wms_map_handler_serialize( + _param = self._wms_handler_serialize( workflow=workflow, - version=version, - service=service, request=request, - width=width, - height=height, bbox=bbox, + bgcolor=bgcolor, + crs=crs, + elevation=elevation, + exceptions=exceptions, format=format, + height=height, + info_format=info_format, + layer=layer, layers=layers, + query_layers=query_layers, + service=service, + sld=sld, + sld_body=sld_body, styles=styles, - crs=crs, time=time, transparent=transparent, - bgcolor=bgcolor, - sld=sld, - sld_body=sld_body, - elevation=elevation, - exceptions=exceptions, + version=version, + width=width, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -948,26 +338,29 @@ def wms_map_handler_with_http_info( @validate_call - def wms_map_handler_without_preload_content( + def wms_handler_without_preload_content( self, workflow: Annotated[UUID, Field(description="Workflow id")], - version: WmsVersion, - service: WmsService, - request: GetMapRequest, - width: Annotated[int, Field(strict=True, ge=0)], - height: Annotated[int, Field(strict=True, ge=0)], - bbox: StrictStr, - format: GetMapFormat, - layers: StrictStr, - styles: StrictStr, - crs: Optional[StrictStr] = None, - time: Optional[StrictStr] = None, - transparent: Optional[StrictBool] = None, + request: Annotated[WmsRequest, Field(description="type of WMS request")], + bbox: Optional[StrictStr] = None, bgcolor: Optional[StrictStr] = None, - sld: Optional[StrictStr] = None, - sld_body: Optional[StrictStr] = None, + crs: Optional[StrictStr] = None, elevation: Optional[StrictStr] = None, exceptions: Optional[GetMapExceptionFormat] = None, + format: Optional[WmsResponseFormat] = None, + height: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, + info_format: Optional[StrictStr] = None, + layer: Optional[StrictStr] = None, + layers: Optional[StrictStr] = None, + query_layers: Optional[StrictStr] = None, + service: Optional[WmsService] = None, + sld: Optional[StrictStr] = None, + sld_body: Optional[StrictStr] = None, + styles: Optional[StrictStr] = None, + time: Optional[StrictStr] = None, + transparent: Optional[StrictBool] = None, + version: Optional[WmsVersion] = None, + width: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -981,45 +374,51 @@ def wms_map_handler_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get WMS Map + """OGC WMS endpoint :param workflow: Workflow id (required) :type workflow: str - :param version: (required) - :type version: WmsVersion - :param service: (required) - :type service: WmsService - :param request: (required) - :type request: GetMapRequest - :param width: (required) - :type width: int - :param height: (required) - :type height: int - :param bbox: (required) + :param request: type of WMS request (required) + :type request: WmsRequest + :param bbox: :type bbox: str - :param format: (required) - :type format: GetMapFormat - :param layers: (required) - :type layers: str - :param styles: (required) - :type styles: str - :param crs: - :type crs: str - :param time: - :type time: str - :param transparent: - :type transparent: bool :param bgcolor: :type bgcolor: str - :param sld: - :type sld: str - :param sld_body: - :type sld_body: str + :param crs: + :type crs: str :param elevation: :type elevation: str :param exceptions: :type exceptions: GetMapExceptionFormat + :param format: + :type format: WmsResponseFormat + :param height: + :type height: int + :param info_format: + :type info_format: str + :param layer: + :type layer: str + :param layers: + :type layers: str + :param query_layers: + :type query_layers: str + :param service: + :type service: WmsService + :param sld: + :type sld: str + :param sld_body: + :type sld_body: str + :param styles: + :type styles: str + :param time: + :type time: str + :param transparent: + :type transparent: bool + :param version: + :type version: WmsVersion + :param width: + :type width: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1042,25 +441,28 @@ def wms_map_handler_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._wms_map_handler_serialize( + _param = self._wms_handler_serialize( workflow=workflow, - version=version, - service=service, request=request, - width=width, - height=height, bbox=bbox, + bgcolor=bgcolor, + crs=crs, + elevation=elevation, + exceptions=exceptions, format=format, + height=height, + info_format=info_format, + layer=layer, layers=layers, + query_layers=query_layers, + service=service, + sld=sld, + sld_body=sld_body, styles=styles, - crs=crs, time=time, transparent=transparent, - bgcolor=bgcolor, - sld=sld, - sld_body=sld_body, - elevation=elevation, - exceptions=exceptions, + version=version, + width=width, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1077,26 +479,29 @@ def wms_map_handler_without_preload_content( return response_data.response - def _wms_map_handler_serialize( + def _wms_handler_serialize( self, workflow, - version, - service, request, - width, - height, bbox, + bgcolor, + crs, + elevation, + exceptions, format, + height, + info_format, + layer, layers, + query_layers, + service, + sld, + sld_body, styles, - crs, time, transparent, - bgcolor, - sld, - sld_body, - elevation, - exceptions, + version, + width, _request_auth, _content_type, _headers, @@ -1121,57 +526,57 @@ def _wms_map_handler_serialize( if workflow is not None: _path_params['workflow'] = workflow # process the query parameters - if version is not None: - - _query_params.append(('version', version.value)) - - if service is not None: + if bbox is not None: - _query_params.append(('service', service.value)) + _query_params.append(('bbox', bbox)) - if request is not None: + if bgcolor is not None: - _query_params.append(('request', request.value)) + _query_params.append(('bgcolor', bgcolor)) - if width is not None: + if crs is not None: - _query_params.append(('width', width)) + _query_params.append(('crs', crs)) - if height is not None: + if elevation is not None: - _query_params.append(('height', height)) + _query_params.append(('elevation', elevation)) - if bbox is not None: + if exceptions is not None: - _query_params.append(('bbox', bbox)) + _query_params.append(('exceptions', exceptions.value)) if format is not None: _query_params.append(('format', format.value)) - if layers is not None: + if height is not None: - _query_params.append(('layers', layers)) + _query_params.append(('height', height)) - if crs is not None: + if info_format is not None: - _query_params.append(('crs', crs)) + _query_params.append(('info_format', info_format)) - if styles is not None: + if layer is not None: - _query_params.append(('styles', styles)) + _query_params.append(('layer', layer)) - if time is not None: + if layers is not None: - _query_params.append(('time', time)) + _query_params.append(('layers', layers)) - if transparent is not None: + if query_layers is not None: - _query_params.append(('transparent', transparent)) + _query_params.append(('query_layers', query_layers)) - if bgcolor is not None: + if request is not None: - _query_params.append(('bgcolor', bgcolor)) + _query_params.append(('request', request.value)) + + if service is not None: + + _query_params.append(('service', service.value)) if sld is not None: @@ -1181,13 +586,25 @@ def _wms_map_handler_serialize( _query_params.append(('sld_body', sld_body)) - if elevation is not None: + if styles is not None: - _query_params.append(('elevation', elevation)) + _query_params.append(('styles', styles)) - if exceptions is not None: + if time is not None: - _query_params.append(('exceptions', exceptions.value)) + _query_params.append(('time', time)) + + if transparent is not None: + + _query_params.append(('transparent', transparent)) + + if version is not None: + + _query_params.append(('version', version.value)) + + if width is not None: + + _query_params.append(('width', width)) # process the header parameters # process the form parameters @@ -1210,7 +627,6 @@ def _wms_map_handler_serialize( return self.api_client.param_serialize( method='GET', - # Note: remove query string in path part for ogc endpoints resource_path='/wms/{workflow}', path_params=_path_params, query_params=_query_params, diff --git a/python/geoengine_openapi_client/models/__init__.py b/python/geoengine_openapi_client/models/__init__.py index 94875386..5eda45f6 100644 --- a/python/geoengine_openapi_client/models/__init__.py +++ b/python/geoengine_openapi_client/models/__init__.py @@ -55,7 +55,6 @@ from geoengine_openapi_client.models.dataset_resource import DatasetResource from geoengine_openapi_client.models.derived_color import DerivedColor from geoengine_openapi_client.models.derived_number import DerivedNumber -from geoengine_openapi_client.models.describe_coverage_request import DescribeCoverageRequest from geoengine_openapi_client.models.ebv_portal_data_provider_definition import EbvPortalDataProviderDefinition from geoengine_openapi_client.models.edr_data_provider_definition import EdrDataProviderDefinition from geoengine_openapi_client.models.edr_vector_spec import EdrVectorSpec @@ -78,15 +77,8 @@ from geoengine_openapi_client.models.gdal_source_time_placeholder import GdalSourceTimePlaceholder from geoengine_openapi_client.models.geo_json import GeoJson from geoengine_openapi_client.models.geo_transform import GeoTransform -from geoengine_openapi_client.models.get_capabilities_format import GetCapabilitiesFormat -from geoengine_openapi_client.models.get_capabilities_request import GetCapabilitiesRequest from geoengine_openapi_client.models.get_coverage_format import GetCoverageFormat -from geoengine_openapi_client.models.get_coverage_request import GetCoverageRequest -from geoengine_openapi_client.models.get_feature_request import GetFeatureRequest -from geoengine_openapi_client.models.get_legend_graphic_request import GetLegendGraphicRequest from geoengine_openapi_client.models.get_map_exception_format import GetMapExceptionFormat -from geoengine_openapi_client.models.get_map_format import GetMapFormat -from geoengine_openapi_client.models.get_map_request import GetMapRequest from geoengine_openapi_client.models.gfbio_abcd_data_provider_definition import GfbioAbcdDataProviderDefinition from geoengine_openapi_client.models.gfbio_collections_data_provider_definition import GfbioCollectionsDataProviderDefinition from geoengine_openapi_client.models.grid_bounding_box2_d import GridBoundingBox2D @@ -256,11 +248,15 @@ from geoengine_openapi_client.models.volume import Volume from geoengine_openapi_client.models.volume_file_layers_response import VolumeFileLayersResponse from geoengine_openapi_client.models.wcs_boundingbox import WcsBoundingbox +from geoengine_openapi_client.models.wcs_request import WcsRequest from geoengine_openapi_client.models.wcs_service import WcsService from geoengine_openapi_client.models.wcs_version import WcsVersion +from geoengine_openapi_client.models.wfs_request import WfsRequest from geoengine_openapi_client.models.wfs_service import WfsService from geoengine_openapi_client.models.wfs_version import WfsVersion from geoengine_openapi_client.models.wildlive_data_connector_definition import WildliveDataConnectorDefinition +from geoengine_openapi_client.models.wms_request import WmsRequest +from geoengine_openapi_client.models.wms_response_format import WmsResponseFormat from geoengine_openapi_client.models.wms_service import WmsService from geoengine_openapi_client.models.wms_version import WmsVersion from geoengine_openapi_client.models.workflow import Workflow diff --git a/python/geoengine_openapi_client/models/get_capabilities_format.py b/python/geoengine_openapi_client/models/get_capabilities_format.py deleted file mode 100644 index c06140f3..00000000 --- a/python/geoengine_openapi_client/models/get_capabilities_format.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding: utf-8 - -""" - Geo Engine API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.9.0 - Contact: dev@geoengine.de - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class GetCapabilitiesFormat(str, Enum): - """ - GetCapabilitiesFormat - """ - - """ - allowed enum values - """ - TEXT_SLASH_XML = 'text/xml' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of GetCapabilitiesFormat from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/python/geoengine_openapi_client/models/get_coverage_request.py b/python/geoengine_openapi_client/models/get_coverage_request.py deleted file mode 100644 index 0f84a6a4..00000000 --- a/python/geoengine_openapi_client/models/get_coverage_request.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding: utf-8 - -""" - Geo Engine API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.9.0 - Contact: dev@geoengine.de - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class GetCoverageRequest(str, Enum): - """ - GetCoverageRequest - """ - - """ - allowed enum values - """ - GETCOVERAGE = 'GetCoverage' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of GetCoverageRequest from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/python/geoengine_openapi_client/models/get_feature_request.py b/python/geoengine_openapi_client/models/get_feature_request.py deleted file mode 100644 index 1f9a4a02..00000000 --- a/python/geoengine_openapi_client/models/get_feature_request.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding: utf-8 - -""" - Geo Engine API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.9.0 - Contact: dev@geoengine.de - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class GetFeatureRequest(str, Enum): - """ - GetFeatureRequest - """ - - """ - allowed enum values - """ - GETFEATURE = 'GetFeature' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of GetFeatureRequest from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/python/geoengine_openapi_client/models/get_map_request.py b/python/geoengine_openapi_client/models/get_map_request.py deleted file mode 100644 index d981ed17..00000000 --- a/python/geoengine_openapi_client/models/get_map_request.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding: utf-8 - -""" - Geo Engine API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.9.0 - Contact: dev@geoengine.de - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class GetMapRequest(str, Enum): - """ - GetMapRequest - """ - - """ - allowed enum values - """ - GETMAP = 'GetMap' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of GetMapRequest from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/python/geoengine_openapi_client/models/describe_coverage_request.py b/python/geoengine_openapi_client/models/wcs_request.py similarity index 78% rename from python/geoengine_openapi_client/models/describe_coverage_request.py rename to python/geoengine_openapi_client/models/wcs_request.py index 4ea1b517..e2698e69 100644 --- a/python/geoengine_openapi_client/models/describe_coverage_request.py +++ b/python/geoengine_openapi_client/models/wcs_request.py @@ -19,19 +19,21 @@ from typing_extensions import Self -class DescribeCoverageRequest(str, Enum): +class WcsRequest(str, Enum): """ - DescribeCoverageRequest + WcsRequest """ """ allowed enum values """ + GETCAPABILITIES = 'GetCapabilities' DESCRIBECOVERAGE = 'DescribeCoverage' + GETCOVERAGE = 'GetCoverage' @classmethod def from_json(cls, json_str: str) -> Self: - """Create an instance of DescribeCoverageRequest from a JSON string""" + """Create an instance of WcsRequest from a JSON string""" return cls(json.loads(json_str)) diff --git a/python/geoengine_openapi_client/models/get_capabilities_request.py b/python/geoengine_openapi_client/models/wfs_request.py similarity index 82% rename from python/geoengine_openapi_client/models/get_capabilities_request.py rename to python/geoengine_openapi_client/models/wfs_request.py index 1eff0daa..2631c507 100644 --- a/python/geoengine_openapi_client/models/get_capabilities_request.py +++ b/python/geoengine_openapi_client/models/wfs_request.py @@ -19,19 +19,20 @@ from typing_extensions import Self -class GetCapabilitiesRequest(str, Enum): +class WfsRequest(str, Enum): """ - GetCapabilitiesRequest + WfsRequest """ """ allowed enum values """ GETCAPABILITIES = 'GetCapabilities' + GETFEATURE = 'GetFeature' @classmethod def from_json(cls, json_str: str) -> Self: - """Create an instance of GetCapabilitiesRequest from a JSON string""" + """Create an instance of WfsRequest from a JSON string""" return cls(json.loads(json_str)) diff --git a/python/geoengine_openapi_client/models/get_legend_graphic_request.py b/python/geoengine_openapi_client/models/wms_request.py similarity index 73% rename from python/geoengine_openapi_client/models/get_legend_graphic_request.py rename to python/geoengine_openapi_client/models/wms_request.py index a7800ef7..2a5026f0 100644 --- a/python/geoengine_openapi_client/models/get_legend_graphic_request.py +++ b/python/geoengine_openapi_client/models/wms_request.py @@ -19,19 +19,23 @@ from typing_extensions import Self -class GetLegendGraphicRequest(str, Enum): +class WmsRequest(str, Enum): """ - GetLegendGraphicRequest + WmsRequest """ """ allowed enum values """ + GETCAPABILITIES = 'GetCapabilities' + GETMAP = 'GetMap' + GETFEATUREINFO = 'GetFeatureInfo' + GETSTYLES = 'GetStyles' GETLEGENDGRAPHIC = 'GetLegendGraphic' @classmethod def from_json(cls, json_str: str) -> Self: - """Create an instance of GetLegendGraphicRequest from a JSON string""" + """Create an instance of WmsRequest from a JSON string""" return cls(json.loads(json_str)) diff --git a/python/geoengine_openapi_client/models/get_map_format.py b/python/geoengine_openapi_client/models/wms_response_format.py similarity index 80% rename from python/geoengine_openapi_client/models/get_map_format.py rename to python/geoengine_openapi_client/models/wms_response_format.py index 7919b4cf..5fe8e1dd 100644 --- a/python/geoengine_openapi_client/models/get_map_format.py +++ b/python/geoengine_openapi_client/models/wms_response_format.py @@ -19,19 +19,20 @@ from typing_extensions import Self -class GetMapFormat(str, Enum): +class WmsResponseFormat(str, Enum): """ - GetMapFormat + WmsResponseFormat """ """ allowed enum values """ + TEXT_SLASH_XML = 'text/xml' IMAGE_SLASH_PNG = 'image/png' @classmethod def from_json(cls, json_str: str) -> Self: - """Create an instance of GetMapFormat from a JSON string""" + """Create an instance of WmsResponseFormat from a JSON string""" return cls(json.loads(json_str)) diff --git a/python/test/test_describe_coverage_request.py b/python/test/test_describe_coverage_request.py deleted file mode 100644 index 41afcd5a..00000000 --- a/python/test/test_describe_coverage_request.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - Geo Engine API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.9.0 - Contact: dev@geoengine.de - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from geoengine_openapi_client.models.describe_coverage_request import DescribeCoverageRequest - -class TestDescribeCoverageRequest(unittest.TestCase): - """DescribeCoverageRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDescribeCoverageRequest(self): - """Test DescribeCoverageRequest""" - # inst = DescribeCoverageRequest() - -if __name__ == '__main__': - unittest.main() diff --git a/python/test/test_get_capabilities_format.py b/python/test/test_get_capabilities_format.py deleted file mode 100644 index c62fe0d3..00000000 --- a/python/test/test_get_capabilities_format.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - Geo Engine API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.9.0 - Contact: dev@geoengine.de - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from geoengine_openapi_client.models.get_capabilities_format import GetCapabilitiesFormat - -class TestGetCapabilitiesFormat(unittest.TestCase): - """GetCapabilitiesFormat unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetCapabilitiesFormat(self): - """Test GetCapabilitiesFormat""" - # inst = GetCapabilitiesFormat() - -if __name__ == '__main__': - unittest.main() diff --git a/python/test/test_get_capabilities_request.py b/python/test/test_get_capabilities_request.py deleted file mode 100644 index 3f065938..00000000 --- a/python/test/test_get_capabilities_request.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - Geo Engine API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.9.0 - Contact: dev@geoengine.de - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from geoengine_openapi_client.models.get_capabilities_request import GetCapabilitiesRequest - -class TestGetCapabilitiesRequest(unittest.TestCase): - """GetCapabilitiesRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetCapabilitiesRequest(self): - """Test GetCapabilitiesRequest""" - # inst = GetCapabilitiesRequest() - -if __name__ == '__main__': - unittest.main() diff --git a/python/test/test_get_legend_graphic_request.py b/python/test/test_get_legend_graphic_request.py deleted file mode 100644 index 80554911..00000000 --- a/python/test/test_get_legend_graphic_request.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - Geo Engine API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.9.0 - Contact: dev@geoengine.de - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from geoengine_openapi_client.models.get_legend_graphic_request import GetLegendGraphicRequest - -class TestGetLegendGraphicRequest(unittest.TestCase): - """GetLegendGraphicRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetLegendGraphicRequest(self): - """Test GetLegendGraphicRequest""" - # inst = GetLegendGraphicRequest() - -if __name__ == '__main__': - unittest.main() diff --git a/python/test/test_ogcwcs_api.py b/python/test/test_ogcwcs_api.py index a93cd651..bc55f610 100644 --- a/python/test/test_ogcwcs_api.py +++ b/python/test/test_ogcwcs_api.py @@ -27,24 +27,10 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_wcs_capabilities_handler(self) -> None: - """Test case for wcs_capabilities_handler + def test_wcs_handler(self) -> None: + """Test case for wcs_handler - Get WCS Capabilities - """ - pass - - def test_wcs_describe_coverage_handler(self) -> None: - """Test case for wcs_describe_coverage_handler - - Get WCS Coverage Description - """ - pass - - def test_wcs_get_coverage_handler(self) -> None: - """Test case for wcs_get_coverage_handler - - Get WCS Coverage + OGC WCS endpoint """ pass diff --git a/python/test/test_ogcwfs_api.py b/python/test/test_ogcwfs_api.py index 6fffd295..4b2b0b0c 100644 --- a/python/test/test_ogcwfs_api.py +++ b/python/test/test_ogcwfs_api.py @@ -27,17 +27,10 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_wfs_capabilities_handler(self) -> None: - """Test case for wfs_capabilities_handler + def test_wfs_handler(self) -> None: + """Test case for wfs_handler - Get WFS Capabilities - """ - pass - - def test_wfs_feature_handler(self) -> None: - """Test case for wfs_feature_handler - - Get WCS Features + OGC WFS endpoint """ pass diff --git a/python/test/test_ogcwms_api.py b/python/test/test_ogcwms_api.py index 361b787b..2f9605f9 100644 --- a/python/test/test_ogcwms_api.py +++ b/python/test/test_ogcwms_api.py @@ -27,24 +27,10 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_wms_capabilities_handler(self) -> None: - """Test case for wms_capabilities_handler + def test_wms_handler(self) -> None: + """Test case for wms_handler - Get WMS Capabilities - """ - pass - - def test_wms_legend_graphic_handler(self) -> None: - """Test case for wms_legend_graphic_handler - - Get WMS Legend Graphic - """ - pass - - def test_wms_map_handler(self) -> None: - """Test case for wms_map_handler - - Get WMS Map + OGC WMS endpoint """ pass diff --git a/python/test/test_get_map_format.py b/python/test/test_wcs_request.py similarity index 66% rename from python/test/test_get_map_format.py rename to python/test/test_wcs_request.py index 96e3e1e6..f89c33cd 100644 --- a/python/test/test_get_map_format.py +++ b/python/test/test_wcs_request.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.get_map_format import GetMapFormat +from geoengine_openapi_client.models.wcs_request import WcsRequest -class TestGetMapFormat(unittest.TestCase): - """GetMapFormat unit test stubs""" +class TestWcsRequest(unittest.TestCase): + """WcsRequest unit test stubs""" def setUp(self): pass @@ -26,9 +26,9 @@ def setUp(self): def tearDown(self): pass - def testGetMapFormat(self): - """Test GetMapFormat""" - # inst = GetMapFormat() + def testWcsRequest(self): + """Test WcsRequest""" + # inst = WcsRequest() if __name__ == '__main__': unittest.main() diff --git a/python/test/test_get_map_request.py b/python/test/test_wfs_request.py similarity index 65% rename from python/test/test_get_map_request.py rename to python/test/test_wfs_request.py index 7eb4837a..b98c4d67 100644 --- a/python/test/test_get_map_request.py +++ b/python/test/test_wfs_request.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.get_map_request import GetMapRequest +from geoengine_openapi_client.models.wfs_request import WfsRequest -class TestGetMapRequest(unittest.TestCase): - """GetMapRequest unit test stubs""" +class TestWfsRequest(unittest.TestCase): + """WfsRequest unit test stubs""" def setUp(self): pass @@ -26,9 +26,9 @@ def setUp(self): def tearDown(self): pass - def testGetMapRequest(self): - """Test GetMapRequest""" - # inst = GetMapRequest() + def testWfsRequest(self): + """Test WfsRequest""" + # inst = WfsRequest() if __name__ == '__main__': unittest.main() diff --git a/python/test/test_get_feature_request.py b/python/test/test_wms_request.py similarity index 63% rename from python/test/test_get_feature_request.py rename to python/test/test_wms_request.py index 4a6ff56f..1da15d39 100644 --- a/python/test/test_get_feature_request.py +++ b/python/test/test_wms_request.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.get_feature_request import GetFeatureRequest +from geoengine_openapi_client.models.wms_request import WmsRequest -class TestGetFeatureRequest(unittest.TestCase): - """GetFeatureRequest unit test stubs""" +class TestWmsRequest(unittest.TestCase): + """WmsRequest unit test stubs""" def setUp(self): pass @@ -26,9 +26,9 @@ def setUp(self): def tearDown(self): pass - def testGetFeatureRequest(self): - """Test GetFeatureRequest""" - # inst = GetFeatureRequest() + def testWmsRequest(self): + """Test WmsRequest""" + # inst = WmsRequest() if __name__ == '__main__': unittest.main() diff --git a/python/test/test_get_coverage_request.py b/python/test/test_wms_response_format.py similarity index 62% rename from python/test/test_get_coverage_request.py rename to python/test/test_wms_response_format.py index 6060ff35..e6b4f526 100644 --- a/python/test/test_get_coverage_request.py +++ b/python/test/test_wms_response_format.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.get_coverage_request import GetCoverageRequest +from geoengine_openapi_client.models.wms_response_format import WmsResponseFormat -class TestGetCoverageRequest(unittest.TestCase): - """GetCoverageRequest unit test stubs""" +class TestWmsResponseFormat(unittest.TestCase): + """WmsResponseFormat unit test stubs""" def setUp(self): pass @@ -26,9 +26,9 @@ def setUp(self): def tearDown(self): pass - def testGetCoverageRequest(self): - """Test GetCoverageRequest""" - # inst = GetCoverageRequest() + def testWmsResponseFormat(self): + """Test WmsResponseFormat""" + # inst = WmsResponseFormat() if __name__ == '__main__': unittest.main() diff --git a/typescript/README.md b/typescript/README.md index 91266541..7bc5f3cc 100644 --- a/typescript/README.md +++ b/typescript/README.md @@ -98,14 +98,9 @@ All URIs are relative to *https://geoengine.io/api* *MLApi* | [**addMlModel**](docs/MLApi.md#addmlmodel) | **POST** /ml/models | Create a new ml model. *MLApi* | [**getMlModel**](docs/MLApi.md#getmlmodel) | **GET** /ml/models/{model_name} | Get ml model by name. *MLApi* | [**listMlModels**](docs/MLApi.md#listmlmodels) | **GET** /ml/models | List ml models. -*OGCWCSApi* | [**wcsCapabilitiesHandler**](docs/OGCWCSApi.md#wcscapabilitieshandler) | **GET** /wcs/{workflow}?request=GetCapabilities | Get WCS Capabilities -*OGCWCSApi* | [**wcsDescribeCoverageHandler**](docs/OGCWCSApi.md#wcsdescribecoveragehandler) | **GET** /wcs/{workflow}?request=DescribeCoverage | Get WCS Coverage Description -*OGCWCSApi* | [**wcsGetCoverageHandler**](docs/OGCWCSApi.md#wcsgetcoveragehandler) | **GET** /wcs/{workflow}?request=GetCoverage | Get WCS Coverage -*OGCWFSApi* | [**wfsCapabilitiesHandler**](docs/OGCWFSApi.md#wfscapabilitieshandler) | **GET** /wfs/{workflow}?request=GetCapabilities | Get WFS Capabilities -*OGCWFSApi* | [**wfsFeatureHandler**](docs/OGCWFSApi.md#wfsfeaturehandler) | **GET** /wfs/{workflow}?request=GetFeature | Get WCS Features -*OGCWMSApi* | [**wmsCapabilitiesHandler**](docs/OGCWMSApi.md#wmscapabilitieshandler) | **GET** /wms/{workflow}?request=GetCapabilities | Get WMS Capabilities -*OGCWMSApi* | [**wmsLegendGraphicHandler**](docs/OGCWMSApi.md#wmslegendgraphichandler) | **GET** /wms/{workflow}?request=GetLegendGraphic | Get WMS Legend Graphic -*OGCWMSApi* | [**wmsMapHandler**](docs/OGCWMSApi.md#wmsmaphandler) | **GET** /wms/{workflow}?request=GetMap | Get WMS Map +*OGCWCSApi* | [**wcsHandler**](docs/OGCWCSApi.md#wcshandler) | **GET** /wcs/{workflow} | OGC WCS endpoint +*OGCWFSApi* | [**wfsHandler**](docs/OGCWFSApi.md#wfshandler) | **GET** /wfs/{workflow} | OGC WFS endpoint +*OGCWMSApi* | [**wmsHandler**](docs/OGCWMSApi.md#wmshandler) | **GET** /wms/{workflow} | OGC WMS endpoint *PermissionsApi* | [**addPermissionHandler**](docs/PermissionsApi.md#addpermissionhandler) | **PUT** /permissions | Adds a new permission. *PermissionsApi* | [**getResourcePermissionsHandler**](docs/PermissionsApi.md#getresourcepermissionshandler) | **GET** /permissions/resources/{resource_type}/{resource_id} | Lists permission for a given resource. *PermissionsApi* | [**removePermissionHandler**](docs/PermissionsApi.md#removepermissionhandler) | **DELETE** /permissions | Removes an existing permission. @@ -198,7 +193,6 @@ All URIs are relative to *https://geoengine.io/api* - [DatasetResource](docs/DatasetResource.md) - [DerivedColor](docs/DerivedColor.md) - [DerivedNumber](docs/DerivedNumber.md) -- [DescribeCoverageRequest](docs/DescribeCoverageRequest.md) - [EbvPortalDataProviderDefinition](docs/EbvPortalDataProviderDefinition.md) - [EdrDataProviderDefinition](docs/EdrDataProviderDefinition.md) - [EdrVectorSpec](docs/EdrVectorSpec.md) @@ -221,15 +215,8 @@ All URIs are relative to *https://geoengine.io/api* - [GdalSourceTimePlaceholder](docs/GdalSourceTimePlaceholder.md) - [GeoJson](docs/GeoJson.md) - [GeoTransform](docs/GeoTransform.md) -- [GetCapabilitiesFormat](docs/GetCapabilitiesFormat.md) -- [GetCapabilitiesRequest](docs/GetCapabilitiesRequest.md) - [GetCoverageFormat](docs/GetCoverageFormat.md) -- [GetCoverageRequest](docs/GetCoverageRequest.md) -- [GetFeatureRequest](docs/GetFeatureRequest.md) -- [GetLegendGraphicRequest](docs/GetLegendGraphicRequest.md) - [GetMapExceptionFormat](docs/GetMapExceptionFormat.md) -- [GetMapFormat](docs/GetMapFormat.md) -- [GetMapRequest](docs/GetMapRequest.md) - [GfbioAbcdDataProviderDefinition](docs/GfbioAbcdDataProviderDefinition.md) - [GfbioCollectionsDataProviderDefinition](docs/GfbioCollectionsDataProviderDefinition.md) - [GridBoundingBox2D](docs/GridBoundingBox2D.md) @@ -399,11 +386,15 @@ All URIs are relative to *https://geoengine.io/api* - [Volume](docs/Volume.md) - [VolumeFileLayersResponse](docs/VolumeFileLayersResponse.md) - [WcsBoundingbox](docs/WcsBoundingbox.md) +- [WcsRequest](docs/WcsRequest.md) - [WcsService](docs/WcsService.md) - [WcsVersion](docs/WcsVersion.md) +- [WfsRequest](docs/WfsRequest.md) - [WfsService](docs/WfsService.md) - [WfsVersion](docs/WfsVersion.md) - [WildliveDataConnectorDefinition](docs/WildliveDataConnectorDefinition.md) +- [WmsRequest](docs/WmsRequest.md) +- [WmsResponseFormat](docs/WmsResponseFormat.md) - [WmsService](docs/WmsService.md) - [WmsVersion](docs/WmsVersion.md) - [Workflow](docs/Workflow.md) diff --git a/typescript/dist/apis/OGCWCSApi.d.ts b/typescript/dist/apis/OGCWCSApi.d.ts index a33cd786..99278f67 100644 --- a/typescript/dist/apis/OGCWCSApi.d.ts +++ b/typescript/dist/apis/OGCWCSApi.d.ts @@ -10,62 +10,34 @@ * Do not edit the class manually. */ import * as runtime from '../runtime'; -import type { DescribeCoverageRequest, GetCapabilitiesRequest, GetCoverageFormat, GetCoverageRequest, WcsService, WcsVersion } from '../models/index'; -export interface WcsCapabilitiesHandlerRequest { +import type { GetCoverageFormat, WcsRequest, WcsService, WcsVersion } from '../models/index'; +export interface WcsHandlerRequest { workflow: string; - service: WcsService; - request: GetCapabilitiesRequest; - version?: WcsVersion | null; -} -export interface WcsDescribeCoverageHandlerRequest { - workflow: string; - version: WcsVersion; - service: WcsService; - request: DescribeCoverageRequest; - identifiers: string; -} -export interface WcsGetCoverageHandlerRequest { - workflow: string; - version: WcsVersion; - service: WcsService; - request: GetCoverageRequest; - format: GetCoverageFormat; - identifier: string; - boundingbox: string; - gridbasecrs: string; - gridorigin?: string; + request: WcsRequest; + boundingbox?: string; + format?: GetCoverageFormat; + gridbasecrs?: string; gridoffsets?: string; - time?: string; + gridorigin?: string; + identifier?: string; + identifiers?: string; + nodatavalue?: number | null; resx?: number | null; resy?: number | null; - nodatavalue?: number | null; + service?: WcsService; + time?: string; + version?: WcsVersion | null; } /** * */ export declare class OGCWCSApi extends runtime.BaseAPI { /** - * Get WCS Capabilities - */ - wcsCapabilitiesHandlerRaw(requestParameters: WcsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get WCS Capabilities - */ - wcsCapabilitiesHandler(requestParameters: WcsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get WCS Coverage Description - */ - wcsDescribeCoverageHandlerRaw(requestParameters: WcsDescribeCoverageHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get WCS Coverage Description - */ - wcsDescribeCoverageHandler(requestParameters: WcsDescribeCoverageHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get WCS Coverage + * OGC WCS endpoint */ - wcsGetCoverageHandlerRaw(requestParameters: WcsGetCoverageHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + wcsHandlerRaw(requestParameters: WcsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Get WCS Coverage + * OGC WCS endpoint */ - wcsGetCoverageHandler(requestParameters: WcsGetCoverageHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + wcsHandler(requestParameters: WcsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } diff --git a/typescript/dist/apis/OGCWCSApi.js b/typescript/dist/apis/OGCWCSApi.js index 6566d787..25c3e055 100644 --- a/typescript/dist/apis/OGCWCSApi.js +++ b/typescript/dist/apis/OGCWCSApi.js @@ -29,94 +29,58 @@ const runtime = require("../runtime"); */ class OGCWCSApi extends runtime.BaseAPI { /** - * Get WCS Capabilities + * OGC WCS endpoint */ - wcsCapabilitiesHandlerRaw(requestParameters, initOverrides) { + wcsHandlerRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { if (requestParameters['workflow'] == null) { - throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wcsCapabilitiesHandler().'); - } - if (requestParameters['service'] == null) { - throw new runtime.RequiredError('service', 'Required parameter "service" was null or undefined when calling wcsCapabilitiesHandler().'); + throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wcsHandler().'); } if (requestParameters['request'] == null) { - throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wcsCapabilitiesHandler().'); + throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wcsHandler().'); } const queryParameters = {}; - if (requestParameters['version'] != null) { - queryParameters['version'] = requestParameters['version']; - } - if (requestParameters['service'] != null) { - queryParameters['service'] = requestParameters['service']; + if (requestParameters['boundingbox'] != null) { + queryParameters['boundingbox'] = requestParameters['boundingbox']; } - if (requestParameters['request'] != null) { - queryParameters['request'] = requestParameters['request']; + if (requestParameters['format'] != null) { + queryParameters['format'] = requestParameters['format']; } - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = yield token("session_token", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } + if (requestParameters['gridbasecrs'] != null) { + queryParameters['gridbasecrs'] = requestParameters['gridbasecrs']; } - let urlPath = `/wcs/{workflow}?request=GetCapabilities`; - urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); - const response = yield this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); + if (requestParameters['gridoffsets'] != null) { + queryParameters['gridoffsets'] = requestParameters['gridoffsets']; } - else { - return new runtime.TextApiResponse(response); + if (requestParameters['gridorigin'] != null) { + queryParameters['gridorigin'] = requestParameters['gridorigin']; } - }); - } - /** - * Get WCS Capabilities - */ - wcsCapabilitiesHandler(requestParameters, initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - const response = yield this.wcsCapabilitiesHandlerRaw(requestParameters, initOverrides); - return yield response.value(); - }); - } - /** - * Get WCS Coverage Description - */ - wcsDescribeCoverageHandlerRaw(requestParameters, initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - if (requestParameters['workflow'] == null) { - throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wcsDescribeCoverageHandler().'); + if (requestParameters['identifier'] != null) { + queryParameters['identifier'] = requestParameters['identifier']; } - if (requestParameters['version'] == null) { - throw new runtime.RequiredError('version', 'Required parameter "version" was null or undefined when calling wcsDescribeCoverageHandler().'); + if (requestParameters['identifiers'] != null) { + queryParameters['identifiers'] = requestParameters['identifiers']; } - if (requestParameters['service'] == null) { - throw new runtime.RequiredError('service', 'Required parameter "service" was null or undefined when calling wcsDescribeCoverageHandler().'); + if (requestParameters['nodatavalue'] != null) { + queryParameters['nodatavalue'] = requestParameters['nodatavalue']; } - if (requestParameters['request'] == null) { - throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wcsDescribeCoverageHandler().'); + if (requestParameters['request'] != null) { + queryParameters['request'] = requestParameters['request']; } - if (requestParameters['identifiers'] == null) { - throw new runtime.RequiredError('identifiers', 'Required parameter "identifiers" was null or undefined when calling wcsDescribeCoverageHandler().'); + if (requestParameters['resx'] != null) { + queryParameters['resx'] = requestParameters['resx']; } - const queryParameters = {}; - if (requestParameters['version'] != null) { - queryParameters['version'] = requestParameters['version']; + if (requestParameters['resy'] != null) { + queryParameters['resy'] = requestParameters['resy']; } if (requestParameters['service'] != null) { queryParameters['service'] = requestParameters['service']; } - if (requestParameters['request'] != null) { - queryParameters['request'] = requestParameters['request']; + if (requestParameters['time'] != null) { + queryParameters['time'] = requestParameters['time']; } - if (requestParameters['identifiers'] != null) { - queryParameters['identifiers'] = requestParameters['identifiers']; + if (requestParameters['version'] != null) { + queryParameters['version'] = requestParameters['version']; } const headerParameters = {}; if (this.configuration && this.configuration.accessToken) { @@ -126,7 +90,7 @@ class OGCWCSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - let urlPath = `/wcs/{workflow}?request=DescribeCoverage`; + let urlPath = `/wcs/{workflow}`; urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); const response = yield this.request({ path: urlPath, @@ -143,108 +107,11 @@ class OGCWCSApi extends runtime.BaseAPI { }); } /** - * Get WCS Coverage Description - */ - wcsDescribeCoverageHandler(requestParameters, initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - const response = yield this.wcsDescribeCoverageHandlerRaw(requestParameters, initOverrides); - return yield response.value(); - }); - } - /** - * Get WCS Coverage - */ - wcsGetCoverageHandlerRaw(requestParameters, initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - if (requestParameters['workflow'] == null) { - throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wcsGetCoverageHandler().'); - } - if (requestParameters['version'] == null) { - throw new runtime.RequiredError('version', 'Required parameter "version" was null or undefined when calling wcsGetCoverageHandler().'); - } - if (requestParameters['service'] == null) { - throw new runtime.RequiredError('service', 'Required parameter "service" was null or undefined when calling wcsGetCoverageHandler().'); - } - if (requestParameters['request'] == null) { - throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wcsGetCoverageHandler().'); - } - if (requestParameters['format'] == null) { - throw new runtime.RequiredError('format', 'Required parameter "format" was null or undefined when calling wcsGetCoverageHandler().'); - } - if (requestParameters['identifier'] == null) { - throw new runtime.RequiredError('identifier', 'Required parameter "identifier" was null or undefined when calling wcsGetCoverageHandler().'); - } - if (requestParameters['boundingbox'] == null) { - throw new runtime.RequiredError('boundingbox', 'Required parameter "boundingbox" was null or undefined when calling wcsGetCoverageHandler().'); - } - if (requestParameters['gridbasecrs'] == null) { - throw new runtime.RequiredError('gridbasecrs', 'Required parameter "gridbasecrs" was null or undefined when calling wcsGetCoverageHandler().'); - } - const queryParameters = {}; - if (requestParameters['version'] != null) { - queryParameters['version'] = requestParameters['version']; - } - if (requestParameters['service'] != null) { - queryParameters['service'] = requestParameters['service']; - } - if (requestParameters['request'] != null) { - queryParameters['request'] = requestParameters['request']; - } - if (requestParameters['format'] != null) { - queryParameters['format'] = requestParameters['format']; - } - if (requestParameters['identifier'] != null) { - queryParameters['identifier'] = requestParameters['identifier']; - } - if (requestParameters['boundingbox'] != null) { - queryParameters['boundingbox'] = requestParameters['boundingbox']; - } - if (requestParameters['gridbasecrs'] != null) { - queryParameters['gridbasecrs'] = requestParameters['gridbasecrs']; - } - if (requestParameters['gridorigin'] != null) { - queryParameters['gridorigin'] = requestParameters['gridorigin']; - } - if (requestParameters['gridoffsets'] != null) { - queryParameters['gridoffsets'] = requestParameters['gridoffsets']; - } - if (requestParameters['time'] != null) { - queryParameters['time'] = requestParameters['time']; - } - if (requestParameters['resx'] != null) { - queryParameters['resx'] = requestParameters['resx']; - } - if (requestParameters['resy'] != null) { - queryParameters['resy'] = requestParameters['resy']; - } - if (requestParameters['nodatavalue'] != null) { - queryParameters['nodatavalue'] = requestParameters['nodatavalue']; - } - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = yield token("session_token", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - let urlPath = `/wcs/{workflow}?request=GetCoverage`; - urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); - const response = yield this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.BlobApiResponse(response); - }); - } - /** - * Get WCS Coverage + * OGC WCS endpoint */ - wcsGetCoverageHandler(requestParameters, initOverrides) { + wcsHandler(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { - const response = yield this.wcsGetCoverageHandlerRaw(requestParameters, initOverrides); + const response = yield this.wcsHandlerRaw(requestParameters, initOverrides); return yield response.value(); }); } diff --git a/typescript/dist/apis/OGCWFSApi.d.ts b/typescript/dist/apis/OGCWFSApi.d.ts index f4b165c7..8bbd32bc 100644 --- a/typescript/dist/apis/OGCWFSApi.d.ts +++ b/typescript/dist/apis/OGCWFSApi.d.ts @@ -10,48 +10,33 @@ * Do not edit the class manually. */ import * as runtime from '../runtime'; -import type { GeoJson, GetCapabilitiesRequest, GetFeatureRequest, WfsService, WfsVersion } from '../models/index'; -export interface WfsCapabilitiesHandlerRequest { +import type { GeoJson, WfsRequest, WfsService, WfsVersion } from '../models/index'; +export interface WfsHandlerRequest { workflow: string; - version: WfsVersion | null; - service: WfsService; - request: GetCapabilitiesRequest; -} -export interface WfsFeatureHandlerRequest { - workflow: string; - service: WfsService; - request: GetFeatureRequest; - typeNames: string; - bbox: string; - version?: WfsVersion | null; - time?: string; - srsName?: string | null; - namespaces?: string | null; + request: WfsRequest; + bbox?: string; count?: number | null; - sortBy?: string | null; - resultType?: string | null; filter?: string | null; + namespaces?: string | null; propertyName?: string | null; - queryResolution?: string; + resultType?: string | null; + service?: WfsService; + sortBy?: string | null; + srsName?: string | null; + time?: string; + typeNames?: string; + version?: WfsVersion | null; } /** * */ export declare class OGCWFSApi extends runtime.BaseAPI { /** - * Get WFS Capabilities - */ - wfsCapabilitiesHandlerRaw(requestParameters: WfsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get WFS Capabilities - */ - wfsCapabilitiesHandler(requestParameters: WfsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get WCS Features + * OGC WFS endpoint */ - wfsFeatureHandlerRaw(requestParameters: WfsFeatureHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + wfsHandlerRaw(requestParameters: WfsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Get WCS Features + * OGC WFS endpoint */ - wfsFeatureHandler(requestParameters: WfsFeatureHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + wfsHandler(requestParameters: WfsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } diff --git a/typescript/dist/apis/OGCWFSApi.js b/typescript/dist/apis/OGCWFSApi.js index 07657086..0313731b 100644 --- a/typescript/dist/apis/OGCWFSApi.js +++ b/typescript/dist/apis/OGCWFSApi.js @@ -30,121 +30,55 @@ const index_1 = require("../models/index"); */ class OGCWFSApi extends runtime.BaseAPI { /** - * Get WFS Capabilities + * OGC WFS endpoint */ - wfsCapabilitiesHandlerRaw(requestParameters, initOverrides) { + wfsHandlerRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { if (requestParameters['workflow'] == null) { - throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wfsCapabilitiesHandler().'); - } - if (requestParameters['version'] == null) { - throw new runtime.RequiredError('version', 'Required parameter "version" was null or undefined when calling wfsCapabilitiesHandler().'); - } - if (requestParameters['service'] == null) { - throw new runtime.RequiredError('service', 'Required parameter "service" was null or undefined when calling wfsCapabilitiesHandler().'); + throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wfsHandler().'); } if (requestParameters['request'] == null) { - throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wfsCapabilitiesHandler().'); + throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wfsHandler().'); } const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = yield token("session_token", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - let urlPath = `/wfs/{workflow}?request=GetCapabilities`; - urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); - urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))); - urlPath = urlPath.replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))); - urlPath = urlPath.replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))); - const response = yield this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } - else { - return new runtime.TextApiResponse(response); - } - }); - } - /** - * Get WFS Capabilities - */ - wfsCapabilitiesHandler(requestParameters, initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - const response = yield this.wfsCapabilitiesHandlerRaw(requestParameters, initOverrides); - return yield response.value(); - }); - } - /** - * Get WCS Features - */ - wfsFeatureHandlerRaw(requestParameters, initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - if (requestParameters['workflow'] == null) { - throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wfsFeatureHandler().'); - } - if (requestParameters['service'] == null) { - throw new runtime.RequiredError('service', 'Required parameter "service" was null or undefined when calling wfsFeatureHandler().'); - } - if (requestParameters['request'] == null) { - throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wfsFeatureHandler().'); + if (requestParameters['bbox'] != null) { + queryParameters['bbox'] = requestParameters['bbox']; } - if (requestParameters['typeNames'] == null) { - throw new runtime.RequiredError('typeNames', 'Required parameter "typeNames" was null or undefined when calling wfsFeatureHandler().'); + if (requestParameters['count'] != null) { + queryParameters['count'] = requestParameters['count']; } - if (requestParameters['bbox'] == null) { - throw new runtime.RequiredError('bbox', 'Required parameter "bbox" was null or undefined when calling wfsFeatureHandler().'); + if (requestParameters['filter'] != null) { + queryParameters['filter'] = requestParameters['filter']; } - const queryParameters = {}; - if (requestParameters['version'] != null) { - queryParameters['version'] = requestParameters['version']; + if (requestParameters['namespaces'] != null) { + queryParameters['namespaces'] = requestParameters['namespaces']; } - if (requestParameters['service'] != null) { - queryParameters['service'] = requestParameters['service']; + if (requestParameters['propertyName'] != null) { + queryParameters['propertyName'] = requestParameters['propertyName']; } if (requestParameters['request'] != null) { queryParameters['request'] = requestParameters['request']; } - if (requestParameters['typeNames'] != null) { - queryParameters['typeNames'] = requestParameters['typeNames']; - } - if (requestParameters['bbox'] != null) { - queryParameters['bbox'] = requestParameters['bbox']; - } - if (requestParameters['time'] != null) { - queryParameters['time'] = requestParameters['time']; - } - if (requestParameters['srsName'] != null) { - queryParameters['srsName'] = requestParameters['srsName']; - } - if (requestParameters['namespaces'] != null) { - queryParameters['namespaces'] = requestParameters['namespaces']; + if (requestParameters['resultType'] != null) { + queryParameters['resultType'] = requestParameters['resultType']; } - if (requestParameters['count'] != null) { - queryParameters['count'] = requestParameters['count']; + if (requestParameters['service'] != null) { + queryParameters['service'] = requestParameters['service']; } if (requestParameters['sortBy'] != null) { queryParameters['sortBy'] = requestParameters['sortBy']; } - if (requestParameters['resultType'] != null) { - queryParameters['resultType'] = requestParameters['resultType']; + if (requestParameters['srsName'] != null) { + queryParameters['srsName'] = requestParameters['srsName']; } - if (requestParameters['filter'] != null) { - queryParameters['filter'] = requestParameters['filter']; + if (requestParameters['time'] != null) { + queryParameters['time'] = requestParameters['time']; } - if (requestParameters['propertyName'] != null) { - queryParameters['propertyName'] = requestParameters['propertyName']; + if (requestParameters['typeNames'] != null) { + queryParameters['typeNames'] = requestParameters['typeNames']; } - if (requestParameters['queryResolution'] != null) { - queryParameters['queryResolution'] = requestParameters['queryResolution']; + if (requestParameters['version'] != null) { + queryParameters['version'] = requestParameters['version']; } const headerParameters = {}; if (this.configuration && this.configuration.accessToken) { @@ -154,7 +88,7 @@ class OGCWFSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - let urlPath = `/wfs/{workflow}?request=GetFeature`; + let urlPath = `/wfs/{workflow}`; urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); const response = yield this.request({ path: urlPath, @@ -166,11 +100,11 @@ class OGCWFSApi extends runtime.BaseAPI { }); } /** - * Get WCS Features + * OGC WFS endpoint */ - wfsFeatureHandler(requestParameters, initOverrides) { + wfsHandler(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { - const response = yield this.wfsFeatureHandlerRaw(requestParameters, initOverrides); + const response = yield this.wfsHandlerRaw(requestParameters, initOverrides); return yield response.value(); }); } diff --git a/typescript/dist/apis/OGCWMSApi.d.ts b/typescript/dist/apis/OGCWMSApi.d.ts index ad1406c7..4abaa6e5 100644 --- a/typescript/dist/apis/OGCWMSApi.d.ts +++ b/typescript/dist/apis/OGCWMSApi.d.ts @@ -10,67 +10,40 @@ * Do not edit the class manually. */ import * as runtime from '../runtime'; -import type { GetCapabilitiesFormat, GetCapabilitiesRequest, GetLegendGraphicRequest, GetMapExceptionFormat, GetMapFormat, GetMapRequest, WmsService, WmsVersion } from '../models/index'; -export interface WmsCapabilitiesHandlerRequest { +import type { GetMapExceptionFormat, WmsRequest, WmsResponseFormat, WmsService, WmsVersion } from '../models/index'; +export interface WmsHandlerRequest { workflow: string; - version: WmsVersion | null; - service: WmsService; - request: GetCapabilitiesRequest; - format: GetCapabilitiesFormat | null; -} -export interface WmsLegendGraphicHandlerRequest { - workflow: string; - version: WmsVersion; - service: WmsService; - request: GetLegendGraphicRequest; - layer: string; -} -export interface WmsMapHandlerRequest { - workflow: string; - version: WmsVersion; - service: WmsService; - request: GetMapRequest; - width: number; - height: number; - bbox: string; - format: GetMapFormat; - layers: string; - styles: string; - crs?: string | null; - time?: string; - transparent?: boolean | null; + request: WmsRequest; + bbox?: string; bgcolor?: string | null; - sld?: string | null; - sldBody?: string | null; + crs?: string | null; elevation?: string | null; exceptions?: GetMapExceptionFormat | null; + format?: WmsResponseFormat | null; + height?: number; + infoFormat?: string | null; + layer?: string; + layers?: string; + queryLayers?: string; + service?: WmsService; + sld?: string | null; + sldBody?: string | null; + styles?: string; + time?: string; + transparent?: boolean | null; + version?: WmsVersion | null; + width?: number; } /** * */ export declare class OGCWMSApi extends runtime.BaseAPI { /** - * Get WMS Capabilities - */ - wmsCapabilitiesHandlerRaw(requestParameters: WmsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get WMS Capabilities - */ - wmsCapabilitiesHandler(requestParameters: WmsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get WMS Legend Graphic - */ - wmsLegendGraphicHandlerRaw(requestParameters: WmsLegendGraphicHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get WMS Legend Graphic - */ - wmsLegendGraphicHandler(requestParameters: WmsLegendGraphicHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get WMS Map + * OGC WMS endpoint */ - wmsMapHandlerRaw(requestParameters: WmsMapHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + wmsHandlerRaw(requestParameters: WmsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Get WMS Map + * OGC WMS endpoint */ - wmsMapHandler(requestParameters: WmsMapHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + wmsHandler(requestParameters: WmsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } diff --git a/typescript/dist/apis/OGCWMSApi.js b/typescript/dist/apis/OGCWMSApi.js index c7f5a311..6f9f298c 100644 --- a/typescript/dist/apis/OGCWMSApi.js +++ b/typescript/dist/apis/OGCWMSApi.js @@ -29,177 +29,61 @@ const runtime = require("../runtime"); */ class OGCWMSApi extends runtime.BaseAPI { /** - * Get WMS Capabilities + * OGC WMS endpoint */ - wmsCapabilitiesHandlerRaw(requestParameters, initOverrides) { + wmsHandlerRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { if (requestParameters['workflow'] == null) { - throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wmsCapabilitiesHandler().'); - } - if (requestParameters['version'] == null) { - throw new runtime.RequiredError('version', 'Required parameter "version" was null or undefined when calling wmsCapabilitiesHandler().'); - } - if (requestParameters['service'] == null) { - throw new runtime.RequiredError('service', 'Required parameter "service" was null or undefined when calling wmsCapabilitiesHandler().'); + throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wmsHandler().'); } if (requestParameters['request'] == null) { - throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wmsCapabilitiesHandler().'); - } - if (requestParameters['format'] == null) { - throw new runtime.RequiredError('format', 'Required parameter "format" was null or undefined when calling wmsCapabilitiesHandler().'); + throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wmsHandler().'); } const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = yield token("session_token", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - let urlPath = `/wms/{workflow}?request=GetCapabilities`; - urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); - urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))); - urlPath = urlPath.replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))); - urlPath = urlPath.replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))); - urlPath = urlPath.replace(`{${"format"}}`, encodeURIComponent(String(requestParameters['format']))); - const response = yield this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } - else { - return new runtime.TextApiResponse(response); - } - }); - } - /** - * Get WMS Capabilities - */ - wmsCapabilitiesHandler(requestParameters, initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - const response = yield this.wmsCapabilitiesHandlerRaw(requestParameters, initOverrides); - return yield response.value(); - }); - } - /** - * Get WMS Legend Graphic - */ - wmsLegendGraphicHandlerRaw(requestParameters, initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - if (requestParameters['workflow'] == null) { - throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wmsLegendGraphicHandler().'); - } - if (requestParameters['version'] == null) { - throw new runtime.RequiredError('version', 'Required parameter "version" was null or undefined when calling wmsLegendGraphicHandler().'); - } - if (requestParameters['service'] == null) { - throw new runtime.RequiredError('service', 'Required parameter "service" was null or undefined when calling wmsLegendGraphicHandler().'); - } - if (requestParameters['request'] == null) { - throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wmsLegendGraphicHandler().'); - } - if (requestParameters['layer'] == null) { - throw new runtime.RequiredError('layer', 'Required parameter "layer" was null or undefined when calling wmsLegendGraphicHandler().'); - } - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = yield token("session_token", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - let urlPath = `/wms/{workflow}?request=GetLegendGraphic`; - urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); - urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))); - urlPath = urlPath.replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))); - urlPath = urlPath.replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))); - urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); - const response = yield this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.VoidApiResponse(response); - }); - } - /** - * Get WMS Legend Graphic - */ - wmsLegendGraphicHandler(requestParameters, initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - yield this.wmsLegendGraphicHandlerRaw(requestParameters, initOverrides); - }); - } - /** - * Get WMS Map - */ - wmsMapHandlerRaw(requestParameters, initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - if (requestParameters['workflow'] == null) { - throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wmsMapHandler().'); - } - if (requestParameters['version'] == null) { - throw new runtime.RequiredError('version', 'Required parameter "version" was null or undefined when calling wmsMapHandler().'); + if (requestParameters['bbox'] != null) { + queryParameters['bbox'] = requestParameters['bbox']; } - if (requestParameters['service'] == null) { - throw new runtime.RequiredError('service', 'Required parameter "service" was null or undefined when calling wmsMapHandler().'); + if (requestParameters['bgcolor'] != null) { + queryParameters['bgcolor'] = requestParameters['bgcolor']; } - if (requestParameters['request'] == null) { - throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wmsMapHandler().'); + if (requestParameters['crs'] != null) { + queryParameters['crs'] = requestParameters['crs']; } - if (requestParameters['width'] == null) { - throw new runtime.RequiredError('width', 'Required parameter "width" was null or undefined when calling wmsMapHandler().'); + if (requestParameters['elevation'] != null) { + queryParameters['elevation'] = requestParameters['elevation']; } - if (requestParameters['height'] == null) { - throw new runtime.RequiredError('height', 'Required parameter "height" was null or undefined when calling wmsMapHandler().'); + if (requestParameters['exceptions'] != null) { + queryParameters['exceptions'] = requestParameters['exceptions']; } - if (requestParameters['bbox'] == null) { - throw new runtime.RequiredError('bbox', 'Required parameter "bbox" was null or undefined when calling wmsMapHandler().'); + if (requestParameters['format'] != null) { + queryParameters['format'] = requestParameters['format']; } - if (requestParameters['format'] == null) { - throw new runtime.RequiredError('format', 'Required parameter "format" was null or undefined when calling wmsMapHandler().'); + if (requestParameters['height'] != null) { + queryParameters['height'] = requestParameters['height']; } - if (requestParameters['layers'] == null) { - throw new runtime.RequiredError('layers', 'Required parameter "layers" was null or undefined when calling wmsMapHandler().'); + if (requestParameters['infoFormat'] != null) { + queryParameters['info_format'] = requestParameters['infoFormat']; } - if (requestParameters['styles'] == null) { - throw new runtime.RequiredError('styles', 'Required parameter "styles" was null or undefined when calling wmsMapHandler().'); + if (requestParameters['layer'] != null) { + queryParameters['layer'] = requestParameters['layer']; } - const queryParameters = {}; - if (requestParameters['version'] != null) { - queryParameters['version'] = requestParameters['version']; + if (requestParameters['layers'] != null) { + queryParameters['layers'] = requestParameters['layers']; } - if (requestParameters['service'] != null) { - queryParameters['service'] = requestParameters['service']; + if (requestParameters['queryLayers'] != null) { + queryParameters['query_layers'] = requestParameters['queryLayers']; } if (requestParameters['request'] != null) { queryParameters['request'] = requestParameters['request']; } - if (requestParameters['width'] != null) { - queryParameters['width'] = requestParameters['width']; - } - if (requestParameters['height'] != null) { - queryParameters['height'] = requestParameters['height']; - } - if (requestParameters['bbox'] != null) { - queryParameters['bbox'] = requestParameters['bbox']; - } - if (requestParameters['format'] != null) { - queryParameters['format'] = requestParameters['format']; + if (requestParameters['service'] != null) { + queryParameters['service'] = requestParameters['service']; } - if (requestParameters['layers'] != null) { - queryParameters['layers'] = requestParameters['layers']; + if (requestParameters['sld'] != null) { + queryParameters['sld'] = requestParameters['sld']; } - if (requestParameters['crs'] != null) { - queryParameters['crs'] = requestParameters['crs']; + if (requestParameters['sldBody'] != null) { + queryParameters['sld_body'] = requestParameters['sldBody']; } if (requestParameters['styles'] != null) { queryParameters['styles'] = requestParameters['styles']; @@ -210,20 +94,11 @@ class OGCWMSApi extends runtime.BaseAPI { if (requestParameters['transparent'] != null) { queryParameters['transparent'] = requestParameters['transparent']; } - if (requestParameters['bgcolor'] != null) { - queryParameters['bgcolor'] = requestParameters['bgcolor']; - } - if (requestParameters['sld'] != null) { - queryParameters['sld'] = requestParameters['sld']; - } - if (requestParameters['sldBody'] != null) { - queryParameters['sld_body'] = requestParameters['sldBody']; - } - if (requestParameters['elevation'] != null) { - queryParameters['elevation'] = requestParameters['elevation']; + if (requestParameters['version'] != null) { + queryParameters['version'] = requestParameters['version']; } - if (requestParameters['exceptions'] != null) { - queryParameters['exceptions'] = requestParameters['exceptions']; + if (requestParameters['width'] != null) { + queryParameters['width'] = requestParameters['width']; } const headerParameters = {}; if (this.configuration && this.configuration.accessToken) { @@ -233,7 +108,7 @@ class OGCWMSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - let urlPath = `/wms/{workflow}?request=GetMap`; + let urlPath = `/wms/{workflow}`; urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); const response = yield this.request({ path: urlPath, @@ -245,11 +120,11 @@ class OGCWMSApi extends runtime.BaseAPI { }); } /** - * Get WMS Map + * OGC WMS endpoint */ - wmsMapHandler(requestParameters, initOverrides) { + wmsHandler(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { - const response = yield this.wmsMapHandlerRaw(requestParameters, initOverrides); + const response = yield this.wmsHandlerRaw(requestParameters, initOverrides); return yield response.value(); }); } diff --git a/typescript/dist/esm/apis/OGCWCSApi.d.ts b/typescript/dist/esm/apis/OGCWCSApi.d.ts index a33cd786..99278f67 100644 --- a/typescript/dist/esm/apis/OGCWCSApi.d.ts +++ b/typescript/dist/esm/apis/OGCWCSApi.d.ts @@ -10,62 +10,34 @@ * Do not edit the class manually. */ import * as runtime from '../runtime'; -import type { DescribeCoverageRequest, GetCapabilitiesRequest, GetCoverageFormat, GetCoverageRequest, WcsService, WcsVersion } from '../models/index'; -export interface WcsCapabilitiesHandlerRequest { +import type { GetCoverageFormat, WcsRequest, WcsService, WcsVersion } from '../models/index'; +export interface WcsHandlerRequest { workflow: string; - service: WcsService; - request: GetCapabilitiesRequest; - version?: WcsVersion | null; -} -export interface WcsDescribeCoverageHandlerRequest { - workflow: string; - version: WcsVersion; - service: WcsService; - request: DescribeCoverageRequest; - identifiers: string; -} -export interface WcsGetCoverageHandlerRequest { - workflow: string; - version: WcsVersion; - service: WcsService; - request: GetCoverageRequest; - format: GetCoverageFormat; - identifier: string; - boundingbox: string; - gridbasecrs: string; - gridorigin?: string; + request: WcsRequest; + boundingbox?: string; + format?: GetCoverageFormat; + gridbasecrs?: string; gridoffsets?: string; - time?: string; + gridorigin?: string; + identifier?: string; + identifiers?: string; + nodatavalue?: number | null; resx?: number | null; resy?: number | null; - nodatavalue?: number | null; + service?: WcsService; + time?: string; + version?: WcsVersion | null; } /** * */ export declare class OGCWCSApi extends runtime.BaseAPI { /** - * Get WCS Capabilities - */ - wcsCapabilitiesHandlerRaw(requestParameters: WcsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get WCS Capabilities - */ - wcsCapabilitiesHandler(requestParameters: WcsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get WCS Coverage Description - */ - wcsDescribeCoverageHandlerRaw(requestParameters: WcsDescribeCoverageHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get WCS Coverage Description - */ - wcsDescribeCoverageHandler(requestParameters: WcsDescribeCoverageHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get WCS Coverage + * OGC WCS endpoint */ - wcsGetCoverageHandlerRaw(requestParameters: WcsGetCoverageHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + wcsHandlerRaw(requestParameters: WcsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Get WCS Coverage + * OGC WCS endpoint */ - wcsGetCoverageHandler(requestParameters: WcsGetCoverageHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + wcsHandler(requestParameters: WcsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } diff --git a/typescript/dist/esm/apis/OGCWCSApi.js b/typescript/dist/esm/apis/OGCWCSApi.js index 067fe03a..648e2bbd 100644 --- a/typescript/dist/esm/apis/OGCWCSApi.js +++ b/typescript/dist/esm/apis/OGCWCSApi.js @@ -26,94 +26,58 @@ import * as runtime from '../runtime'; */ export class OGCWCSApi extends runtime.BaseAPI { /** - * Get WCS Capabilities + * OGC WCS endpoint */ - wcsCapabilitiesHandlerRaw(requestParameters, initOverrides) { + wcsHandlerRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { if (requestParameters['workflow'] == null) { - throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wcsCapabilitiesHandler().'); - } - if (requestParameters['service'] == null) { - throw new runtime.RequiredError('service', 'Required parameter "service" was null or undefined when calling wcsCapabilitiesHandler().'); + throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wcsHandler().'); } if (requestParameters['request'] == null) { - throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wcsCapabilitiesHandler().'); + throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wcsHandler().'); } const queryParameters = {}; - if (requestParameters['version'] != null) { - queryParameters['version'] = requestParameters['version']; - } - if (requestParameters['service'] != null) { - queryParameters['service'] = requestParameters['service']; + if (requestParameters['boundingbox'] != null) { + queryParameters['boundingbox'] = requestParameters['boundingbox']; } - if (requestParameters['request'] != null) { - queryParameters['request'] = requestParameters['request']; + if (requestParameters['format'] != null) { + queryParameters['format'] = requestParameters['format']; } - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = yield token("session_token", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } + if (requestParameters['gridbasecrs'] != null) { + queryParameters['gridbasecrs'] = requestParameters['gridbasecrs']; } - let urlPath = `/wcs/{workflow}?request=GetCapabilities`; - urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); - const response = yield this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); + if (requestParameters['gridoffsets'] != null) { + queryParameters['gridoffsets'] = requestParameters['gridoffsets']; } - else { - return new runtime.TextApiResponse(response); + if (requestParameters['gridorigin'] != null) { + queryParameters['gridorigin'] = requestParameters['gridorigin']; } - }); - } - /** - * Get WCS Capabilities - */ - wcsCapabilitiesHandler(requestParameters, initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - const response = yield this.wcsCapabilitiesHandlerRaw(requestParameters, initOverrides); - return yield response.value(); - }); - } - /** - * Get WCS Coverage Description - */ - wcsDescribeCoverageHandlerRaw(requestParameters, initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - if (requestParameters['workflow'] == null) { - throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wcsDescribeCoverageHandler().'); + if (requestParameters['identifier'] != null) { + queryParameters['identifier'] = requestParameters['identifier']; } - if (requestParameters['version'] == null) { - throw new runtime.RequiredError('version', 'Required parameter "version" was null or undefined when calling wcsDescribeCoverageHandler().'); + if (requestParameters['identifiers'] != null) { + queryParameters['identifiers'] = requestParameters['identifiers']; } - if (requestParameters['service'] == null) { - throw new runtime.RequiredError('service', 'Required parameter "service" was null or undefined when calling wcsDescribeCoverageHandler().'); + if (requestParameters['nodatavalue'] != null) { + queryParameters['nodatavalue'] = requestParameters['nodatavalue']; } - if (requestParameters['request'] == null) { - throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wcsDescribeCoverageHandler().'); + if (requestParameters['request'] != null) { + queryParameters['request'] = requestParameters['request']; } - if (requestParameters['identifiers'] == null) { - throw new runtime.RequiredError('identifiers', 'Required parameter "identifiers" was null or undefined when calling wcsDescribeCoverageHandler().'); + if (requestParameters['resx'] != null) { + queryParameters['resx'] = requestParameters['resx']; } - const queryParameters = {}; - if (requestParameters['version'] != null) { - queryParameters['version'] = requestParameters['version']; + if (requestParameters['resy'] != null) { + queryParameters['resy'] = requestParameters['resy']; } if (requestParameters['service'] != null) { queryParameters['service'] = requestParameters['service']; } - if (requestParameters['request'] != null) { - queryParameters['request'] = requestParameters['request']; + if (requestParameters['time'] != null) { + queryParameters['time'] = requestParameters['time']; } - if (requestParameters['identifiers'] != null) { - queryParameters['identifiers'] = requestParameters['identifiers']; + if (requestParameters['version'] != null) { + queryParameters['version'] = requestParameters['version']; } const headerParameters = {}; if (this.configuration && this.configuration.accessToken) { @@ -123,7 +87,7 @@ export class OGCWCSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - let urlPath = `/wcs/{workflow}?request=DescribeCoverage`; + let urlPath = `/wcs/{workflow}`; urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); const response = yield this.request({ path: urlPath, @@ -140,108 +104,11 @@ export class OGCWCSApi extends runtime.BaseAPI { }); } /** - * Get WCS Coverage Description - */ - wcsDescribeCoverageHandler(requestParameters, initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - const response = yield this.wcsDescribeCoverageHandlerRaw(requestParameters, initOverrides); - return yield response.value(); - }); - } - /** - * Get WCS Coverage - */ - wcsGetCoverageHandlerRaw(requestParameters, initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - if (requestParameters['workflow'] == null) { - throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wcsGetCoverageHandler().'); - } - if (requestParameters['version'] == null) { - throw new runtime.RequiredError('version', 'Required parameter "version" was null or undefined when calling wcsGetCoverageHandler().'); - } - if (requestParameters['service'] == null) { - throw new runtime.RequiredError('service', 'Required parameter "service" was null or undefined when calling wcsGetCoverageHandler().'); - } - if (requestParameters['request'] == null) { - throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wcsGetCoverageHandler().'); - } - if (requestParameters['format'] == null) { - throw new runtime.RequiredError('format', 'Required parameter "format" was null or undefined when calling wcsGetCoverageHandler().'); - } - if (requestParameters['identifier'] == null) { - throw new runtime.RequiredError('identifier', 'Required parameter "identifier" was null or undefined when calling wcsGetCoverageHandler().'); - } - if (requestParameters['boundingbox'] == null) { - throw new runtime.RequiredError('boundingbox', 'Required parameter "boundingbox" was null or undefined when calling wcsGetCoverageHandler().'); - } - if (requestParameters['gridbasecrs'] == null) { - throw new runtime.RequiredError('gridbasecrs', 'Required parameter "gridbasecrs" was null or undefined when calling wcsGetCoverageHandler().'); - } - const queryParameters = {}; - if (requestParameters['version'] != null) { - queryParameters['version'] = requestParameters['version']; - } - if (requestParameters['service'] != null) { - queryParameters['service'] = requestParameters['service']; - } - if (requestParameters['request'] != null) { - queryParameters['request'] = requestParameters['request']; - } - if (requestParameters['format'] != null) { - queryParameters['format'] = requestParameters['format']; - } - if (requestParameters['identifier'] != null) { - queryParameters['identifier'] = requestParameters['identifier']; - } - if (requestParameters['boundingbox'] != null) { - queryParameters['boundingbox'] = requestParameters['boundingbox']; - } - if (requestParameters['gridbasecrs'] != null) { - queryParameters['gridbasecrs'] = requestParameters['gridbasecrs']; - } - if (requestParameters['gridorigin'] != null) { - queryParameters['gridorigin'] = requestParameters['gridorigin']; - } - if (requestParameters['gridoffsets'] != null) { - queryParameters['gridoffsets'] = requestParameters['gridoffsets']; - } - if (requestParameters['time'] != null) { - queryParameters['time'] = requestParameters['time']; - } - if (requestParameters['resx'] != null) { - queryParameters['resx'] = requestParameters['resx']; - } - if (requestParameters['resy'] != null) { - queryParameters['resy'] = requestParameters['resy']; - } - if (requestParameters['nodatavalue'] != null) { - queryParameters['nodatavalue'] = requestParameters['nodatavalue']; - } - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = yield token("session_token", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - let urlPath = `/wcs/{workflow}?request=GetCoverage`; - urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); - const response = yield this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.BlobApiResponse(response); - }); - } - /** - * Get WCS Coverage + * OGC WCS endpoint */ - wcsGetCoverageHandler(requestParameters, initOverrides) { + wcsHandler(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { - const response = yield this.wcsGetCoverageHandlerRaw(requestParameters, initOverrides); + const response = yield this.wcsHandlerRaw(requestParameters, initOverrides); return yield response.value(); }); } diff --git a/typescript/dist/esm/apis/OGCWFSApi.d.ts b/typescript/dist/esm/apis/OGCWFSApi.d.ts index f4b165c7..8bbd32bc 100644 --- a/typescript/dist/esm/apis/OGCWFSApi.d.ts +++ b/typescript/dist/esm/apis/OGCWFSApi.d.ts @@ -10,48 +10,33 @@ * Do not edit the class manually. */ import * as runtime from '../runtime'; -import type { GeoJson, GetCapabilitiesRequest, GetFeatureRequest, WfsService, WfsVersion } from '../models/index'; -export interface WfsCapabilitiesHandlerRequest { +import type { GeoJson, WfsRequest, WfsService, WfsVersion } from '../models/index'; +export interface WfsHandlerRequest { workflow: string; - version: WfsVersion | null; - service: WfsService; - request: GetCapabilitiesRequest; -} -export interface WfsFeatureHandlerRequest { - workflow: string; - service: WfsService; - request: GetFeatureRequest; - typeNames: string; - bbox: string; - version?: WfsVersion | null; - time?: string; - srsName?: string | null; - namespaces?: string | null; + request: WfsRequest; + bbox?: string; count?: number | null; - sortBy?: string | null; - resultType?: string | null; filter?: string | null; + namespaces?: string | null; propertyName?: string | null; - queryResolution?: string; + resultType?: string | null; + service?: WfsService; + sortBy?: string | null; + srsName?: string | null; + time?: string; + typeNames?: string; + version?: WfsVersion | null; } /** * */ export declare class OGCWFSApi extends runtime.BaseAPI { /** - * Get WFS Capabilities - */ - wfsCapabilitiesHandlerRaw(requestParameters: WfsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get WFS Capabilities - */ - wfsCapabilitiesHandler(requestParameters: WfsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get WCS Features + * OGC WFS endpoint */ - wfsFeatureHandlerRaw(requestParameters: WfsFeatureHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + wfsHandlerRaw(requestParameters: WfsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Get WCS Features + * OGC WFS endpoint */ - wfsFeatureHandler(requestParameters: WfsFeatureHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + wfsHandler(requestParameters: WfsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } diff --git a/typescript/dist/esm/apis/OGCWFSApi.js b/typescript/dist/esm/apis/OGCWFSApi.js index 9bfc35c8..8c239e71 100644 --- a/typescript/dist/esm/apis/OGCWFSApi.js +++ b/typescript/dist/esm/apis/OGCWFSApi.js @@ -27,121 +27,55 @@ import { GeoJsonFromJSON, } from '../models/index'; */ export class OGCWFSApi extends runtime.BaseAPI { /** - * Get WFS Capabilities + * OGC WFS endpoint */ - wfsCapabilitiesHandlerRaw(requestParameters, initOverrides) { + wfsHandlerRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { if (requestParameters['workflow'] == null) { - throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wfsCapabilitiesHandler().'); - } - if (requestParameters['version'] == null) { - throw new runtime.RequiredError('version', 'Required parameter "version" was null or undefined when calling wfsCapabilitiesHandler().'); - } - if (requestParameters['service'] == null) { - throw new runtime.RequiredError('service', 'Required parameter "service" was null or undefined when calling wfsCapabilitiesHandler().'); + throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wfsHandler().'); } if (requestParameters['request'] == null) { - throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wfsCapabilitiesHandler().'); + throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wfsHandler().'); } const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = yield token("session_token", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - let urlPath = `/wfs/{workflow}?request=GetCapabilities`; - urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); - urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))); - urlPath = urlPath.replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))); - urlPath = urlPath.replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))); - const response = yield this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } - else { - return new runtime.TextApiResponse(response); - } - }); - } - /** - * Get WFS Capabilities - */ - wfsCapabilitiesHandler(requestParameters, initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - const response = yield this.wfsCapabilitiesHandlerRaw(requestParameters, initOverrides); - return yield response.value(); - }); - } - /** - * Get WCS Features - */ - wfsFeatureHandlerRaw(requestParameters, initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - if (requestParameters['workflow'] == null) { - throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wfsFeatureHandler().'); - } - if (requestParameters['service'] == null) { - throw new runtime.RequiredError('service', 'Required parameter "service" was null or undefined when calling wfsFeatureHandler().'); - } - if (requestParameters['request'] == null) { - throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wfsFeatureHandler().'); + if (requestParameters['bbox'] != null) { + queryParameters['bbox'] = requestParameters['bbox']; } - if (requestParameters['typeNames'] == null) { - throw new runtime.RequiredError('typeNames', 'Required parameter "typeNames" was null or undefined when calling wfsFeatureHandler().'); + if (requestParameters['count'] != null) { + queryParameters['count'] = requestParameters['count']; } - if (requestParameters['bbox'] == null) { - throw new runtime.RequiredError('bbox', 'Required parameter "bbox" was null or undefined when calling wfsFeatureHandler().'); + if (requestParameters['filter'] != null) { + queryParameters['filter'] = requestParameters['filter']; } - const queryParameters = {}; - if (requestParameters['version'] != null) { - queryParameters['version'] = requestParameters['version']; + if (requestParameters['namespaces'] != null) { + queryParameters['namespaces'] = requestParameters['namespaces']; } - if (requestParameters['service'] != null) { - queryParameters['service'] = requestParameters['service']; + if (requestParameters['propertyName'] != null) { + queryParameters['propertyName'] = requestParameters['propertyName']; } if (requestParameters['request'] != null) { queryParameters['request'] = requestParameters['request']; } - if (requestParameters['typeNames'] != null) { - queryParameters['typeNames'] = requestParameters['typeNames']; - } - if (requestParameters['bbox'] != null) { - queryParameters['bbox'] = requestParameters['bbox']; - } - if (requestParameters['time'] != null) { - queryParameters['time'] = requestParameters['time']; - } - if (requestParameters['srsName'] != null) { - queryParameters['srsName'] = requestParameters['srsName']; - } - if (requestParameters['namespaces'] != null) { - queryParameters['namespaces'] = requestParameters['namespaces']; + if (requestParameters['resultType'] != null) { + queryParameters['resultType'] = requestParameters['resultType']; } - if (requestParameters['count'] != null) { - queryParameters['count'] = requestParameters['count']; + if (requestParameters['service'] != null) { + queryParameters['service'] = requestParameters['service']; } if (requestParameters['sortBy'] != null) { queryParameters['sortBy'] = requestParameters['sortBy']; } - if (requestParameters['resultType'] != null) { - queryParameters['resultType'] = requestParameters['resultType']; + if (requestParameters['srsName'] != null) { + queryParameters['srsName'] = requestParameters['srsName']; } - if (requestParameters['filter'] != null) { - queryParameters['filter'] = requestParameters['filter']; + if (requestParameters['time'] != null) { + queryParameters['time'] = requestParameters['time']; } - if (requestParameters['propertyName'] != null) { - queryParameters['propertyName'] = requestParameters['propertyName']; + if (requestParameters['typeNames'] != null) { + queryParameters['typeNames'] = requestParameters['typeNames']; } - if (requestParameters['queryResolution'] != null) { - queryParameters['queryResolution'] = requestParameters['queryResolution']; + if (requestParameters['version'] != null) { + queryParameters['version'] = requestParameters['version']; } const headerParameters = {}; if (this.configuration && this.configuration.accessToken) { @@ -151,7 +85,7 @@ export class OGCWFSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - let urlPath = `/wfs/{workflow}?request=GetFeature`; + let urlPath = `/wfs/{workflow}`; urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); const response = yield this.request({ path: urlPath, @@ -163,11 +97,11 @@ export class OGCWFSApi extends runtime.BaseAPI { }); } /** - * Get WCS Features + * OGC WFS endpoint */ - wfsFeatureHandler(requestParameters, initOverrides) { + wfsHandler(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { - const response = yield this.wfsFeatureHandlerRaw(requestParameters, initOverrides); + const response = yield this.wfsHandlerRaw(requestParameters, initOverrides); return yield response.value(); }); } diff --git a/typescript/dist/esm/apis/OGCWMSApi.d.ts b/typescript/dist/esm/apis/OGCWMSApi.d.ts index ad1406c7..4abaa6e5 100644 --- a/typescript/dist/esm/apis/OGCWMSApi.d.ts +++ b/typescript/dist/esm/apis/OGCWMSApi.d.ts @@ -10,67 +10,40 @@ * Do not edit the class manually. */ import * as runtime from '../runtime'; -import type { GetCapabilitiesFormat, GetCapabilitiesRequest, GetLegendGraphicRequest, GetMapExceptionFormat, GetMapFormat, GetMapRequest, WmsService, WmsVersion } from '../models/index'; -export interface WmsCapabilitiesHandlerRequest { +import type { GetMapExceptionFormat, WmsRequest, WmsResponseFormat, WmsService, WmsVersion } from '../models/index'; +export interface WmsHandlerRequest { workflow: string; - version: WmsVersion | null; - service: WmsService; - request: GetCapabilitiesRequest; - format: GetCapabilitiesFormat | null; -} -export interface WmsLegendGraphicHandlerRequest { - workflow: string; - version: WmsVersion; - service: WmsService; - request: GetLegendGraphicRequest; - layer: string; -} -export interface WmsMapHandlerRequest { - workflow: string; - version: WmsVersion; - service: WmsService; - request: GetMapRequest; - width: number; - height: number; - bbox: string; - format: GetMapFormat; - layers: string; - styles: string; - crs?: string | null; - time?: string; - transparent?: boolean | null; + request: WmsRequest; + bbox?: string; bgcolor?: string | null; - sld?: string | null; - sldBody?: string | null; + crs?: string | null; elevation?: string | null; exceptions?: GetMapExceptionFormat | null; + format?: WmsResponseFormat | null; + height?: number; + infoFormat?: string | null; + layer?: string; + layers?: string; + queryLayers?: string; + service?: WmsService; + sld?: string | null; + sldBody?: string | null; + styles?: string; + time?: string; + transparent?: boolean | null; + version?: WmsVersion | null; + width?: number; } /** * */ export declare class OGCWMSApi extends runtime.BaseAPI { /** - * Get WMS Capabilities - */ - wmsCapabilitiesHandlerRaw(requestParameters: WmsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get WMS Capabilities - */ - wmsCapabilitiesHandler(requestParameters: WmsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get WMS Legend Graphic - */ - wmsLegendGraphicHandlerRaw(requestParameters: WmsLegendGraphicHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Get WMS Legend Graphic - */ - wmsLegendGraphicHandler(requestParameters: WmsLegendGraphicHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; - /** - * Get WMS Map + * OGC WMS endpoint */ - wmsMapHandlerRaw(requestParameters: WmsMapHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + wmsHandlerRaw(requestParameters: WmsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** - * Get WMS Map + * OGC WMS endpoint */ - wmsMapHandler(requestParameters: WmsMapHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + wmsHandler(requestParameters: WmsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } diff --git a/typescript/dist/esm/apis/OGCWMSApi.js b/typescript/dist/esm/apis/OGCWMSApi.js index 7ef5b08a..628c074a 100644 --- a/typescript/dist/esm/apis/OGCWMSApi.js +++ b/typescript/dist/esm/apis/OGCWMSApi.js @@ -26,177 +26,61 @@ import * as runtime from '../runtime'; */ export class OGCWMSApi extends runtime.BaseAPI { /** - * Get WMS Capabilities + * OGC WMS endpoint */ - wmsCapabilitiesHandlerRaw(requestParameters, initOverrides) { + wmsHandlerRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { if (requestParameters['workflow'] == null) { - throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wmsCapabilitiesHandler().'); - } - if (requestParameters['version'] == null) { - throw new runtime.RequiredError('version', 'Required parameter "version" was null or undefined when calling wmsCapabilitiesHandler().'); - } - if (requestParameters['service'] == null) { - throw new runtime.RequiredError('service', 'Required parameter "service" was null or undefined when calling wmsCapabilitiesHandler().'); + throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wmsHandler().'); } if (requestParameters['request'] == null) { - throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wmsCapabilitiesHandler().'); - } - if (requestParameters['format'] == null) { - throw new runtime.RequiredError('format', 'Required parameter "format" was null or undefined when calling wmsCapabilitiesHandler().'); + throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wmsHandler().'); } const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = yield token("session_token", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - let urlPath = `/wms/{workflow}?request=GetCapabilities`; - urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); - urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))); - urlPath = urlPath.replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))); - urlPath = urlPath.replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))); - urlPath = urlPath.replace(`{${"format"}}`, encodeURIComponent(String(requestParameters['format']))); - const response = yield this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } - else { - return new runtime.TextApiResponse(response); - } - }); - } - /** - * Get WMS Capabilities - */ - wmsCapabilitiesHandler(requestParameters, initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - const response = yield this.wmsCapabilitiesHandlerRaw(requestParameters, initOverrides); - return yield response.value(); - }); - } - /** - * Get WMS Legend Graphic - */ - wmsLegendGraphicHandlerRaw(requestParameters, initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - if (requestParameters['workflow'] == null) { - throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wmsLegendGraphicHandler().'); - } - if (requestParameters['version'] == null) { - throw new runtime.RequiredError('version', 'Required parameter "version" was null or undefined when calling wmsLegendGraphicHandler().'); - } - if (requestParameters['service'] == null) { - throw new runtime.RequiredError('service', 'Required parameter "service" was null or undefined when calling wmsLegendGraphicHandler().'); - } - if (requestParameters['request'] == null) { - throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wmsLegendGraphicHandler().'); - } - if (requestParameters['layer'] == null) { - throw new runtime.RequiredError('layer', 'Required parameter "layer" was null or undefined when calling wmsLegendGraphicHandler().'); - } - const queryParameters = {}; - const headerParameters = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = yield token("session_token", []); - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - let urlPath = `/wms/{workflow}?request=GetLegendGraphic`; - urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); - urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))); - urlPath = urlPath.replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))); - urlPath = urlPath.replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))); - urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); - const response = yield this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - return new runtime.VoidApiResponse(response); - }); - } - /** - * Get WMS Legend Graphic - */ - wmsLegendGraphicHandler(requestParameters, initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - yield this.wmsLegendGraphicHandlerRaw(requestParameters, initOverrides); - }); - } - /** - * Get WMS Map - */ - wmsMapHandlerRaw(requestParameters, initOverrides) { - return __awaiter(this, void 0, void 0, function* () { - if (requestParameters['workflow'] == null) { - throw new runtime.RequiredError('workflow', 'Required parameter "workflow" was null or undefined when calling wmsMapHandler().'); - } - if (requestParameters['version'] == null) { - throw new runtime.RequiredError('version', 'Required parameter "version" was null or undefined when calling wmsMapHandler().'); + if (requestParameters['bbox'] != null) { + queryParameters['bbox'] = requestParameters['bbox']; } - if (requestParameters['service'] == null) { - throw new runtime.RequiredError('service', 'Required parameter "service" was null or undefined when calling wmsMapHandler().'); + if (requestParameters['bgcolor'] != null) { + queryParameters['bgcolor'] = requestParameters['bgcolor']; } - if (requestParameters['request'] == null) { - throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling wmsMapHandler().'); + if (requestParameters['crs'] != null) { + queryParameters['crs'] = requestParameters['crs']; } - if (requestParameters['width'] == null) { - throw new runtime.RequiredError('width', 'Required parameter "width" was null or undefined when calling wmsMapHandler().'); + if (requestParameters['elevation'] != null) { + queryParameters['elevation'] = requestParameters['elevation']; } - if (requestParameters['height'] == null) { - throw new runtime.RequiredError('height', 'Required parameter "height" was null or undefined when calling wmsMapHandler().'); + if (requestParameters['exceptions'] != null) { + queryParameters['exceptions'] = requestParameters['exceptions']; } - if (requestParameters['bbox'] == null) { - throw new runtime.RequiredError('bbox', 'Required parameter "bbox" was null or undefined when calling wmsMapHandler().'); + if (requestParameters['format'] != null) { + queryParameters['format'] = requestParameters['format']; } - if (requestParameters['format'] == null) { - throw new runtime.RequiredError('format', 'Required parameter "format" was null or undefined when calling wmsMapHandler().'); + if (requestParameters['height'] != null) { + queryParameters['height'] = requestParameters['height']; } - if (requestParameters['layers'] == null) { - throw new runtime.RequiredError('layers', 'Required parameter "layers" was null or undefined when calling wmsMapHandler().'); + if (requestParameters['infoFormat'] != null) { + queryParameters['info_format'] = requestParameters['infoFormat']; } - if (requestParameters['styles'] == null) { - throw new runtime.RequiredError('styles', 'Required parameter "styles" was null or undefined when calling wmsMapHandler().'); + if (requestParameters['layer'] != null) { + queryParameters['layer'] = requestParameters['layer']; } - const queryParameters = {}; - if (requestParameters['version'] != null) { - queryParameters['version'] = requestParameters['version']; + if (requestParameters['layers'] != null) { + queryParameters['layers'] = requestParameters['layers']; } - if (requestParameters['service'] != null) { - queryParameters['service'] = requestParameters['service']; + if (requestParameters['queryLayers'] != null) { + queryParameters['query_layers'] = requestParameters['queryLayers']; } if (requestParameters['request'] != null) { queryParameters['request'] = requestParameters['request']; } - if (requestParameters['width'] != null) { - queryParameters['width'] = requestParameters['width']; - } - if (requestParameters['height'] != null) { - queryParameters['height'] = requestParameters['height']; - } - if (requestParameters['bbox'] != null) { - queryParameters['bbox'] = requestParameters['bbox']; - } - if (requestParameters['format'] != null) { - queryParameters['format'] = requestParameters['format']; + if (requestParameters['service'] != null) { + queryParameters['service'] = requestParameters['service']; } - if (requestParameters['layers'] != null) { - queryParameters['layers'] = requestParameters['layers']; + if (requestParameters['sld'] != null) { + queryParameters['sld'] = requestParameters['sld']; } - if (requestParameters['crs'] != null) { - queryParameters['crs'] = requestParameters['crs']; + if (requestParameters['sldBody'] != null) { + queryParameters['sld_body'] = requestParameters['sldBody']; } if (requestParameters['styles'] != null) { queryParameters['styles'] = requestParameters['styles']; @@ -207,20 +91,11 @@ export class OGCWMSApi extends runtime.BaseAPI { if (requestParameters['transparent'] != null) { queryParameters['transparent'] = requestParameters['transparent']; } - if (requestParameters['bgcolor'] != null) { - queryParameters['bgcolor'] = requestParameters['bgcolor']; - } - if (requestParameters['sld'] != null) { - queryParameters['sld'] = requestParameters['sld']; - } - if (requestParameters['sldBody'] != null) { - queryParameters['sld_body'] = requestParameters['sldBody']; - } - if (requestParameters['elevation'] != null) { - queryParameters['elevation'] = requestParameters['elevation']; + if (requestParameters['version'] != null) { + queryParameters['version'] = requestParameters['version']; } - if (requestParameters['exceptions'] != null) { - queryParameters['exceptions'] = requestParameters['exceptions']; + if (requestParameters['width'] != null) { + queryParameters['width'] = requestParameters['width']; } const headerParameters = {}; if (this.configuration && this.configuration.accessToken) { @@ -230,7 +105,7 @@ export class OGCWMSApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - let urlPath = `/wms/{workflow}?request=GetMap`; + let urlPath = `/wms/{workflow}`; urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); const response = yield this.request({ path: urlPath, @@ -242,11 +117,11 @@ export class OGCWMSApi extends runtime.BaseAPI { }); } /** - * Get WMS Map + * OGC WMS endpoint */ - wmsMapHandler(requestParameters, initOverrides) { + wmsHandler(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { - const response = yield this.wmsMapHandlerRaw(requestParameters, initOverrides); + const response = yield this.wmsHandlerRaw(requestParameters, initOverrides); return yield response.value(); }); } diff --git a/typescript/dist/esm/models/DescribeCoverageRequest.d.ts b/typescript/dist/esm/models/DescribeCoverageRequest.d.ts deleted file mode 100644 index 4e593d5e..00000000 --- a/typescript/dist/esm/models/DescribeCoverageRequest.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export declare const DescribeCoverageRequest: { - readonly DescribeCoverage: "DescribeCoverage"; -}; -export type DescribeCoverageRequest = typeof DescribeCoverageRequest[keyof typeof DescribeCoverageRequest]; -export declare function instanceOfDescribeCoverageRequest(value: any): boolean; -export declare function DescribeCoverageRequestFromJSON(json: any): DescribeCoverageRequest; -export declare function DescribeCoverageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DescribeCoverageRequest; -export declare function DescribeCoverageRequestToJSON(value?: DescribeCoverageRequest | null): any; -export declare function DescribeCoverageRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): DescribeCoverageRequest; diff --git a/typescript/dist/esm/models/DescribeCoverageRequest.js b/typescript/dist/esm/models/DescribeCoverageRequest.js deleted file mode 100644 index 88a1e506..00000000 --- a/typescript/dist/esm/models/DescribeCoverageRequest.js +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export const DescribeCoverageRequest = { - DescribeCoverage: 'DescribeCoverage' -}; -export function instanceOfDescribeCoverageRequest(value) { - for (const key in DescribeCoverageRequest) { - if (Object.prototype.hasOwnProperty.call(DescribeCoverageRequest, key)) { - if (DescribeCoverageRequest[key] === value) { - return true; - } - } - } - return false; -} -export function DescribeCoverageRequestFromJSON(json) { - return DescribeCoverageRequestFromJSONTyped(json, false); -} -export function DescribeCoverageRequestFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -export function DescribeCoverageRequestToJSON(value) { - return value; -} -export function DescribeCoverageRequestToJSONTyped(value, ignoreDiscriminator) { - return value; -} diff --git a/typescript/dist/esm/models/GetCapabilitiesFormat.d.ts b/typescript/dist/esm/models/GetCapabilitiesFormat.d.ts deleted file mode 100644 index 9a4034dc..00000000 --- a/typescript/dist/esm/models/GetCapabilitiesFormat.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export declare const GetCapabilitiesFormat: { - readonly TextXml: "text/xml"; -}; -export type GetCapabilitiesFormat = typeof GetCapabilitiesFormat[keyof typeof GetCapabilitiesFormat]; -export declare function instanceOfGetCapabilitiesFormat(value: any): boolean; -export declare function GetCapabilitiesFormatFromJSON(json: any): GetCapabilitiesFormat; -export declare function GetCapabilitiesFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCapabilitiesFormat; -export declare function GetCapabilitiesFormatToJSON(value?: GetCapabilitiesFormat | null): any; -export declare function GetCapabilitiesFormatToJSONTyped(value: any, ignoreDiscriminator: boolean): GetCapabilitiesFormat; diff --git a/typescript/dist/esm/models/GetCapabilitiesFormat.js b/typescript/dist/esm/models/GetCapabilitiesFormat.js deleted file mode 100644 index 4f0b7b90..00000000 --- a/typescript/dist/esm/models/GetCapabilitiesFormat.js +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export const GetCapabilitiesFormat = { - TextXml: 'text/xml' -}; -export function instanceOfGetCapabilitiesFormat(value) { - for (const key in GetCapabilitiesFormat) { - if (Object.prototype.hasOwnProperty.call(GetCapabilitiesFormat, key)) { - if (GetCapabilitiesFormat[key] === value) { - return true; - } - } - } - return false; -} -export function GetCapabilitiesFormatFromJSON(json) { - return GetCapabilitiesFormatFromJSONTyped(json, false); -} -export function GetCapabilitiesFormatFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -export function GetCapabilitiesFormatToJSON(value) { - return value; -} -export function GetCapabilitiesFormatToJSONTyped(value, ignoreDiscriminator) { - return value; -} diff --git a/typescript/dist/esm/models/GetCapabilitiesRequest.d.ts b/typescript/dist/esm/models/GetCapabilitiesRequest.d.ts deleted file mode 100644 index c1309d45..00000000 --- a/typescript/dist/esm/models/GetCapabilitiesRequest.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export declare const GetCapabilitiesRequest: { - readonly GetCapabilities: "GetCapabilities"; -}; -export type GetCapabilitiesRequest = typeof GetCapabilitiesRequest[keyof typeof GetCapabilitiesRequest]; -export declare function instanceOfGetCapabilitiesRequest(value: any): boolean; -export declare function GetCapabilitiesRequestFromJSON(json: any): GetCapabilitiesRequest; -export declare function GetCapabilitiesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCapabilitiesRequest; -export declare function GetCapabilitiesRequestToJSON(value?: GetCapabilitiesRequest | null): any; -export declare function GetCapabilitiesRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): GetCapabilitiesRequest; diff --git a/typescript/dist/esm/models/GetCapabilitiesRequest.js b/typescript/dist/esm/models/GetCapabilitiesRequest.js deleted file mode 100644 index 0340671b..00000000 --- a/typescript/dist/esm/models/GetCapabilitiesRequest.js +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export const GetCapabilitiesRequest = { - GetCapabilities: 'GetCapabilities' -}; -export function instanceOfGetCapabilitiesRequest(value) { - for (const key in GetCapabilitiesRequest) { - if (Object.prototype.hasOwnProperty.call(GetCapabilitiesRequest, key)) { - if (GetCapabilitiesRequest[key] === value) { - return true; - } - } - } - return false; -} -export function GetCapabilitiesRequestFromJSON(json) { - return GetCapabilitiesRequestFromJSONTyped(json, false); -} -export function GetCapabilitiesRequestFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -export function GetCapabilitiesRequestToJSON(value) { - return value; -} -export function GetCapabilitiesRequestToJSONTyped(value, ignoreDiscriminator) { - return value; -} diff --git a/typescript/dist/esm/models/GetCoverageRequest.d.ts b/typescript/dist/esm/models/GetCoverageRequest.d.ts deleted file mode 100644 index 66a5e4f4..00000000 --- a/typescript/dist/esm/models/GetCoverageRequest.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export declare const GetCoverageRequest: { - readonly GetCoverage: "GetCoverage"; -}; -export type GetCoverageRequest = typeof GetCoverageRequest[keyof typeof GetCoverageRequest]; -export declare function instanceOfGetCoverageRequest(value: any): boolean; -export declare function GetCoverageRequestFromJSON(json: any): GetCoverageRequest; -export declare function GetCoverageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCoverageRequest; -export declare function GetCoverageRequestToJSON(value?: GetCoverageRequest | null): any; -export declare function GetCoverageRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): GetCoverageRequest; diff --git a/typescript/dist/esm/models/GetFeatureRequest.d.ts b/typescript/dist/esm/models/GetFeatureRequest.d.ts deleted file mode 100644 index ed0b6064..00000000 --- a/typescript/dist/esm/models/GetFeatureRequest.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export declare const GetFeatureRequest: { - readonly GetFeature: "GetFeature"; -}; -export type GetFeatureRequest = typeof GetFeatureRequest[keyof typeof GetFeatureRequest]; -export declare function instanceOfGetFeatureRequest(value: any): boolean; -export declare function GetFeatureRequestFromJSON(json: any): GetFeatureRequest; -export declare function GetFeatureRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFeatureRequest; -export declare function GetFeatureRequestToJSON(value?: GetFeatureRequest | null): any; -export declare function GetFeatureRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): GetFeatureRequest; diff --git a/typescript/dist/esm/models/GetLegendGraphicRequest.d.ts b/typescript/dist/esm/models/GetLegendGraphicRequest.d.ts deleted file mode 100644 index d05f4a02..00000000 --- a/typescript/dist/esm/models/GetLegendGraphicRequest.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export declare const GetLegendGraphicRequest: { - readonly GetLegendGraphic: "GetLegendGraphic"; -}; -export type GetLegendGraphicRequest = typeof GetLegendGraphicRequest[keyof typeof GetLegendGraphicRequest]; -export declare function instanceOfGetLegendGraphicRequest(value: any): boolean; -export declare function GetLegendGraphicRequestFromJSON(json: any): GetLegendGraphicRequest; -export declare function GetLegendGraphicRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetLegendGraphicRequest; -export declare function GetLegendGraphicRequestToJSON(value?: GetLegendGraphicRequest | null): any; -export declare function GetLegendGraphicRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): GetLegendGraphicRequest; diff --git a/typescript/dist/esm/models/GetMapFormat.d.ts b/typescript/dist/esm/models/GetMapFormat.d.ts deleted file mode 100644 index 9d8bec75..00000000 --- a/typescript/dist/esm/models/GetMapFormat.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export declare const GetMapFormat: { - readonly ImagePng: "image/png"; -}; -export type GetMapFormat = typeof GetMapFormat[keyof typeof GetMapFormat]; -export declare function instanceOfGetMapFormat(value: any): boolean; -export declare function GetMapFormatFromJSON(json: any): GetMapFormat; -export declare function GetMapFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetMapFormat; -export declare function GetMapFormatToJSON(value?: GetMapFormat | null): any; -export declare function GetMapFormatToJSONTyped(value: any, ignoreDiscriminator: boolean): GetMapFormat; diff --git a/typescript/dist/esm/models/GetMapRequest.d.ts b/typescript/dist/esm/models/GetMapRequest.d.ts deleted file mode 100644 index 04c01ac6..00000000 --- a/typescript/dist/esm/models/GetMapRequest.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export declare const GetMapRequest: { - readonly GetMap: "GetMap"; -}; -export type GetMapRequest = typeof GetMapRequest[keyof typeof GetMapRequest]; -export declare function instanceOfGetMapRequest(value: any): boolean; -export declare function GetMapRequestFromJSON(json: any): GetMapRequest; -export declare function GetMapRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetMapRequest; -export declare function GetMapRequestToJSON(value?: GetMapRequest | null): any; -export declare function GetMapRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): GetMapRequest; diff --git a/typescript/dist/esm/models/GetMapRequest.js b/typescript/dist/esm/models/GetMapRequest.js deleted file mode 100644 index 37ba3276..00000000 --- a/typescript/dist/esm/models/GetMapRequest.js +++ /dev/null @@ -1,42 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export const GetMapRequest = { - GetMap: 'GetMap' -}; -export function instanceOfGetMapRequest(value) { - for (const key in GetMapRequest) { - if (Object.prototype.hasOwnProperty.call(GetMapRequest, key)) { - if (GetMapRequest[key] === value) { - return true; - } - } - } - return false; -} -export function GetMapRequestFromJSON(json) { - return GetMapRequestFromJSONTyped(json, false); -} -export function GetMapRequestFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -export function GetMapRequestToJSON(value) { - return value; -} -export function GetMapRequestToJSONTyped(value, ignoreDiscriminator) { - return value; -} diff --git a/typescript/dist/esm/models/WcsRequest.d.ts b/typescript/dist/esm/models/WcsRequest.d.ts new file mode 100644 index 00000000..9ad77c7b --- /dev/null +++ b/typescript/dist/esm/models/WcsRequest.d.ts @@ -0,0 +1,26 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const WcsRequest: { + readonly GetCapabilities: "GetCapabilities"; + readonly DescribeCoverage: "DescribeCoverage"; + readonly GetCoverage: "GetCoverage"; +}; +export type WcsRequest = typeof WcsRequest[keyof typeof WcsRequest]; +export declare function instanceOfWcsRequest(value: any): boolean; +export declare function WcsRequestFromJSON(json: any): WcsRequest; +export declare function WcsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WcsRequest; +export declare function WcsRequestToJSON(value?: WcsRequest | null): any; +export declare function WcsRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): WcsRequest; diff --git a/typescript/dist/esm/models/GetCoverageRequest.js b/typescript/dist/esm/models/WcsRequest.js similarity index 51% rename from typescript/dist/esm/models/GetCoverageRequest.js rename to typescript/dist/esm/models/WcsRequest.js index 5545c08f..6600c2d1 100644 --- a/typescript/dist/esm/models/GetCoverageRequest.js +++ b/typescript/dist/esm/models/WcsRequest.js @@ -15,28 +15,30 @@ * * @export */ -export const GetCoverageRequest = { +export const WcsRequest = { + GetCapabilities: 'GetCapabilities', + DescribeCoverage: 'DescribeCoverage', GetCoverage: 'GetCoverage' }; -export function instanceOfGetCoverageRequest(value) { - for (const key in GetCoverageRequest) { - if (Object.prototype.hasOwnProperty.call(GetCoverageRequest, key)) { - if (GetCoverageRequest[key] === value) { +export function instanceOfWcsRequest(value) { + for (const key in WcsRequest) { + if (Object.prototype.hasOwnProperty.call(WcsRequest, key)) { + if (WcsRequest[key] === value) { return true; } } } return false; } -export function GetCoverageRequestFromJSON(json) { - return GetCoverageRequestFromJSONTyped(json, false); +export function WcsRequestFromJSON(json) { + return WcsRequestFromJSONTyped(json, false); } -export function GetCoverageRequestFromJSONTyped(json, ignoreDiscriminator) { +export function WcsRequestFromJSONTyped(json, ignoreDiscriminator) { return json; } -export function GetCoverageRequestToJSON(value) { +export function WcsRequestToJSON(value) { return value; } -export function GetCoverageRequestToJSONTyped(value, ignoreDiscriminator) { +export function WcsRequestToJSONTyped(value, ignoreDiscriminator) { return value; } diff --git a/typescript/dist/esm/models/WfsRequest.d.ts b/typescript/dist/esm/models/WfsRequest.d.ts new file mode 100644 index 00000000..0bc7d4dc --- /dev/null +++ b/typescript/dist/esm/models/WfsRequest.d.ts @@ -0,0 +1,25 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const WfsRequest: { + readonly GetCapabilities: "GetCapabilities"; + readonly GetFeature: "GetFeature"; +}; +export type WfsRequest = typeof WfsRequest[keyof typeof WfsRequest]; +export declare function instanceOfWfsRequest(value: any): boolean; +export declare function WfsRequestFromJSON(json: any): WfsRequest; +export declare function WfsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WfsRequest; +export declare function WfsRequestToJSON(value?: WfsRequest | null): any; +export declare function WfsRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): WfsRequest; diff --git a/typescript/dist/esm/models/GetFeatureRequest.js b/typescript/dist/esm/models/WfsRequest.js similarity index 52% rename from typescript/dist/esm/models/GetFeatureRequest.js rename to typescript/dist/esm/models/WfsRequest.js index ec0c0012..4114e08a 100644 --- a/typescript/dist/esm/models/GetFeatureRequest.js +++ b/typescript/dist/esm/models/WfsRequest.js @@ -15,28 +15,29 @@ * * @export */ -export const GetFeatureRequest = { +export const WfsRequest = { + GetCapabilities: 'GetCapabilities', GetFeature: 'GetFeature' }; -export function instanceOfGetFeatureRequest(value) { - for (const key in GetFeatureRequest) { - if (Object.prototype.hasOwnProperty.call(GetFeatureRequest, key)) { - if (GetFeatureRequest[key] === value) { +export function instanceOfWfsRequest(value) { + for (const key in WfsRequest) { + if (Object.prototype.hasOwnProperty.call(WfsRequest, key)) { + if (WfsRequest[key] === value) { return true; } } } return false; } -export function GetFeatureRequestFromJSON(json) { - return GetFeatureRequestFromJSONTyped(json, false); +export function WfsRequestFromJSON(json) { + return WfsRequestFromJSONTyped(json, false); } -export function GetFeatureRequestFromJSONTyped(json, ignoreDiscriminator) { +export function WfsRequestFromJSONTyped(json, ignoreDiscriminator) { return json; } -export function GetFeatureRequestToJSON(value) { +export function WfsRequestToJSON(value) { return value; } -export function GetFeatureRequestToJSONTyped(value, ignoreDiscriminator) { +export function WfsRequestToJSONTyped(value, ignoreDiscriminator) { return value; } diff --git a/typescript/dist/esm/models/WmsRequest.d.ts b/typescript/dist/esm/models/WmsRequest.d.ts new file mode 100644 index 00000000..3e4d1ea1 --- /dev/null +++ b/typescript/dist/esm/models/WmsRequest.d.ts @@ -0,0 +1,28 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const WmsRequest: { + readonly GetCapabilities: "GetCapabilities"; + readonly GetMap: "GetMap"; + readonly GetFeatureInfo: "GetFeatureInfo"; + readonly GetStyles: "GetStyles"; + readonly GetLegendGraphic: "GetLegendGraphic"; +}; +export type WmsRequest = typeof WmsRequest[keyof typeof WmsRequest]; +export declare function instanceOfWmsRequest(value: any): boolean; +export declare function WmsRequestFromJSON(json: any): WmsRequest; +export declare function WmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WmsRequest; +export declare function WmsRequestToJSON(value?: WmsRequest | null): any; +export declare function WmsRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): WmsRequest; diff --git a/typescript/dist/esm/models/GetLegendGraphicRequest.js b/typescript/dist/esm/models/WmsRequest.js similarity index 50% rename from typescript/dist/esm/models/GetLegendGraphicRequest.js rename to typescript/dist/esm/models/WmsRequest.js index 7e9993fb..105d97fd 100644 --- a/typescript/dist/esm/models/GetLegendGraphicRequest.js +++ b/typescript/dist/esm/models/WmsRequest.js @@ -15,28 +15,32 @@ * * @export */ -export const GetLegendGraphicRequest = { +export const WmsRequest = { + GetCapabilities: 'GetCapabilities', + GetMap: 'GetMap', + GetFeatureInfo: 'GetFeatureInfo', + GetStyles: 'GetStyles', GetLegendGraphic: 'GetLegendGraphic' }; -export function instanceOfGetLegendGraphicRequest(value) { - for (const key in GetLegendGraphicRequest) { - if (Object.prototype.hasOwnProperty.call(GetLegendGraphicRequest, key)) { - if (GetLegendGraphicRequest[key] === value) { +export function instanceOfWmsRequest(value) { + for (const key in WmsRequest) { + if (Object.prototype.hasOwnProperty.call(WmsRequest, key)) { + if (WmsRequest[key] === value) { return true; } } } return false; } -export function GetLegendGraphicRequestFromJSON(json) { - return GetLegendGraphicRequestFromJSONTyped(json, false); +export function WmsRequestFromJSON(json) { + return WmsRequestFromJSONTyped(json, false); } -export function GetLegendGraphicRequestFromJSONTyped(json, ignoreDiscriminator) { +export function WmsRequestFromJSONTyped(json, ignoreDiscriminator) { return json; } -export function GetLegendGraphicRequestToJSON(value) { +export function WmsRequestToJSON(value) { return value; } -export function GetLegendGraphicRequestToJSONTyped(value, ignoreDiscriminator) { +export function WmsRequestToJSONTyped(value, ignoreDiscriminator) { return value; } diff --git a/typescript/dist/esm/models/WmsResponseFormat.d.ts b/typescript/dist/esm/models/WmsResponseFormat.d.ts new file mode 100644 index 00000000..997863c9 --- /dev/null +++ b/typescript/dist/esm/models/WmsResponseFormat.d.ts @@ -0,0 +1,25 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const WmsResponseFormat: { + readonly TextXml: "text/xml"; + readonly ImagePng: "image/png"; +}; +export type WmsResponseFormat = typeof WmsResponseFormat[keyof typeof WmsResponseFormat]; +export declare function instanceOfWmsResponseFormat(value: any): boolean; +export declare function WmsResponseFormatFromJSON(json: any): WmsResponseFormat; +export declare function WmsResponseFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): WmsResponseFormat; +export declare function WmsResponseFormatToJSON(value?: WmsResponseFormat | null): any; +export declare function WmsResponseFormatToJSONTyped(value: any, ignoreDiscriminator: boolean): WmsResponseFormat; diff --git a/typescript/dist/esm/models/GetMapFormat.js b/typescript/dist/esm/models/WmsResponseFormat.js similarity index 50% rename from typescript/dist/esm/models/GetMapFormat.js rename to typescript/dist/esm/models/WmsResponseFormat.js index 433734ba..2d112f02 100644 --- a/typescript/dist/esm/models/GetMapFormat.js +++ b/typescript/dist/esm/models/WmsResponseFormat.js @@ -15,28 +15,29 @@ * * @export */ -export const GetMapFormat = { +export const WmsResponseFormat = { + TextXml: 'text/xml', ImagePng: 'image/png' }; -export function instanceOfGetMapFormat(value) { - for (const key in GetMapFormat) { - if (Object.prototype.hasOwnProperty.call(GetMapFormat, key)) { - if (GetMapFormat[key] === value) { +export function instanceOfWmsResponseFormat(value) { + for (const key in WmsResponseFormat) { + if (Object.prototype.hasOwnProperty.call(WmsResponseFormat, key)) { + if (WmsResponseFormat[key] === value) { return true; } } } return false; } -export function GetMapFormatFromJSON(json) { - return GetMapFormatFromJSONTyped(json, false); +export function WmsResponseFormatFromJSON(json) { + return WmsResponseFormatFromJSONTyped(json, false); } -export function GetMapFormatFromJSONTyped(json, ignoreDiscriminator) { +export function WmsResponseFormatFromJSONTyped(json, ignoreDiscriminator) { return json; } -export function GetMapFormatToJSON(value) { +export function WmsResponseFormatToJSON(value) { return value; } -export function GetMapFormatToJSONTyped(value, ignoreDiscriminator) { +export function WmsResponseFormatToJSONTyped(value, ignoreDiscriminator) { return value; } diff --git a/typescript/dist/esm/models/index.d.ts b/typescript/dist/esm/models/index.d.ts index a87e8627..de89bf9f 100644 --- a/typescript/dist/esm/models/index.d.ts +++ b/typescript/dist/esm/models/index.d.ts @@ -39,7 +39,6 @@ export * from './DatasetNameResponse'; export * from './DatasetResource'; export * from './DerivedColor'; export * from './DerivedNumber'; -export * from './DescribeCoverageRequest'; export * from './EbvPortalDataProviderDefinition'; export * from './EdrDataProviderDefinition'; export * from './EdrVectorSpec'; @@ -62,15 +61,8 @@ export * from './GdalMultiBand'; export * from './GdalSourceTimePlaceholder'; export * from './GeoJson'; export * from './GeoTransform'; -export * from './GetCapabilitiesFormat'; -export * from './GetCapabilitiesRequest'; export * from './GetCoverageFormat'; -export * from './GetCoverageRequest'; -export * from './GetFeatureRequest'; -export * from './GetLegendGraphicRequest'; export * from './GetMapExceptionFormat'; -export * from './GetMapFormat'; -export * from './GetMapRequest'; export * from './GfbioAbcdDataProviderDefinition'; export * from './GfbioCollectionsDataProviderDefinition'; export * from './GridBoundingBox2D'; @@ -240,11 +232,15 @@ export * from './VectorResultDescriptor'; export * from './Volume'; export * from './VolumeFileLayersResponse'; export * from './WcsBoundingbox'; +export * from './WcsRequest'; export * from './WcsService'; export * from './WcsVersion'; +export * from './WfsRequest'; export * from './WfsService'; export * from './WfsVersion'; export * from './WildliveDataConnectorDefinition'; +export * from './WmsRequest'; +export * from './WmsResponseFormat'; export * from './WmsService'; export * from './WmsVersion'; export * from './Workflow'; diff --git a/typescript/dist/esm/models/index.js b/typescript/dist/esm/models/index.js index fb12b954..81316b39 100644 --- a/typescript/dist/esm/models/index.js +++ b/typescript/dist/esm/models/index.js @@ -41,7 +41,6 @@ export * from './DatasetNameResponse'; export * from './DatasetResource'; export * from './DerivedColor'; export * from './DerivedNumber'; -export * from './DescribeCoverageRequest'; export * from './EbvPortalDataProviderDefinition'; export * from './EdrDataProviderDefinition'; export * from './EdrVectorSpec'; @@ -64,15 +63,8 @@ export * from './GdalMultiBand'; export * from './GdalSourceTimePlaceholder'; export * from './GeoJson'; export * from './GeoTransform'; -export * from './GetCapabilitiesFormat'; -export * from './GetCapabilitiesRequest'; export * from './GetCoverageFormat'; -export * from './GetCoverageRequest'; -export * from './GetFeatureRequest'; -export * from './GetLegendGraphicRequest'; export * from './GetMapExceptionFormat'; -export * from './GetMapFormat'; -export * from './GetMapRequest'; export * from './GfbioAbcdDataProviderDefinition'; export * from './GfbioCollectionsDataProviderDefinition'; export * from './GridBoundingBox2D'; @@ -242,11 +234,15 @@ export * from './VectorResultDescriptor'; export * from './Volume'; export * from './VolumeFileLayersResponse'; export * from './WcsBoundingbox'; +export * from './WcsRequest'; export * from './WcsService'; export * from './WcsVersion'; +export * from './WfsRequest'; export * from './WfsService'; export * from './WfsVersion'; export * from './WildliveDataConnectorDefinition'; +export * from './WmsRequest'; +export * from './WmsResponseFormat'; export * from './WmsService'; export * from './WmsVersion'; export * from './Workflow'; diff --git a/typescript/dist/models/DescribeCoverageRequest.d.ts b/typescript/dist/models/DescribeCoverageRequest.d.ts deleted file mode 100644 index 4e593d5e..00000000 --- a/typescript/dist/models/DescribeCoverageRequest.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export declare const DescribeCoverageRequest: { - readonly DescribeCoverage: "DescribeCoverage"; -}; -export type DescribeCoverageRequest = typeof DescribeCoverageRequest[keyof typeof DescribeCoverageRequest]; -export declare function instanceOfDescribeCoverageRequest(value: any): boolean; -export declare function DescribeCoverageRequestFromJSON(json: any): DescribeCoverageRequest; -export declare function DescribeCoverageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DescribeCoverageRequest; -export declare function DescribeCoverageRequestToJSON(value?: DescribeCoverageRequest | null): any; -export declare function DescribeCoverageRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): DescribeCoverageRequest; diff --git a/typescript/dist/models/DescribeCoverageRequest.js b/typescript/dist/models/DescribeCoverageRequest.js deleted file mode 100644 index 298f1fb2..00000000 --- a/typescript/dist/models/DescribeCoverageRequest.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeCoverageRequest = void 0; -exports.instanceOfDescribeCoverageRequest = instanceOfDescribeCoverageRequest; -exports.DescribeCoverageRequestFromJSON = DescribeCoverageRequestFromJSON; -exports.DescribeCoverageRequestFromJSONTyped = DescribeCoverageRequestFromJSONTyped; -exports.DescribeCoverageRequestToJSON = DescribeCoverageRequestToJSON; -exports.DescribeCoverageRequestToJSONTyped = DescribeCoverageRequestToJSONTyped; -/** - * - * @export - */ -exports.DescribeCoverageRequest = { - DescribeCoverage: 'DescribeCoverage' -}; -function instanceOfDescribeCoverageRequest(value) { - for (const key in exports.DescribeCoverageRequest) { - if (Object.prototype.hasOwnProperty.call(exports.DescribeCoverageRequest, key)) { - if (exports.DescribeCoverageRequest[key] === value) { - return true; - } - } - } - return false; -} -function DescribeCoverageRequestFromJSON(json) { - return DescribeCoverageRequestFromJSONTyped(json, false); -} -function DescribeCoverageRequestFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function DescribeCoverageRequestToJSON(value) { - return value; -} -function DescribeCoverageRequestToJSONTyped(value, ignoreDiscriminator) { - return value; -} diff --git a/typescript/dist/models/GetCapabilitiesFormat.d.ts b/typescript/dist/models/GetCapabilitiesFormat.d.ts deleted file mode 100644 index 9a4034dc..00000000 --- a/typescript/dist/models/GetCapabilitiesFormat.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export declare const GetCapabilitiesFormat: { - readonly TextXml: "text/xml"; -}; -export type GetCapabilitiesFormat = typeof GetCapabilitiesFormat[keyof typeof GetCapabilitiesFormat]; -export declare function instanceOfGetCapabilitiesFormat(value: any): boolean; -export declare function GetCapabilitiesFormatFromJSON(json: any): GetCapabilitiesFormat; -export declare function GetCapabilitiesFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCapabilitiesFormat; -export declare function GetCapabilitiesFormatToJSON(value?: GetCapabilitiesFormat | null): any; -export declare function GetCapabilitiesFormatToJSONTyped(value: any, ignoreDiscriminator: boolean): GetCapabilitiesFormat; diff --git a/typescript/dist/models/GetCapabilitiesFormat.js b/typescript/dist/models/GetCapabilitiesFormat.js deleted file mode 100644 index a6dee797..00000000 --- a/typescript/dist/models/GetCapabilitiesFormat.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetCapabilitiesFormat = void 0; -exports.instanceOfGetCapabilitiesFormat = instanceOfGetCapabilitiesFormat; -exports.GetCapabilitiesFormatFromJSON = GetCapabilitiesFormatFromJSON; -exports.GetCapabilitiesFormatFromJSONTyped = GetCapabilitiesFormatFromJSONTyped; -exports.GetCapabilitiesFormatToJSON = GetCapabilitiesFormatToJSON; -exports.GetCapabilitiesFormatToJSONTyped = GetCapabilitiesFormatToJSONTyped; -/** - * - * @export - */ -exports.GetCapabilitiesFormat = { - TextXml: 'text/xml' -}; -function instanceOfGetCapabilitiesFormat(value) { - for (const key in exports.GetCapabilitiesFormat) { - if (Object.prototype.hasOwnProperty.call(exports.GetCapabilitiesFormat, key)) { - if (exports.GetCapabilitiesFormat[key] === value) { - return true; - } - } - } - return false; -} -function GetCapabilitiesFormatFromJSON(json) { - return GetCapabilitiesFormatFromJSONTyped(json, false); -} -function GetCapabilitiesFormatFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function GetCapabilitiesFormatToJSON(value) { - return value; -} -function GetCapabilitiesFormatToJSONTyped(value, ignoreDiscriminator) { - return value; -} diff --git a/typescript/dist/models/GetCapabilitiesRequest.d.ts b/typescript/dist/models/GetCapabilitiesRequest.d.ts deleted file mode 100644 index c1309d45..00000000 --- a/typescript/dist/models/GetCapabilitiesRequest.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export declare const GetCapabilitiesRequest: { - readonly GetCapabilities: "GetCapabilities"; -}; -export type GetCapabilitiesRequest = typeof GetCapabilitiesRequest[keyof typeof GetCapabilitiesRequest]; -export declare function instanceOfGetCapabilitiesRequest(value: any): boolean; -export declare function GetCapabilitiesRequestFromJSON(json: any): GetCapabilitiesRequest; -export declare function GetCapabilitiesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCapabilitiesRequest; -export declare function GetCapabilitiesRequestToJSON(value?: GetCapabilitiesRequest | null): any; -export declare function GetCapabilitiesRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): GetCapabilitiesRequest; diff --git a/typescript/dist/models/GetCapabilitiesRequest.js b/typescript/dist/models/GetCapabilitiesRequest.js deleted file mode 100644 index 86140489..00000000 --- a/typescript/dist/models/GetCapabilitiesRequest.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetCapabilitiesRequest = void 0; -exports.instanceOfGetCapabilitiesRequest = instanceOfGetCapabilitiesRequest; -exports.GetCapabilitiesRequestFromJSON = GetCapabilitiesRequestFromJSON; -exports.GetCapabilitiesRequestFromJSONTyped = GetCapabilitiesRequestFromJSONTyped; -exports.GetCapabilitiesRequestToJSON = GetCapabilitiesRequestToJSON; -exports.GetCapabilitiesRequestToJSONTyped = GetCapabilitiesRequestToJSONTyped; -/** - * - * @export - */ -exports.GetCapabilitiesRequest = { - GetCapabilities: 'GetCapabilities' -}; -function instanceOfGetCapabilitiesRequest(value) { - for (const key in exports.GetCapabilitiesRequest) { - if (Object.prototype.hasOwnProperty.call(exports.GetCapabilitiesRequest, key)) { - if (exports.GetCapabilitiesRequest[key] === value) { - return true; - } - } - } - return false; -} -function GetCapabilitiesRequestFromJSON(json) { - return GetCapabilitiesRequestFromJSONTyped(json, false); -} -function GetCapabilitiesRequestFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function GetCapabilitiesRequestToJSON(value) { - return value; -} -function GetCapabilitiesRequestToJSONTyped(value, ignoreDiscriminator) { - return value; -} diff --git a/typescript/dist/models/GetCoverageRequest.d.ts b/typescript/dist/models/GetCoverageRequest.d.ts deleted file mode 100644 index 66a5e4f4..00000000 --- a/typescript/dist/models/GetCoverageRequest.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export declare const GetCoverageRequest: { - readonly GetCoverage: "GetCoverage"; -}; -export type GetCoverageRequest = typeof GetCoverageRequest[keyof typeof GetCoverageRequest]; -export declare function instanceOfGetCoverageRequest(value: any): boolean; -export declare function GetCoverageRequestFromJSON(json: any): GetCoverageRequest; -export declare function GetCoverageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCoverageRequest; -export declare function GetCoverageRequestToJSON(value?: GetCoverageRequest | null): any; -export declare function GetCoverageRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): GetCoverageRequest; diff --git a/typescript/dist/models/GetCoverageRequest.js b/typescript/dist/models/GetCoverageRequest.js deleted file mode 100644 index ee1cab10..00000000 --- a/typescript/dist/models/GetCoverageRequest.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetCoverageRequest = void 0; -exports.instanceOfGetCoverageRequest = instanceOfGetCoverageRequest; -exports.GetCoverageRequestFromJSON = GetCoverageRequestFromJSON; -exports.GetCoverageRequestFromJSONTyped = GetCoverageRequestFromJSONTyped; -exports.GetCoverageRequestToJSON = GetCoverageRequestToJSON; -exports.GetCoverageRequestToJSONTyped = GetCoverageRequestToJSONTyped; -/** - * - * @export - */ -exports.GetCoverageRequest = { - GetCoverage: 'GetCoverage' -}; -function instanceOfGetCoverageRequest(value) { - for (const key in exports.GetCoverageRequest) { - if (Object.prototype.hasOwnProperty.call(exports.GetCoverageRequest, key)) { - if (exports.GetCoverageRequest[key] === value) { - return true; - } - } - } - return false; -} -function GetCoverageRequestFromJSON(json) { - return GetCoverageRequestFromJSONTyped(json, false); -} -function GetCoverageRequestFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function GetCoverageRequestToJSON(value) { - return value; -} -function GetCoverageRequestToJSONTyped(value, ignoreDiscriminator) { - return value; -} diff --git a/typescript/dist/models/GetFeatureRequest.d.ts b/typescript/dist/models/GetFeatureRequest.d.ts deleted file mode 100644 index ed0b6064..00000000 --- a/typescript/dist/models/GetFeatureRequest.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export declare const GetFeatureRequest: { - readonly GetFeature: "GetFeature"; -}; -export type GetFeatureRequest = typeof GetFeatureRequest[keyof typeof GetFeatureRequest]; -export declare function instanceOfGetFeatureRequest(value: any): boolean; -export declare function GetFeatureRequestFromJSON(json: any): GetFeatureRequest; -export declare function GetFeatureRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFeatureRequest; -export declare function GetFeatureRequestToJSON(value?: GetFeatureRequest | null): any; -export declare function GetFeatureRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): GetFeatureRequest; diff --git a/typescript/dist/models/GetFeatureRequest.js b/typescript/dist/models/GetFeatureRequest.js deleted file mode 100644 index 9ea5649e..00000000 --- a/typescript/dist/models/GetFeatureRequest.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetFeatureRequest = void 0; -exports.instanceOfGetFeatureRequest = instanceOfGetFeatureRequest; -exports.GetFeatureRequestFromJSON = GetFeatureRequestFromJSON; -exports.GetFeatureRequestFromJSONTyped = GetFeatureRequestFromJSONTyped; -exports.GetFeatureRequestToJSON = GetFeatureRequestToJSON; -exports.GetFeatureRequestToJSONTyped = GetFeatureRequestToJSONTyped; -/** - * - * @export - */ -exports.GetFeatureRequest = { - GetFeature: 'GetFeature' -}; -function instanceOfGetFeatureRequest(value) { - for (const key in exports.GetFeatureRequest) { - if (Object.prototype.hasOwnProperty.call(exports.GetFeatureRequest, key)) { - if (exports.GetFeatureRequest[key] === value) { - return true; - } - } - } - return false; -} -function GetFeatureRequestFromJSON(json) { - return GetFeatureRequestFromJSONTyped(json, false); -} -function GetFeatureRequestFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function GetFeatureRequestToJSON(value) { - return value; -} -function GetFeatureRequestToJSONTyped(value, ignoreDiscriminator) { - return value; -} diff --git a/typescript/dist/models/GetLegendGraphicRequest.d.ts b/typescript/dist/models/GetLegendGraphicRequest.d.ts deleted file mode 100644 index d05f4a02..00000000 --- a/typescript/dist/models/GetLegendGraphicRequest.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export declare const GetLegendGraphicRequest: { - readonly GetLegendGraphic: "GetLegendGraphic"; -}; -export type GetLegendGraphicRequest = typeof GetLegendGraphicRequest[keyof typeof GetLegendGraphicRequest]; -export declare function instanceOfGetLegendGraphicRequest(value: any): boolean; -export declare function GetLegendGraphicRequestFromJSON(json: any): GetLegendGraphicRequest; -export declare function GetLegendGraphicRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetLegendGraphicRequest; -export declare function GetLegendGraphicRequestToJSON(value?: GetLegendGraphicRequest | null): any; -export declare function GetLegendGraphicRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): GetLegendGraphicRequest; diff --git a/typescript/dist/models/GetLegendGraphicRequest.js b/typescript/dist/models/GetLegendGraphicRequest.js deleted file mode 100644 index fc387813..00000000 --- a/typescript/dist/models/GetLegendGraphicRequest.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetLegendGraphicRequest = void 0; -exports.instanceOfGetLegendGraphicRequest = instanceOfGetLegendGraphicRequest; -exports.GetLegendGraphicRequestFromJSON = GetLegendGraphicRequestFromJSON; -exports.GetLegendGraphicRequestFromJSONTyped = GetLegendGraphicRequestFromJSONTyped; -exports.GetLegendGraphicRequestToJSON = GetLegendGraphicRequestToJSON; -exports.GetLegendGraphicRequestToJSONTyped = GetLegendGraphicRequestToJSONTyped; -/** - * - * @export - */ -exports.GetLegendGraphicRequest = { - GetLegendGraphic: 'GetLegendGraphic' -}; -function instanceOfGetLegendGraphicRequest(value) { - for (const key in exports.GetLegendGraphicRequest) { - if (Object.prototype.hasOwnProperty.call(exports.GetLegendGraphicRequest, key)) { - if (exports.GetLegendGraphicRequest[key] === value) { - return true; - } - } - } - return false; -} -function GetLegendGraphicRequestFromJSON(json) { - return GetLegendGraphicRequestFromJSONTyped(json, false); -} -function GetLegendGraphicRequestFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function GetLegendGraphicRequestToJSON(value) { - return value; -} -function GetLegendGraphicRequestToJSONTyped(value, ignoreDiscriminator) { - return value; -} diff --git a/typescript/dist/models/GetMapFormat.d.ts b/typescript/dist/models/GetMapFormat.d.ts deleted file mode 100644 index 9d8bec75..00000000 --- a/typescript/dist/models/GetMapFormat.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export declare const GetMapFormat: { - readonly ImagePng: "image/png"; -}; -export type GetMapFormat = typeof GetMapFormat[keyof typeof GetMapFormat]; -export declare function instanceOfGetMapFormat(value: any): boolean; -export declare function GetMapFormatFromJSON(json: any): GetMapFormat; -export declare function GetMapFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetMapFormat; -export declare function GetMapFormatToJSON(value?: GetMapFormat | null): any; -export declare function GetMapFormatToJSONTyped(value: any, ignoreDiscriminator: boolean): GetMapFormat; diff --git a/typescript/dist/models/GetMapFormat.js b/typescript/dist/models/GetMapFormat.js deleted file mode 100644 index 8e33a5c2..00000000 --- a/typescript/dist/models/GetMapFormat.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetMapFormat = void 0; -exports.instanceOfGetMapFormat = instanceOfGetMapFormat; -exports.GetMapFormatFromJSON = GetMapFormatFromJSON; -exports.GetMapFormatFromJSONTyped = GetMapFormatFromJSONTyped; -exports.GetMapFormatToJSON = GetMapFormatToJSON; -exports.GetMapFormatToJSONTyped = GetMapFormatToJSONTyped; -/** - * - * @export - */ -exports.GetMapFormat = { - ImagePng: 'image/png' -}; -function instanceOfGetMapFormat(value) { - for (const key in exports.GetMapFormat) { - if (Object.prototype.hasOwnProperty.call(exports.GetMapFormat, key)) { - if (exports.GetMapFormat[key] === value) { - return true; - } - } - } - return false; -} -function GetMapFormatFromJSON(json) { - return GetMapFormatFromJSONTyped(json, false); -} -function GetMapFormatFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function GetMapFormatToJSON(value) { - return value; -} -function GetMapFormatToJSONTyped(value, ignoreDiscriminator) { - return value; -} diff --git a/typescript/dist/models/GetMapRequest.d.ts b/typescript/dist/models/GetMapRequest.d.ts deleted file mode 100644 index 04c01ac6..00000000 --- a/typescript/dist/models/GetMapRequest.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - */ -export declare const GetMapRequest: { - readonly GetMap: "GetMap"; -}; -export type GetMapRequest = typeof GetMapRequest[keyof typeof GetMapRequest]; -export declare function instanceOfGetMapRequest(value: any): boolean; -export declare function GetMapRequestFromJSON(json: any): GetMapRequest; -export declare function GetMapRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetMapRequest; -export declare function GetMapRequestToJSON(value?: GetMapRequest | null): any; -export declare function GetMapRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): GetMapRequest; diff --git a/typescript/dist/models/GetMapRequest.js b/typescript/dist/models/GetMapRequest.js deleted file mode 100644 index c2fc2999..00000000 --- a/typescript/dist/models/GetMapRequest.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetMapRequest = void 0; -exports.instanceOfGetMapRequest = instanceOfGetMapRequest; -exports.GetMapRequestFromJSON = GetMapRequestFromJSON; -exports.GetMapRequestFromJSONTyped = GetMapRequestFromJSONTyped; -exports.GetMapRequestToJSON = GetMapRequestToJSON; -exports.GetMapRequestToJSONTyped = GetMapRequestToJSONTyped; -/** - * - * @export - */ -exports.GetMapRequest = { - GetMap: 'GetMap' -}; -function instanceOfGetMapRequest(value) { - for (const key in exports.GetMapRequest) { - if (Object.prototype.hasOwnProperty.call(exports.GetMapRequest, key)) { - if (exports.GetMapRequest[key] === value) { - return true; - } - } - } - return false; -} -function GetMapRequestFromJSON(json) { - return GetMapRequestFromJSONTyped(json, false); -} -function GetMapRequestFromJSONTyped(json, ignoreDiscriminator) { - return json; -} -function GetMapRequestToJSON(value) { - return value; -} -function GetMapRequestToJSONTyped(value, ignoreDiscriminator) { - return value; -} diff --git a/typescript/dist/models/WcsRequest.d.ts b/typescript/dist/models/WcsRequest.d.ts new file mode 100644 index 00000000..9ad77c7b --- /dev/null +++ b/typescript/dist/models/WcsRequest.d.ts @@ -0,0 +1,26 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const WcsRequest: { + readonly GetCapabilities: "GetCapabilities"; + readonly DescribeCoverage: "DescribeCoverage"; + readonly GetCoverage: "GetCoverage"; +}; +export type WcsRequest = typeof WcsRequest[keyof typeof WcsRequest]; +export declare function instanceOfWcsRequest(value: any): boolean; +export declare function WcsRequestFromJSON(json: any): WcsRequest; +export declare function WcsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WcsRequest; +export declare function WcsRequestToJSON(value?: WcsRequest | null): any; +export declare function WcsRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): WcsRequest; diff --git a/typescript/dist/models/WcsRequest.js b/typescript/dist/models/WcsRequest.js new file mode 100644 index 00000000..45d3240c --- /dev/null +++ b/typescript/dist/models/WcsRequest.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WcsRequest = void 0; +exports.instanceOfWcsRequest = instanceOfWcsRequest; +exports.WcsRequestFromJSON = WcsRequestFromJSON; +exports.WcsRequestFromJSONTyped = WcsRequestFromJSONTyped; +exports.WcsRequestToJSON = WcsRequestToJSON; +exports.WcsRequestToJSONTyped = WcsRequestToJSONTyped; +/** + * + * @export + */ +exports.WcsRequest = { + GetCapabilities: 'GetCapabilities', + DescribeCoverage: 'DescribeCoverage', + GetCoverage: 'GetCoverage' +}; +function instanceOfWcsRequest(value) { + for (const key in exports.WcsRequest) { + if (Object.prototype.hasOwnProperty.call(exports.WcsRequest, key)) { + if (exports.WcsRequest[key] === value) { + return true; + } + } + } + return false; +} +function WcsRequestFromJSON(json) { + return WcsRequestFromJSONTyped(json, false); +} +function WcsRequestFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function WcsRequestToJSON(value) { + return value; +} +function WcsRequestToJSONTyped(value, ignoreDiscriminator) { + return value; +} diff --git a/typescript/dist/models/WfsRequest.d.ts b/typescript/dist/models/WfsRequest.d.ts new file mode 100644 index 00000000..0bc7d4dc --- /dev/null +++ b/typescript/dist/models/WfsRequest.d.ts @@ -0,0 +1,25 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const WfsRequest: { + readonly GetCapabilities: "GetCapabilities"; + readonly GetFeature: "GetFeature"; +}; +export type WfsRequest = typeof WfsRequest[keyof typeof WfsRequest]; +export declare function instanceOfWfsRequest(value: any): boolean; +export declare function WfsRequestFromJSON(json: any): WfsRequest; +export declare function WfsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WfsRequest; +export declare function WfsRequestToJSON(value?: WfsRequest | null): any; +export declare function WfsRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): WfsRequest; diff --git a/typescript/dist/models/WfsRequest.js b/typescript/dist/models/WfsRequest.js new file mode 100644 index 00000000..3571fb1b --- /dev/null +++ b/typescript/dist/models/WfsRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WfsRequest = void 0; +exports.instanceOfWfsRequest = instanceOfWfsRequest; +exports.WfsRequestFromJSON = WfsRequestFromJSON; +exports.WfsRequestFromJSONTyped = WfsRequestFromJSONTyped; +exports.WfsRequestToJSON = WfsRequestToJSON; +exports.WfsRequestToJSONTyped = WfsRequestToJSONTyped; +/** + * + * @export + */ +exports.WfsRequest = { + GetCapabilities: 'GetCapabilities', + GetFeature: 'GetFeature' +}; +function instanceOfWfsRequest(value) { + for (const key in exports.WfsRequest) { + if (Object.prototype.hasOwnProperty.call(exports.WfsRequest, key)) { + if (exports.WfsRequest[key] === value) { + return true; + } + } + } + return false; +} +function WfsRequestFromJSON(json) { + return WfsRequestFromJSONTyped(json, false); +} +function WfsRequestFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function WfsRequestToJSON(value) { + return value; +} +function WfsRequestToJSONTyped(value, ignoreDiscriminator) { + return value; +} diff --git a/typescript/dist/models/WmsRequest.d.ts b/typescript/dist/models/WmsRequest.d.ts new file mode 100644 index 00000000..3e4d1ea1 --- /dev/null +++ b/typescript/dist/models/WmsRequest.d.ts @@ -0,0 +1,28 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const WmsRequest: { + readonly GetCapabilities: "GetCapabilities"; + readonly GetMap: "GetMap"; + readonly GetFeatureInfo: "GetFeatureInfo"; + readonly GetStyles: "GetStyles"; + readonly GetLegendGraphic: "GetLegendGraphic"; +}; +export type WmsRequest = typeof WmsRequest[keyof typeof WmsRequest]; +export declare function instanceOfWmsRequest(value: any): boolean; +export declare function WmsRequestFromJSON(json: any): WmsRequest; +export declare function WmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WmsRequest; +export declare function WmsRequestToJSON(value?: WmsRequest | null): any; +export declare function WmsRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): WmsRequest; diff --git a/typescript/dist/models/WmsRequest.js b/typescript/dist/models/WmsRequest.js new file mode 100644 index 00000000..ffaa97ba --- /dev/null +++ b/typescript/dist/models/WmsRequest.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WmsRequest = void 0; +exports.instanceOfWmsRequest = instanceOfWmsRequest; +exports.WmsRequestFromJSON = WmsRequestFromJSON; +exports.WmsRequestFromJSONTyped = WmsRequestFromJSONTyped; +exports.WmsRequestToJSON = WmsRequestToJSON; +exports.WmsRequestToJSONTyped = WmsRequestToJSONTyped; +/** + * + * @export + */ +exports.WmsRequest = { + GetCapabilities: 'GetCapabilities', + GetMap: 'GetMap', + GetFeatureInfo: 'GetFeatureInfo', + GetStyles: 'GetStyles', + GetLegendGraphic: 'GetLegendGraphic' +}; +function instanceOfWmsRequest(value) { + for (const key in exports.WmsRequest) { + if (Object.prototype.hasOwnProperty.call(exports.WmsRequest, key)) { + if (exports.WmsRequest[key] === value) { + return true; + } + } + } + return false; +} +function WmsRequestFromJSON(json) { + return WmsRequestFromJSONTyped(json, false); +} +function WmsRequestFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function WmsRequestToJSON(value) { + return value; +} +function WmsRequestToJSONTyped(value, ignoreDiscriminator) { + return value; +} diff --git a/typescript/dist/models/WmsResponseFormat.d.ts b/typescript/dist/models/WmsResponseFormat.d.ts new file mode 100644 index 00000000..997863c9 --- /dev/null +++ b/typescript/dist/models/WmsResponseFormat.d.ts @@ -0,0 +1,25 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const WmsResponseFormat: { + readonly TextXml: "text/xml"; + readonly ImagePng: "image/png"; +}; +export type WmsResponseFormat = typeof WmsResponseFormat[keyof typeof WmsResponseFormat]; +export declare function instanceOfWmsResponseFormat(value: any): boolean; +export declare function WmsResponseFormatFromJSON(json: any): WmsResponseFormat; +export declare function WmsResponseFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): WmsResponseFormat; +export declare function WmsResponseFormatToJSON(value?: WmsResponseFormat | null): any; +export declare function WmsResponseFormatToJSONTyped(value: any, ignoreDiscriminator: boolean): WmsResponseFormat; diff --git a/typescript/dist/models/WmsResponseFormat.js b/typescript/dist/models/WmsResponseFormat.js new file mode 100644 index 00000000..931d289d --- /dev/null +++ b/typescript/dist/models/WmsResponseFormat.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WmsResponseFormat = void 0; +exports.instanceOfWmsResponseFormat = instanceOfWmsResponseFormat; +exports.WmsResponseFormatFromJSON = WmsResponseFormatFromJSON; +exports.WmsResponseFormatFromJSONTyped = WmsResponseFormatFromJSONTyped; +exports.WmsResponseFormatToJSON = WmsResponseFormatToJSON; +exports.WmsResponseFormatToJSONTyped = WmsResponseFormatToJSONTyped; +/** + * + * @export + */ +exports.WmsResponseFormat = { + TextXml: 'text/xml', + ImagePng: 'image/png' +}; +function instanceOfWmsResponseFormat(value) { + for (const key in exports.WmsResponseFormat) { + if (Object.prototype.hasOwnProperty.call(exports.WmsResponseFormat, key)) { + if (exports.WmsResponseFormat[key] === value) { + return true; + } + } + } + return false; +} +function WmsResponseFormatFromJSON(json) { + return WmsResponseFormatFromJSONTyped(json, false); +} +function WmsResponseFormatFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function WmsResponseFormatToJSON(value) { + return value; +} +function WmsResponseFormatToJSONTyped(value, ignoreDiscriminator) { + return value; +} diff --git a/typescript/dist/models/index.d.ts b/typescript/dist/models/index.d.ts index a87e8627..de89bf9f 100644 --- a/typescript/dist/models/index.d.ts +++ b/typescript/dist/models/index.d.ts @@ -39,7 +39,6 @@ export * from './DatasetNameResponse'; export * from './DatasetResource'; export * from './DerivedColor'; export * from './DerivedNumber'; -export * from './DescribeCoverageRequest'; export * from './EbvPortalDataProviderDefinition'; export * from './EdrDataProviderDefinition'; export * from './EdrVectorSpec'; @@ -62,15 +61,8 @@ export * from './GdalMultiBand'; export * from './GdalSourceTimePlaceholder'; export * from './GeoJson'; export * from './GeoTransform'; -export * from './GetCapabilitiesFormat'; -export * from './GetCapabilitiesRequest'; export * from './GetCoverageFormat'; -export * from './GetCoverageRequest'; -export * from './GetFeatureRequest'; -export * from './GetLegendGraphicRequest'; export * from './GetMapExceptionFormat'; -export * from './GetMapFormat'; -export * from './GetMapRequest'; export * from './GfbioAbcdDataProviderDefinition'; export * from './GfbioCollectionsDataProviderDefinition'; export * from './GridBoundingBox2D'; @@ -240,11 +232,15 @@ export * from './VectorResultDescriptor'; export * from './Volume'; export * from './VolumeFileLayersResponse'; export * from './WcsBoundingbox'; +export * from './WcsRequest'; export * from './WcsService'; export * from './WcsVersion'; +export * from './WfsRequest'; export * from './WfsService'; export * from './WfsVersion'; export * from './WildliveDataConnectorDefinition'; +export * from './WmsRequest'; +export * from './WmsResponseFormat'; export * from './WmsService'; export * from './WmsVersion'; export * from './Workflow'; diff --git a/typescript/dist/models/index.js b/typescript/dist/models/index.js index d057d242..b733c323 100644 --- a/typescript/dist/models/index.js +++ b/typescript/dist/models/index.js @@ -57,7 +57,6 @@ __exportStar(require("./DatasetNameResponse"), exports); __exportStar(require("./DatasetResource"), exports); __exportStar(require("./DerivedColor"), exports); __exportStar(require("./DerivedNumber"), exports); -__exportStar(require("./DescribeCoverageRequest"), exports); __exportStar(require("./EbvPortalDataProviderDefinition"), exports); __exportStar(require("./EdrDataProviderDefinition"), exports); __exportStar(require("./EdrVectorSpec"), exports); @@ -80,15 +79,8 @@ __exportStar(require("./GdalMultiBand"), exports); __exportStar(require("./GdalSourceTimePlaceholder"), exports); __exportStar(require("./GeoJson"), exports); __exportStar(require("./GeoTransform"), exports); -__exportStar(require("./GetCapabilitiesFormat"), exports); -__exportStar(require("./GetCapabilitiesRequest"), exports); __exportStar(require("./GetCoverageFormat"), exports); -__exportStar(require("./GetCoverageRequest"), exports); -__exportStar(require("./GetFeatureRequest"), exports); -__exportStar(require("./GetLegendGraphicRequest"), exports); __exportStar(require("./GetMapExceptionFormat"), exports); -__exportStar(require("./GetMapFormat"), exports); -__exportStar(require("./GetMapRequest"), exports); __exportStar(require("./GfbioAbcdDataProviderDefinition"), exports); __exportStar(require("./GfbioCollectionsDataProviderDefinition"), exports); __exportStar(require("./GridBoundingBox2D"), exports); @@ -258,11 +250,15 @@ __exportStar(require("./VectorResultDescriptor"), exports); __exportStar(require("./Volume"), exports); __exportStar(require("./VolumeFileLayersResponse"), exports); __exportStar(require("./WcsBoundingbox"), exports); +__exportStar(require("./WcsRequest"), exports); __exportStar(require("./WcsService"), exports); __exportStar(require("./WcsVersion"), exports); +__exportStar(require("./WfsRequest"), exports); __exportStar(require("./WfsService"), exports); __exportStar(require("./WfsVersion"), exports); __exportStar(require("./WildliveDataConnectorDefinition"), exports); +__exportStar(require("./WmsRequest"), exports); +__exportStar(require("./WmsResponseFormat"), exports); __exportStar(require("./WmsService"), exports); __exportStar(require("./WmsVersion"), exports); __exportStar(require("./Workflow"), exports); diff --git a/typescript/docs/OGCApi.md b/typescript/docs/OGCApi.md new file mode 100644 index 00000000..b68d68b2 --- /dev/null +++ b/typescript/docs/OGCApi.md @@ -0,0 +1,362 @@ +# OGCApi + +All URIs are relative to *http://127.0.0.1:3030/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**wcsHandler**](OGCApi.md#wcshandler) | **GET** /wcs/{workflow} | OGC WCS endpoint | +| [**wfsHandler**](OGCApi.md#wfshandler) | **GET** /wfs/{workflow} | OGC WFS endpoint | +| [**wmsHandler**](OGCApi.md#wmshandler) | **GET** /wms/{workflow} | OGC WMS endpoint | + + + +## wcsHandler + +> string wcsHandler(workflow, boundingbox, format, gridbasecrs, identifier, identifiers, request, service, gridoffsets, gridorigin, nodatavalue, resx, resy, time, version) + +OGC WCS endpoint + +### Example + +```ts +import { + Configuration, + OGCApi, +} from '@geoengine/openapi-client'; +import type { WcsHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new OGCApi(config); + + const body = { + // string | Workflow id + workflow: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // string + boundingbox: -90,-180,90,180,urn:ogc:def:crs:EPSG::4326, + // GetCoverageFormat + format: ..., + // string + gridbasecrs: urn:ogc:def:crs:EPSG::4326, + // string + identifier: , + // string + identifiers: , + // 'GetCapabilGetCapabilitiesities' | 'DescribeCoverage' | 'GetCoverage' | type of WMS request + request: request_example, + // WcsService + service: ..., + // string (optional) + gridoffsets: -0.1,0.1, + // string (optional) + gridorigin: 90,-180, + // number (optional) + nodatavalue: 1.2, + // number (optional) + resx: 1.2, + // number (optional) + resy: 1.2, + // string (optional) + time: time_example, + // WcsVersion (optional) + version: ..., + } satisfies WcsHandlerRequest; + + try { + const data = await api.wcsHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **workflow** | `string` | Workflow id | [Defaults to `undefined`] | +| **boundingbox** | `string` | | [Defaults to `undefined`] | +| **format** | `GetCoverageFormat` | | [Defaults to `undefined`] [Enum: image/tiff] | +| **gridbasecrs** | `string` | | [Defaults to `undefined`] | +| **identifier** | `string` | | [Defaults to `undefined`] | +| **identifiers** | `string` | | [Defaults to `undefined`] | +| **request** | `GetCapabilGetCapabilitiesities`, `DescribeCoverage`, `GetCoverage` | type of WMS request | [Defaults to `undefined`] [Enum: GetCapabilGetCapabilitiesities, DescribeCoverage, GetCoverage] | +| **service** | `WcsService` | | [Defaults to `undefined`] [Enum: WCS] | +| **gridoffsets** | `string` | | [Optional] [Defaults to `undefined`] | +| **gridorigin** | `string` | | [Optional] [Defaults to `undefined`] | +| **nodatavalue** | `number` | | [Optional] [Defaults to `undefined`] | +| **resx** | `number` | | [Optional] [Defaults to `undefined`] | +| **resy** | `number` | | [Optional] [Defaults to `undefined`] | +| **time** | `string` | | [Optional] [Defaults to `undefined`] | +| **version** | `WcsVersion` | | [Optional] [Defaults to `undefined`] [Enum: 1.1.0, 1.1.1] | + +### Return type + +**string** + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `text/xml` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## wfsHandler + +> GeoJson wfsHandler(workflow, bbox, request, service, typeNames, count, filter, namespaces, propertyName, queryResolution, resultType, sortBy, srsName, time, version) + +OGC WFS endpoint + +### Example + +```ts +import { + Configuration, + OGCApi, +} from '@geoengine/openapi-client'; +import type { WfsHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new OGCApi(config); + + const body = { + // string | Workflow id + workflow: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // string + bbox: -90,-180,90,180, + // 'GetCapabilities' | 'GetFeature' | type of WFS request + request: request_example, + // WfsService + service: ..., + // string + typeNames: , + // number (optional) + count: 789, + // string (optional) + filter: filter_example, + // string (optional) + namespaces: namespaces_example, + // string (optional) + propertyName: propertyName_example, + // string | Vendor parameter for specifying a spatial query resolution (optional) + queryResolution: queryResolution_example, + // string (optional) + resultType: resultType_example, + // string (optional) + sortBy: sortBy_example, + // string (optional) + srsName: EPSG:4326, + // string (optional) + time: 2014-04-01T12:00:00.000Z, + // WfsVersion (optional) + version: ..., + } satisfies WfsHandlerRequest; + + try { + const data = await api.wfsHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **workflow** | `string` | Workflow id | [Defaults to `undefined`] | +| **bbox** | `string` | | [Defaults to `undefined`] | +| **request** | `GetCapabilities`, `GetFeature` | type of WFS request | [Defaults to `undefined`] [Enum: GetCapabilities, GetFeature] | +| **service** | `WfsService` | | [Defaults to `undefined`] [Enum: WFS] | +| **typeNames** | `string` | | [Defaults to `undefined`] | +| **count** | `number` | | [Optional] [Defaults to `undefined`] | +| **filter** | `string` | | [Optional] [Defaults to `undefined`] | +| **namespaces** | `string` | | [Optional] [Defaults to `undefined`] | +| **propertyName** | `string` | | [Optional] [Defaults to `undefined`] | +| **queryResolution** | `string` | Vendor parameter for specifying a spatial query resolution | [Optional] [Defaults to `undefined`] | +| **resultType** | `string` | | [Optional] [Defaults to `undefined`] | +| **sortBy** | `string` | | [Optional] [Defaults to `undefined`] | +| **srsName** | `string` | | [Optional] [Defaults to `undefined`] | +| **time** | `string` | | [Optional] [Defaults to `undefined`] | +| **version** | `WfsVersion` | | [Optional] [Defaults to `undefined`] [Enum: 2.0.0] | + +### Return type + +[**GeoJson**](GeoJson.md) + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + +## wmsHandler + +> string wmsHandler(workflow, bbox, height, layer, layers, queryLayers, request, service, styles, width, bgcolor, crs, elevation, exceptions, format, infoFormat, sld, sldBody, time, transparent, version) + +OGC WMS endpoint + +### Example + +```ts +import { + Configuration, + OGCApi, +} from '@geoengine/openapi-client'; +import type { WmsHandlerRequest } from '@geoengine/openapi-client'; + +async function example() { + console.log("🚀 Testing @geoengine/openapi-client SDK..."); + const config = new Configuration({ + // Configure HTTP bearer authorization: session_token + accessToken: "YOUR BEARER TOKEN", + }); + const api = new OGCApi(config); + + const body = { + // string | Workflow id + workflow: 38400000-8cf0-11bd-b23e-10b96e4ef00d, + // string + bbox: -90,-180,90,180, + // number + height: 256, + // string + layer: layer_example, + // string + layers: , + // string + queryLayers: queryLayers_example, + // 'GetCapabilities' | 'GetMap' | 'GetFeatureInfo' | 'GetStyles' | 'GetLegendGraphic' | type of WMS request + request: request_example, + // WmsService + service: ..., + // string + styles: custom:{"type":"linearGradient","breakpoints":[{"value":1,"color":[0,0,0,255]},{"value":255,"color":[255,255,255,255]}],"noDataColor":[0,0,0,0],"defaultColor":[0,0,0,0]}, + // number + width: 512, + // string (optional) + bgcolor: bgcolor_example, + // string (optional) + crs: EPSG:4326, + // string (optional) + elevation: elevation_example, + // GetMapExceptionFormat (optional) + exceptions: ..., + // GetCapabilitiesFormat (optional) + format: ..., + // string (optional) + infoFormat: infoFormat_example, + // string (optional) + sld: sld_example, + // string (optional) + sldBody: sldBody_example, + // string (optional) + time: 2014-04-01T12:00:00.000Z, + // boolean (optional) + transparent: true, + // WmsVersion (optional) + version: ..., + } satisfies WmsHandlerRequest; + + try { + const data = await api.wmsHandler(body); + console.log(data); + } catch (error) { + console.error(error); + } +} + +// Run the test +example().catch(console.error); +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **workflow** | `string` | Workflow id | [Defaults to `undefined`] | +| **bbox** | `string` | | [Defaults to `undefined`] | +| **height** | `number` | | [Defaults to `undefined`] | +| **layer** | `string` | | [Defaults to `undefined`] | +| **layers** | `string` | | [Defaults to `undefined`] | +| **queryLayers** | `string` | | [Defaults to `undefined`] | +| **request** | `GetCapabilities`, `GetMap`, `GetFeatureInfo`, `GetStyles`, `GetLegendGraphic` | type of WMS request | [Defaults to `undefined`] [Enum: GetCapabilities, GetMap, GetFeatureInfo, GetStyles, GetLegendGraphic] | +| **service** | `WmsService` | | [Defaults to `undefined`] [Enum: WMS] | +| **styles** | `string` | | [Defaults to `undefined`] | +| **width** | `number` | | [Defaults to `undefined`] | +| **bgcolor** | `string` | | [Optional] [Defaults to `undefined`] | +| **crs** | `string` | | [Optional] [Defaults to `undefined`] | +| **elevation** | `string` | | [Optional] [Defaults to `undefined`] | +| **exceptions** | `GetMapExceptionFormat` | | [Optional] [Defaults to `undefined`] [Enum: XML, JSON] | +| **format** | `GetCapabilitiesFormat` | | [Optional] [Defaults to `undefined`] [Enum: text/xml] | +| **infoFormat** | `string` | | [Optional] [Defaults to `undefined`] | +| **sld** | `string` | | [Optional] [Defaults to `undefined`] | +| **sldBody** | `string` | | [Optional] [Defaults to `undefined`] | +| **time** | `string` | | [Optional] [Defaults to `undefined`] | +| **transparent** | `boolean` | | [Optional] [Defaults to `undefined`] | +| **version** | `WmsVersion` | | [Optional] [Defaults to `undefined`] [Enum: 1.3.0] | + +### Return type + +**string** + +### Authorization + +[session_token](../README.md#session_token) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `text/xml` + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + diff --git a/typescript/docs/OGCWCSApi.md b/typescript/docs/OGCWCSApi.md index aa49fe9b..c7ae75a1 100644 --- a/typescript/docs/OGCWCSApi.md +++ b/typescript/docs/OGCWCSApi.md @@ -4,17 +4,15 @@ All URIs are relative to *https://geoengine.io/api* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**wcsCapabilitiesHandler**](OGCWCSApi.md#wcscapabilitieshandler) | **GET** /wcs/{workflow}?request=GetCapabilities | Get WCS Capabilities | -| [**wcsDescribeCoverageHandler**](OGCWCSApi.md#wcsdescribecoveragehandler) | **GET** /wcs/{workflow}?request=DescribeCoverage | Get WCS Coverage Description | -| [**wcsGetCoverageHandler**](OGCWCSApi.md#wcsgetcoveragehandler) | **GET** /wcs/{workflow}?request=GetCoverage | Get WCS Coverage | +| [**wcsHandler**](OGCWCSApi.md#wcshandler) | **GET** /wcs/{workflow} | OGC WCS endpoint | -## wcsCapabilitiesHandler +## wcsHandler -> string wcsCapabilitiesHandler(workflow, service, request, version) +> string wcsHandler(workflow, request, boundingbox, format, gridbasecrs, gridoffsets, gridorigin, identifier, identifiers, nodatavalue, resx, resy, service, time, version) -Get WCS Capabilities +OGC WCS endpoint ### Example @@ -23,7 +21,7 @@ import { Configuration, OGCWCSApi, } from '@geoengine/openapi-client'; -import type { WcsCapabilitiesHandlerRequest } from '@geoengine/openapi-client'; +import type { WcsHandlerRequest } from '@geoengine/openapi-client'; async function example() { console.log("🚀 Testing @geoengine/openapi-client SDK..."); @@ -36,195 +34,38 @@ async function example() { const body = { // string | Workflow id workflow: 38400000-8cf0-11bd-b23e-10b96e4ef00d, - // WcsService - service: ..., - // GetCapabilitiesRequest - request: ..., - // WcsVersion (optional) - version: ..., - } satisfies WcsCapabilitiesHandlerRequest; - - try { - const data = await api.wcsCapabilitiesHandler(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **workflow** | `string` | Workflow id | [Defaults to `undefined`] | -| **service** | `WcsService` | | [Defaults to `undefined`] [Enum: WCS] | -| **request** | `GetCapabilitiesRequest` | | [Defaults to `undefined`] [Enum: GetCapabilities] | -| **version** | `WcsVersion` | | [Optional] [Defaults to `undefined`] [Enum: 1.1.0, 1.1.1] | - -### Return type - -**string** - -### Authorization - -[session_token](../README.md#session_token) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `text/xml` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## wcsDescribeCoverageHandler - -> string wcsDescribeCoverageHandler(workflow, version, service, request, identifiers) - -Get WCS Coverage Description - -### Example - -```ts -import { - Configuration, - OGCWCSApi, -} from '@geoengine/openapi-client'; -import type { WcsDescribeCoverageHandlerRequest } from '@geoengine/openapi-client'; - -async function example() { - console.log("🚀 Testing @geoengine/openapi-client SDK..."); - const config = new Configuration({ - // Configure HTTP bearer authorization: session_token - accessToken: "YOUR BEARER TOKEN", - }); - const api = new OGCWCSApi(config); - - const body = { - // string | Workflow id - workflow: 38400000-8cf0-11bd-b23e-10b96e4ef00d, - // WcsVersion - version: ..., - // WcsService - service: ..., - // DescribeCoverageRequest + // WcsRequest | type of WCS request request: ..., - // string - identifiers: , - } satisfies WcsDescribeCoverageHandlerRequest; - - try { - const data = await api.wcsDescribeCoverageHandler(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **workflow** | `string` | Workflow id | [Defaults to `undefined`] | -| **version** | `WcsVersion` | | [Defaults to `undefined`] [Enum: 1.1.0, 1.1.1] | -| **service** | `WcsService` | | [Defaults to `undefined`] [Enum: WCS] | -| **request** | `DescribeCoverageRequest` | | [Defaults to `undefined`] [Enum: DescribeCoverage] | -| **identifiers** | `string` | | [Defaults to `undefined`] | - -### Return type - -**string** - -### Authorization - -[session_token](../README.md#session_token) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `text/xml` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## wcsGetCoverageHandler - -> Blob wcsGetCoverageHandler(workflow, version, service, request, format, identifier, boundingbox, gridbasecrs, gridorigin, gridoffsets, time, resx, resy, nodatavalue) - -Get WCS Coverage - -### Example - -```ts -import { - Configuration, - OGCWCSApi, -} from '@geoengine/openapi-client'; -import type { WcsGetCoverageHandlerRequest } from '@geoengine/openapi-client'; - -async function example() { - console.log("🚀 Testing @geoengine/openapi-client SDK..."); - const config = new Configuration({ - // Configure HTTP bearer authorization: session_token - accessToken: "YOUR BEARER TOKEN", - }); - const api = new OGCWCSApi(config); - - const body = { - // string | Workflow id - workflow: 38400000-8cf0-11bd-b23e-10b96e4ef00d, - // WcsVersion - version: ..., - // WcsService - service: ..., - // GetCoverageRequest - request: ..., - // GetCoverageFormat - format: ..., - // string - identifier: , - // string + // string (optional) boundingbox: -90,-180,90,180,urn:ogc:def:crs:EPSG::4326, - // string + // GetCoverageFormat (optional) + format: ..., + // string (optional) gridbasecrs: urn:ogc:def:crs:EPSG::4326, // string (optional) + gridoffsets: -0.1,0.1, + // string (optional) gridorigin: 90,-180, // string (optional) - gridoffsets: -0.1,0.1, + identifier: , // string (optional) - time: time_example, + identifiers: , + // number (optional) + nodatavalue: 1.2, // number (optional) resx: 1.2, // number (optional) resy: 1.2, - // number (optional) - nodatavalue: 1.2, - } satisfies WcsGetCoverageHandlerRequest; + // WcsService (optional) + service: ..., + // string (optional) + time: time_example, + // WcsVersion (optional) + version: ..., + } satisfies WcsHandlerRequest; try { - const data = await api.wcsGetCoverageHandler(body); + const data = await api.wcsHandler(body); console.log(data); } catch (error) { console.error(error); @@ -241,23 +82,24 @@ example().catch(console.error); | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **workflow** | `string` | Workflow id | [Defaults to `undefined`] | -| **version** | `WcsVersion` | | [Defaults to `undefined`] [Enum: 1.1.0, 1.1.1] | -| **service** | `WcsService` | | [Defaults to `undefined`] [Enum: WCS] | -| **request** | `GetCoverageRequest` | | [Defaults to `undefined`] [Enum: GetCoverage] | -| **format** | `GetCoverageFormat` | | [Defaults to `undefined`] [Enum: image/tiff] | -| **identifier** | `string` | | [Defaults to `undefined`] | -| **boundingbox** | `string` | | [Defaults to `undefined`] | -| **gridbasecrs** | `string` | | [Defaults to `undefined`] | -| **gridorigin** | `string` | | [Optional] [Defaults to `undefined`] | +| **request** | `WcsRequest` | type of WCS request | [Defaults to `undefined`] [Enum: GetCapabilities, DescribeCoverage, GetCoverage] | +| **boundingbox** | `string` | | [Optional] [Defaults to `undefined`] | +| **format** | `GetCoverageFormat` | | [Optional] [Defaults to `undefined`] [Enum: image/tiff] | +| **gridbasecrs** | `string` | | [Optional] [Defaults to `undefined`] | | **gridoffsets** | `string` | | [Optional] [Defaults to `undefined`] | -| **time** | `string` | | [Optional] [Defaults to `undefined`] | +| **gridorigin** | `string` | | [Optional] [Defaults to `undefined`] | +| **identifier** | `string` | | [Optional] [Defaults to `undefined`] | +| **identifiers** | `string` | | [Optional] [Defaults to `undefined`] | +| **nodatavalue** | `number` | | [Optional] [Defaults to `undefined`] | | **resx** | `number` | | [Optional] [Defaults to `undefined`] | | **resy** | `number` | | [Optional] [Defaults to `undefined`] | -| **nodatavalue** | `number` | | [Optional] [Defaults to `undefined`] | +| **service** | `WcsService` | | [Optional] [Defaults to `undefined`] [Enum: WCS] | +| **time** | `string` | | [Optional] [Defaults to `undefined`] | +| **version** | `WcsVersion` | | [Optional] [Defaults to `undefined`] [Enum: 1.1.0, 1.1.1] | ### Return type -**Blob** +**string** ### Authorization @@ -266,13 +108,13 @@ example().catch(console.error); ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: `image/png` +- **Accept**: `text/xml` ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | PNG Image | - | +| **200** | OK | - | [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) diff --git a/typescript/docs/OGCWFSApi.md b/typescript/docs/OGCWFSApi.md index f60d257f..4b3d6ccf 100644 --- a/typescript/docs/OGCWFSApi.md +++ b/typescript/docs/OGCWFSApi.md @@ -4,16 +4,15 @@ All URIs are relative to *https://geoengine.io/api* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**wfsCapabilitiesHandler**](OGCWFSApi.md#wfscapabilitieshandler) | **GET** /wfs/{workflow}?request=GetCapabilities | Get WFS Capabilities | -| [**wfsFeatureHandler**](OGCWFSApi.md#wfsfeaturehandler) | **GET** /wfs/{workflow}?request=GetFeature | Get WCS Features | +| [**wfsHandler**](OGCWFSApi.md#wfshandler) | **GET** /wfs/{workflow} | OGC WFS endpoint | -## wfsCapabilitiesHandler +## wfsHandler -> string wfsCapabilitiesHandler(workflow, version, service, request) +> GeoJson wfsHandler(workflow, request, bbox, count, filter, namespaces, propertyName, resultType, service, sortBy, srsName, time, typeNames, version) -Get WFS Capabilities +OGC WFS endpoint ### Example @@ -22,7 +21,7 @@ import { Configuration, OGCWFSApi, } from '@geoengine/openapi-client'; -import type { WfsCapabilitiesHandlerRequest } from '@geoengine/openapi-client'; +import type { WfsHandlerRequest } from '@geoengine/openapi-client'; async function example() { console.log("🚀 Testing @geoengine/openapi-client SDK..."); @@ -35,116 +34,36 @@ async function example() { const body = { // string | Workflow id workflow: 38400000-8cf0-11bd-b23e-10b96e4ef00d, - // WfsVersion - version: ..., - // WfsService - service: ..., - // GetCapabilitiesRequest - request: ..., - } satisfies WfsCapabilitiesHandlerRequest; - - try { - const data = await api.wfsCapabilitiesHandler(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **workflow** | `string` | Workflow id | [Defaults to `undefined`] | -| **version** | `WfsVersion` | | [Defaults to `undefined`] [Enum: 2.0.0] | -| **service** | `WfsService` | | [Defaults to `undefined`] [Enum: WFS] | -| **request** | `GetCapabilitiesRequest` | | [Defaults to `undefined`] [Enum: GetCapabilities] | - -### Return type - -**string** - -### Authorization - -[session_token](../README.md#session_token) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `text/xml` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## wfsFeatureHandler - -> GeoJson wfsFeatureHandler(workflow, service, request, typeNames, bbox, version, time, srsName, namespaces, count, sortBy, resultType, filter, propertyName, queryResolution) - -Get WCS Features - -### Example - -```ts -import { - Configuration, - OGCWFSApi, -} from '@geoengine/openapi-client'; -import type { WfsFeatureHandlerRequest } from '@geoengine/openapi-client'; - -async function example() { - console.log("🚀 Testing @geoengine/openapi-client SDK..."); - const config = new Configuration({ - // Configure HTTP bearer authorization: session_token - accessToken: "YOUR BEARER TOKEN", - }); - const api = new OGCWFSApi(config); - - const body = { - // string | Workflow id - workflow: 38400000-8cf0-11bd-b23e-10b96e4ef00d, - // WfsService - service: ..., - // GetFeatureRequest + // WfsRequest | type of WFS request request: ..., - // string - typeNames: , - // string - bbox: -90,-180,90,180, - // WfsVersion (optional) - version: ..., // string (optional) - time: 2014-04-01T12:00:00.000Z, + bbox: -90,-180,90,180, + // number (optional) + count: 789, // string (optional) - srsName: EPSG:4326, + filter: filter_example, // string (optional) namespaces: namespaces_example, - // number (optional) - count: 789, // string (optional) - sortBy: sortBy_example, + propertyName: propertyName_example, // string (optional) resultType: resultType_example, + // WfsService (optional) + service: ..., // string (optional) - filter: filter_example, + sortBy: sortBy_example, // string (optional) - propertyName: propertyName_example, - // string | Vendor parameter for specifying a spatial query resolution (optional) - queryResolution: queryResolution_example, - } satisfies WfsFeatureHandlerRequest; + srsName: EPSG:4326, + // string (optional) + time: 2014-04-01T12:00:00.000Z, + // string (optional) + typeNames: , + // WfsVersion (optional) + version: ..., + } satisfies WfsHandlerRequest; try { - const data = await api.wfsFeatureHandler(body); + const data = await api.wfsHandler(body); console.log(data); } catch (error) { console.error(error); @@ -161,20 +80,19 @@ example().catch(console.error); | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **workflow** | `string` | Workflow id | [Defaults to `undefined`] | -| **service** | `WfsService` | | [Defaults to `undefined`] [Enum: WFS] | -| **request** | `GetFeatureRequest` | | [Defaults to `undefined`] [Enum: GetFeature] | -| **typeNames** | `string` | | [Defaults to `undefined`] | -| **bbox** | `string` | | [Defaults to `undefined`] | -| **version** | `WfsVersion` | | [Optional] [Defaults to `undefined`] [Enum: 2.0.0] | -| **time** | `string` | | [Optional] [Defaults to `undefined`] | -| **srsName** | `string` | | [Optional] [Defaults to `undefined`] | -| **namespaces** | `string` | | [Optional] [Defaults to `undefined`] | +| **request** | `WfsRequest` | type of WFS request | [Defaults to `undefined`] [Enum: GetCapabilities, GetFeature] | +| **bbox** | `string` | | [Optional] [Defaults to `undefined`] | | **count** | `number` | | [Optional] [Defaults to `undefined`] | -| **sortBy** | `string` | | [Optional] [Defaults to `undefined`] | -| **resultType** | `string` | | [Optional] [Defaults to `undefined`] | | **filter** | `string` | | [Optional] [Defaults to `undefined`] | +| **namespaces** | `string` | | [Optional] [Defaults to `undefined`] | | **propertyName** | `string` | | [Optional] [Defaults to `undefined`] | -| **queryResolution** | `string` | Vendor parameter for specifying a spatial query resolution | [Optional] [Defaults to `undefined`] | +| **resultType** | `string` | | [Optional] [Defaults to `undefined`] | +| **service** | `WfsService` | | [Optional] [Defaults to `undefined`] [Enum: WFS] | +| **sortBy** | `string` | | [Optional] [Defaults to `undefined`] | +| **srsName** | `string` | | [Optional] [Defaults to `undefined`] | +| **time** | `string` | | [Optional] [Defaults to `undefined`] | +| **typeNames** | `string` | | [Optional] [Defaults to `undefined`] | +| **version** | `WfsVersion` | | [Optional] [Defaults to `undefined`] [Enum: 2.0.0] | ### Return type diff --git a/typescript/docs/OGCWMSApi.md b/typescript/docs/OGCWMSApi.md index 4741944d..d5112ef8 100644 --- a/typescript/docs/OGCWMSApi.md +++ b/typescript/docs/OGCWMSApi.md @@ -4,17 +4,15 @@ All URIs are relative to *https://geoengine.io/api* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**wmsCapabilitiesHandler**](OGCWMSApi.md#wmscapabilitieshandler) | **GET** /wms/{workflow}?request=GetCapabilities | Get WMS Capabilities | -| [**wmsLegendGraphicHandler**](OGCWMSApi.md#wmslegendgraphichandler) | **GET** /wms/{workflow}?request=GetLegendGraphic | Get WMS Legend Graphic | -| [**wmsMapHandler**](OGCWMSApi.md#wmsmaphandler) | **GET** /wms/{workflow}?request=GetMap | Get WMS Map | +| [**wmsHandler**](OGCWMSApi.md#wmshandler) | **GET** /wms/{workflow} | OGC WMS endpoint | -## wmsCapabilitiesHandler +## wmsHandler -> string wmsCapabilitiesHandler(workflow, version, service, request, format) +> Blob wmsHandler(workflow, request, bbox, bgcolor, crs, elevation, exceptions, format, height, infoFormat, layer, layers, queryLayers, service, sld, sldBody, styles, time, transparent, version, width) -Get WMS Capabilities +OGC WMS endpoint ### Example @@ -23,7 +21,7 @@ import { Configuration, OGCWMSApi, } from '@geoengine/openapi-client'; -import type { WmsCapabilitiesHandlerRequest } from '@geoengine/openapi-client'; +import type { WmsHandlerRequest } from '@geoengine/openapi-client'; async function example() { console.log("🚀 Testing @geoengine/openapi-client SDK..."); @@ -36,206 +34,50 @@ async function example() { const body = { // string | Workflow id workflow: 38400000-8cf0-11bd-b23e-10b96e4ef00d, - // WmsVersion - version: ..., - // WmsService - service: ..., - // GetCapabilitiesRequest - request: ..., - // GetCapabilitiesFormat - format: ..., - } satisfies WmsCapabilitiesHandlerRequest; - - try { - const data = await api.wmsCapabilitiesHandler(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **workflow** | `string` | Workflow id | [Defaults to `undefined`] | -| **version** | `WmsVersion` | | [Defaults to `undefined`] [Enum: 1.3.0] | -| **service** | `WmsService` | | [Defaults to `undefined`] [Enum: WMS] | -| **request** | `GetCapabilitiesRequest` | | [Defaults to `undefined`] [Enum: GetCapabilities] | -| **format** | `GetCapabilitiesFormat` | | [Defaults to `undefined`] [Enum: text/xml] | - -### Return type - -**string** - -### Authorization - -[session_token](../README.md#session_token) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `text/xml` - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## wmsLegendGraphicHandler - -> wmsLegendGraphicHandler(workflow, version, service, request, layer) - -Get WMS Legend Graphic - -### Example - -```ts -import { - Configuration, - OGCWMSApi, -} from '@geoengine/openapi-client'; -import type { WmsLegendGraphicHandlerRequest } from '@geoengine/openapi-client'; - -async function example() { - console.log("🚀 Testing @geoengine/openapi-client SDK..."); - const config = new Configuration({ - // Configure HTTP bearer authorization: session_token - accessToken: "YOUR BEARER TOKEN", - }); - const api = new OGCWMSApi(config); - - const body = { - // string | Workflow id - workflow: 38400000-8cf0-11bd-b23e-10b96e4ef00d, - // WmsVersion - version: ..., - // WmsService - service: ..., - // GetLegendGraphicRequest + // WmsRequest | type of WMS request request: ..., - // string - layer: , - } satisfies WmsLegendGraphicHandlerRequest; - - try { - const data = await api.wmsLegendGraphicHandler(body); - console.log(data); - } catch (error) { - console.error(error); - } -} - -// Run the test -example().catch(console.error); -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **workflow** | `string` | Workflow id | [Defaults to `undefined`] | -| **version** | `WmsVersion` | | [Defaults to `undefined`] [Enum: 1.3.0] | -| **service** | `WmsService` | | [Defaults to `undefined`] [Enum: WMS] | -| **request** | `GetLegendGraphicRequest` | | [Defaults to `undefined`] [Enum: GetLegendGraphic] | -| **layer** | `string` | | [Defaults to `undefined`] | - -### Return type - -`void` (Empty response body) - -### Authorization - -[session_token](../README.md#session_token) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **501** | Not implemented | - | - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - -## wmsMapHandler - -> Blob wmsMapHandler(workflow, version, service, request, width, height, bbox, format, layers, styles, crs, time, transparent, bgcolor, sld, sldBody, elevation, exceptions) - -Get WMS Map - -### Example - -```ts -import { - Configuration, - OGCWMSApi, -} from '@geoengine/openapi-client'; -import type { WmsMapHandlerRequest } from '@geoengine/openapi-client'; - -async function example() { - console.log("🚀 Testing @geoengine/openapi-client SDK..."); - const config = new Configuration({ - // Configure HTTP bearer authorization: session_token - accessToken: "YOUR BEARER TOKEN", - }); - const api = new OGCWMSApi(config); - - const body = { - // string | Workflow id - workflow: 38400000-8cf0-11bd-b23e-10b96e4ef00d, - // WmsVersion - version: ..., - // WmsService - service: ..., - // GetMapRequest - request: ..., - // number - width: 512, - // number - height: 256, - // string + // string (optional) bbox: -90,-180,90,180, - // GetMapFormat - format: ..., - // string - layers: , - // string - styles: custom:{"type":"linearGradient","breakpoints":[{"value":1,"color":[0,0,0,255]},{"value":255,"color":[255,255,255,255]}],"noDataColor":[0,0,0,0],"defaultColor":[0,0,0,0]}, + // string (optional) + bgcolor: bgcolor_example, // string (optional) crs: EPSG:4326, // string (optional) - time: 2014-04-01T12:00:00.000Z, - // boolean (optional) - transparent: true, + elevation: elevation_example, + // GetMapExceptionFormat (optional) + exceptions: ..., + // WmsResponseFormat (optional) + format: ..., + // number (optional) + height: 256, // string (optional) - bgcolor: bgcolor_example, + infoFormat: infoFormat_example, + // string (optional) + layer: layer_example, + // string (optional) + layers: , + // string (optional) + queryLayers: queryLayers_example, + // WmsService (optional) + service: ..., // string (optional) sld: sld_example, // string (optional) sldBody: sldBody_example, // string (optional) - elevation: elevation_example, - // GetMapExceptionFormat (optional) - exceptions: ..., - } satisfies WmsMapHandlerRequest; + styles: custom:{"type":"linearGradient","breakpoints":[{"value":1,"color":[0,0,0,255]},{"value":255,"color":[255,255,255,255]}],"noDataColor":[0,0,0,0],"defaultColor":[0,0,0,0]}, + // string (optional) + time: 2014-04-01T12:00:00.000Z, + // boolean (optional) + transparent: true, + // WmsVersion (optional) + version: ..., + // number (optional) + width: 512, + } satisfies WmsHandlerRequest; try { - const data = await api.wmsMapHandler(body); + const data = await api.wmsHandler(body); console.log(data); } catch (error) { console.error(error); @@ -252,23 +94,26 @@ example().catch(console.error); | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **workflow** | `string` | Workflow id | [Defaults to `undefined`] | -| **version** | `WmsVersion` | | [Defaults to `undefined`] [Enum: 1.3.0] | -| **service** | `WmsService` | | [Defaults to `undefined`] [Enum: WMS] | -| **request** | `GetMapRequest` | | [Defaults to `undefined`] [Enum: GetMap] | -| **width** | `number` | | [Defaults to `undefined`] | -| **height** | `number` | | [Defaults to `undefined`] | -| **bbox** | `string` | | [Defaults to `undefined`] | -| **format** | `GetMapFormat` | | [Defaults to `undefined`] [Enum: image/png] | -| **layers** | `string` | | [Defaults to `undefined`] | -| **styles** | `string` | | [Defaults to `undefined`] | -| **crs** | `string` | | [Optional] [Defaults to `undefined`] | -| **time** | `string` | | [Optional] [Defaults to `undefined`] | -| **transparent** | `boolean` | | [Optional] [Defaults to `undefined`] | +| **request** | `WmsRequest` | type of WMS request | [Defaults to `undefined`] [Enum: GetCapabilities, GetMap, GetFeatureInfo, GetStyles, GetLegendGraphic] | +| **bbox** | `string` | | [Optional] [Defaults to `undefined`] | | **bgcolor** | `string` | | [Optional] [Defaults to `undefined`] | -| **sld** | `string` | | [Optional] [Defaults to `undefined`] | -| **sldBody** | `string` | | [Optional] [Defaults to `undefined`] | +| **crs** | `string` | | [Optional] [Defaults to `undefined`] | | **elevation** | `string` | | [Optional] [Defaults to `undefined`] | | **exceptions** | `GetMapExceptionFormat` | | [Optional] [Defaults to `undefined`] [Enum: XML, JSON] | +| **format** | `WmsResponseFormat` | | [Optional] [Defaults to `undefined`] [Enum: text/xml, image/png] | +| **height** | `number` | | [Optional] [Defaults to `undefined`] | +| **infoFormat** | `string` | | [Optional] [Defaults to `undefined`] | +| **layer** | `string` | | [Optional] [Defaults to `undefined`] | +| **layers** | `string` | | [Optional] [Defaults to `undefined`] | +| **queryLayers** | `string` | | [Optional] [Defaults to `undefined`] | +| **service** | `WmsService` | | [Optional] [Defaults to `undefined`] [Enum: WMS] | +| **sld** | `string` | | [Optional] [Defaults to `undefined`] | +| **sldBody** | `string` | | [Optional] [Defaults to `undefined`] | +| **styles** | `string` | | [Optional] [Defaults to `undefined`] | +| **time** | `string` | | [Optional] [Defaults to `undefined`] | +| **transparent** | `boolean` | | [Optional] [Defaults to `undefined`] | +| **version** | `WmsVersion` | | [Optional] [Defaults to `undefined`] [Enum: 1.3.0] | +| **width** | `number` | | [Optional] [Defaults to `undefined`] | ### Return type diff --git a/typescript/docs/PlotQueryRectangle.md b/typescript/docs/PlotQueryRectangle.md new file mode 100644 index 00000000..c524ecb9 --- /dev/null +++ b/typescript/docs/PlotQueryRectangle.md @@ -0,0 +1,39 @@ + +# PlotQueryRectangle + +A spatio-temporal rectangle with a specified resolution + +## Properties + +Name | Type +------------ | ------------- +`spatialBounds` | [BoundingBox2D](BoundingBox2D.md) +`spatialResolution` | [SpatialResolution](SpatialResolution.md) +`timeInterval` | [TimeInterval](TimeInterval.md) + +## Example + +```typescript +import type { PlotQueryRectangle } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "spatialBounds": null, + "spatialResolution": null, + "timeInterval": null, +} satisfies PlotQueryRectangle + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PlotQueryRectangle +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/RasterQueryRectangle.md b/typescript/docs/RasterQueryRectangle.md new file mode 100644 index 00000000..65063a5f --- /dev/null +++ b/typescript/docs/RasterQueryRectangle.md @@ -0,0 +1,39 @@ + +# RasterQueryRectangle + +A spatio-temporal rectangle with a specified resolution + +## Properties + +Name | Type +------------ | ------------- +`spatialBounds` | [SpatialPartition2D](SpatialPartition2D.md) +`spatialResolution` | [SpatialResolution](SpatialResolution.md) +`timeInterval` | [TimeInterval](TimeInterval.md) + +## Example + +```typescript +import type { RasterQueryRectangle } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "spatialBounds": null, + "spatialResolution": null, + "timeInterval": null, +} satisfies RasterQueryRectangle + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RasterQueryRectangle +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/StacBand.md b/typescript/docs/StacBand.md new file mode 100644 index 00000000..e5d76d3f --- /dev/null +++ b/typescript/docs/StacBand.md @@ -0,0 +1,38 @@ + +# StacBand + + +## Properties + +Name | Type +------------ | ------------- +`dataType` | [RasterDataType](RasterDataType.md) +`name` | string +`noDataValue` | number + +## Example + +```typescript +import type { StacBand } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "dataType": null, + "name": null, + "noDataValue": null, +} satisfies StacBand + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as StacBand +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/StacZone.md b/typescript/docs/StacZone.md new file mode 100644 index 00000000..8c147b24 --- /dev/null +++ b/typescript/docs/StacZone.md @@ -0,0 +1,36 @@ + +# StacZone + + +## Properties + +Name | Type +------------ | ------------- +`epsg` | number +`name` | string + +## Example + +```typescript +import type { StacZone } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "epsg": null, + "name": null, +} satisfies StacZone + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as StacZone +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/VectorQueryRectangle.md b/typescript/docs/VectorQueryRectangle.md new file mode 100644 index 00000000..5b1eb731 --- /dev/null +++ b/typescript/docs/VectorQueryRectangle.md @@ -0,0 +1,39 @@ + +# VectorQueryRectangle + +A spatio-temporal rectangle with a specified resolution + +## Properties + +Name | Type +------------ | ------------- +`spatialBounds` | [BoundingBox2D](BoundingBox2D.md) +`spatialResolution` | [SpatialResolution](SpatialResolution.md) +`timeInterval` | [TimeInterval](TimeInterval.md) + +## Example + +```typescript +import type { VectorQueryRectangle } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "spatialBounds": null, + "spatialResolution": null, + "timeInterval": null, +} satisfies VectorQueryRectangle + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as VectorQueryRectangle +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/WcsRequest.md b/typescript/docs/WcsRequest.md new file mode 100644 index 00000000..abd64b73 --- /dev/null +++ b/typescript/docs/WcsRequest.md @@ -0,0 +1,32 @@ + +# WcsRequest + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { WcsRequest } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies WcsRequest + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as WcsRequest +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/WfsRequest.md b/typescript/docs/WfsRequest.md new file mode 100644 index 00000000..66157aac --- /dev/null +++ b/typescript/docs/WfsRequest.md @@ -0,0 +1,32 @@ + +# WfsRequest + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { WfsRequest } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies WfsRequest + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as WfsRequest +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/WmsRequest.md b/typescript/docs/WmsRequest.md new file mode 100644 index 00000000..dfb04c5c --- /dev/null +++ b/typescript/docs/WmsRequest.md @@ -0,0 +1,32 @@ + +# WmsRequest + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { WmsRequest } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies WmsRequest + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as WmsRequest +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/WmsResponseFormat.md b/typescript/docs/WmsResponseFormat.md new file mode 100644 index 00000000..b42583fb --- /dev/null +++ b/typescript/docs/WmsResponseFormat.md @@ -0,0 +1,32 @@ + +# WmsResponseFormat + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { WmsResponseFormat } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies WmsResponseFormat + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as WmsResponseFormat +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/src/apis/OGCWCSApi.ts b/typescript/src/apis/OGCWCSApi.ts index 6c9d614f..5edbf62c 100644 --- a/typescript/src/apis/OGCWCSApi.ts +++ b/typescript/src/apis/OGCWCSApi.ts @@ -15,58 +15,38 @@ import * as runtime from '../runtime'; import type { - DescribeCoverageRequest, - GetCapabilitiesRequest, GetCoverageFormat, - GetCoverageRequest, + WcsRequest, WcsService, WcsVersion, } from '../models/index'; import { - DescribeCoverageRequestFromJSON, - DescribeCoverageRequestToJSON, - GetCapabilitiesRequestFromJSON, - GetCapabilitiesRequestToJSON, GetCoverageFormatFromJSON, GetCoverageFormatToJSON, - GetCoverageRequestFromJSON, - GetCoverageRequestToJSON, + WcsRequestFromJSON, + WcsRequestToJSON, WcsServiceFromJSON, WcsServiceToJSON, WcsVersionFromJSON, WcsVersionToJSON, } from '../models/index'; -export interface WcsCapabilitiesHandlerRequest { +export interface WcsHandlerRequest { workflow: string; - service: WcsService; - request: GetCapabilitiesRequest; - version?: WcsVersion | null; -} - -export interface WcsDescribeCoverageHandlerRequest { - workflow: string; - version: WcsVersion; - service: WcsService; - request: DescribeCoverageRequest; - identifiers: string; -} - -export interface WcsGetCoverageHandlerRequest { - workflow: string; - version: WcsVersion; - service: WcsService; - request: GetCoverageRequest; - format: GetCoverageFormat; - identifier: string; - boundingbox: string; - gridbasecrs: string; - gridorigin?: string; + request: WcsRequest; + boundingbox?: string; + format?: GetCoverageFormat; + gridbasecrs?: string; gridoffsets?: string; - time?: string; + gridorigin?: string; + identifier?: string; + identifiers?: string; + nodatavalue?: number | null; resx?: number | null; resy?: number | null; - nodatavalue?: number | null; + service?: WcsService; + time?: string; + version?: WcsVersion | null; } /** @@ -75,135 +55,79 @@ export interface WcsGetCoverageHandlerRequest { export class OGCWCSApi extends runtime.BaseAPI { /** - * Get WCS Capabilities + * OGC WCS endpoint */ - async wcsCapabilitiesHandlerRaw(requestParameters: WcsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async wcsHandlerRaw(requestParameters: WcsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['workflow'] == null) { throw new runtime.RequiredError( 'workflow', - 'Required parameter "workflow" was null or undefined when calling wcsCapabilitiesHandler().' - ); - } - - if (requestParameters['service'] == null) { - throw new runtime.RequiredError( - 'service', - 'Required parameter "service" was null or undefined when calling wcsCapabilitiesHandler().' + 'Required parameter "workflow" was null or undefined when calling wcsHandler().' ); } if (requestParameters['request'] == null) { throw new runtime.RequiredError( 'request', - 'Required parameter "request" was null or undefined when calling wcsCapabilitiesHandler().' + 'Required parameter "request" was null or undefined when calling wcsHandler().' ); } const queryParameters: any = {}; - if (requestParameters['version'] != null) { - queryParameters['version'] = requestParameters['version']; + if (requestParameters['boundingbox'] != null) { + queryParameters['boundingbox'] = requestParameters['boundingbox']; } - if (requestParameters['service'] != null) { - queryParameters['service'] = requestParameters['service']; + if (requestParameters['format'] != null) { + queryParameters['format'] = requestParameters['format']; } - if (requestParameters['request'] != null) { - queryParameters['request'] = requestParameters['request']; + if (requestParameters['gridbasecrs'] != null) { + queryParameters['gridbasecrs'] = requestParameters['gridbasecrs']; } - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("session_token", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } + if (requestParameters['gridoffsets'] != null) { + queryParameters['gridoffsets'] = requestParameters['gridoffsets']; } - let urlPath = `/wcs/{workflow}?request=GetCapabilities`; - urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; + if (requestParameters['gridorigin'] != null) { + queryParameters['gridorigin'] = requestParameters['gridorigin']; } - } - /** - * Get WCS Capabilities - */ - async wcsCapabilitiesHandler(requestParameters: WcsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.wcsCapabilitiesHandlerRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get WCS Coverage Description - */ - async wcsDescribeCoverageHandlerRaw(requestParameters: WcsDescribeCoverageHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['workflow'] == null) { - throw new runtime.RequiredError( - 'workflow', - 'Required parameter "workflow" was null or undefined when calling wcsDescribeCoverageHandler().' - ); + if (requestParameters['identifier'] != null) { + queryParameters['identifier'] = requestParameters['identifier']; } - if (requestParameters['version'] == null) { - throw new runtime.RequiredError( - 'version', - 'Required parameter "version" was null or undefined when calling wcsDescribeCoverageHandler().' - ); + if (requestParameters['identifiers'] != null) { + queryParameters['identifiers'] = requestParameters['identifiers']; } - if (requestParameters['service'] == null) { - throw new runtime.RequiredError( - 'service', - 'Required parameter "service" was null or undefined when calling wcsDescribeCoverageHandler().' - ); + if (requestParameters['nodatavalue'] != null) { + queryParameters['nodatavalue'] = requestParameters['nodatavalue']; } - if (requestParameters['request'] == null) { - throw new runtime.RequiredError( - 'request', - 'Required parameter "request" was null or undefined when calling wcsDescribeCoverageHandler().' - ); + if (requestParameters['request'] != null) { + queryParameters['request'] = requestParameters['request']; } - if (requestParameters['identifiers'] == null) { - throw new runtime.RequiredError( - 'identifiers', - 'Required parameter "identifiers" was null or undefined when calling wcsDescribeCoverageHandler().' - ); + if (requestParameters['resx'] != null) { + queryParameters['resx'] = requestParameters['resx']; } - const queryParameters: any = {}; - - if (requestParameters['version'] != null) { - queryParameters['version'] = requestParameters['version']; + if (requestParameters['resy'] != null) { + queryParameters['resy'] = requestParameters['resy']; } if (requestParameters['service'] != null) { queryParameters['service'] = requestParameters['service']; } - if (requestParameters['request'] != null) { - queryParameters['request'] = requestParameters['request']; + if (requestParameters['time'] != null) { + queryParameters['time'] = requestParameters['time']; } - if (requestParameters['identifiers'] != null) { - queryParameters['identifiers'] = requestParameters['identifiers']; + if (requestParameters['version'] != null) { + queryParameters['version'] = requestParameters['version']; } const headerParameters: runtime.HTTPHeaders = {}; @@ -217,7 +141,7 @@ export class OGCWCSApi extends runtime.BaseAPI { } } - let urlPath = `/wcs/{workflow}?request=DescribeCoverage`; + let urlPath = `/wcs/{workflow}`; urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); const response = await this.request({ @@ -235,156 +159,10 @@ export class OGCWCSApi extends runtime.BaseAPI { } /** - * Get WCS Coverage Description - */ - async wcsDescribeCoverageHandler(requestParameters: WcsDescribeCoverageHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.wcsDescribeCoverageHandlerRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get WCS Coverage - */ - async wcsGetCoverageHandlerRaw(requestParameters: WcsGetCoverageHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['workflow'] == null) { - throw new runtime.RequiredError( - 'workflow', - 'Required parameter "workflow" was null or undefined when calling wcsGetCoverageHandler().' - ); - } - - if (requestParameters['version'] == null) { - throw new runtime.RequiredError( - 'version', - 'Required parameter "version" was null or undefined when calling wcsGetCoverageHandler().' - ); - } - - if (requestParameters['service'] == null) { - throw new runtime.RequiredError( - 'service', - 'Required parameter "service" was null or undefined when calling wcsGetCoverageHandler().' - ); - } - - if (requestParameters['request'] == null) { - throw new runtime.RequiredError( - 'request', - 'Required parameter "request" was null or undefined when calling wcsGetCoverageHandler().' - ); - } - - if (requestParameters['format'] == null) { - throw new runtime.RequiredError( - 'format', - 'Required parameter "format" was null or undefined when calling wcsGetCoverageHandler().' - ); - } - - if (requestParameters['identifier'] == null) { - throw new runtime.RequiredError( - 'identifier', - 'Required parameter "identifier" was null or undefined when calling wcsGetCoverageHandler().' - ); - } - - if (requestParameters['boundingbox'] == null) { - throw new runtime.RequiredError( - 'boundingbox', - 'Required parameter "boundingbox" was null or undefined when calling wcsGetCoverageHandler().' - ); - } - - if (requestParameters['gridbasecrs'] == null) { - throw new runtime.RequiredError( - 'gridbasecrs', - 'Required parameter "gridbasecrs" was null or undefined when calling wcsGetCoverageHandler().' - ); - } - - const queryParameters: any = {}; - - if (requestParameters['version'] != null) { - queryParameters['version'] = requestParameters['version']; - } - - if (requestParameters['service'] != null) { - queryParameters['service'] = requestParameters['service']; - } - - if (requestParameters['request'] != null) { - queryParameters['request'] = requestParameters['request']; - } - - if (requestParameters['format'] != null) { - queryParameters['format'] = requestParameters['format']; - } - - if (requestParameters['identifier'] != null) { - queryParameters['identifier'] = requestParameters['identifier']; - } - - if (requestParameters['boundingbox'] != null) { - queryParameters['boundingbox'] = requestParameters['boundingbox']; - } - - if (requestParameters['gridbasecrs'] != null) { - queryParameters['gridbasecrs'] = requestParameters['gridbasecrs']; - } - - if (requestParameters['gridorigin'] != null) { - queryParameters['gridorigin'] = requestParameters['gridorigin']; - } - - if (requestParameters['gridoffsets'] != null) { - queryParameters['gridoffsets'] = requestParameters['gridoffsets']; - } - - if (requestParameters['time'] != null) { - queryParameters['time'] = requestParameters['time']; - } - - if (requestParameters['resx'] != null) { - queryParameters['resx'] = requestParameters['resx']; - } - - if (requestParameters['resy'] != null) { - queryParameters['resy'] = requestParameters['resy']; - } - - if (requestParameters['nodatavalue'] != null) { - queryParameters['nodatavalue'] = requestParameters['nodatavalue']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("session_token", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - - let urlPath = `/wcs/{workflow}?request=GetCoverage`; - urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.BlobApiResponse(response); - } - - /** - * Get WCS Coverage + * OGC WCS endpoint */ - async wcsGetCoverageHandler(requestParameters: WcsGetCoverageHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.wcsGetCoverageHandlerRaw(requestParameters, initOverrides); + async wcsHandler(requestParameters: WcsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.wcsHandlerRaw(requestParameters, initOverrides); return await response.value(); } diff --git a/typescript/src/apis/OGCWFSApi.ts b/typescript/src/apis/OGCWFSApi.ts index cce07e79..bd57ccb0 100644 --- a/typescript/src/apis/OGCWFSApi.ts +++ b/typescript/src/apis/OGCWFSApi.ts @@ -16,47 +16,36 @@ import * as runtime from '../runtime'; import type { GeoJson, - GetCapabilitiesRequest, - GetFeatureRequest, + WfsRequest, WfsService, WfsVersion, } from '../models/index'; import { GeoJsonFromJSON, GeoJsonToJSON, - GetCapabilitiesRequestFromJSON, - GetCapabilitiesRequestToJSON, - GetFeatureRequestFromJSON, - GetFeatureRequestToJSON, + WfsRequestFromJSON, + WfsRequestToJSON, WfsServiceFromJSON, WfsServiceToJSON, WfsVersionFromJSON, WfsVersionToJSON, } from '../models/index'; -export interface WfsCapabilitiesHandlerRequest { +export interface WfsHandlerRequest { workflow: string; - version: WfsVersion | null; - service: WfsService; - request: GetCapabilitiesRequest; -} - -export interface WfsFeatureHandlerRequest { - workflow: string; - service: WfsService; - request: GetFeatureRequest; - typeNames: string; - bbox: string; - version?: WfsVersion | null; - time?: string; - srsName?: string | null; - namespaces?: string | null; + request: WfsRequest; + bbox?: string; count?: number | null; - sortBy?: string | null; - resultType?: string | null; filter?: string | null; + namespaces?: string | null; propertyName?: string | null; - queryResolution?: string; + resultType?: string | null; + service?: WfsService; + sortBy?: string | null; + srsName?: string | null; + time?: string; + typeNames?: string; + version?: WfsVersion | null; } /** @@ -65,173 +54,75 @@ export interface WfsFeatureHandlerRequest { export class OGCWFSApi extends runtime.BaseAPI { /** - * Get WFS Capabilities + * OGC WFS endpoint */ - async wfsCapabilitiesHandlerRaw(requestParameters: WfsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async wfsHandlerRaw(requestParameters: WfsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['workflow'] == null) { throw new runtime.RequiredError( 'workflow', - 'Required parameter "workflow" was null or undefined when calling wfsCapabilitiesHandler().' - ); - } - - if (requestParameters['version'] == null) { - throw new runtime.RequiredError( - 'version', - 'Required parameter "version" was null or undefined when calling wfsCapabilitiesHandler().' - ); - } - - if (requestParameters['service'] == null) { - throw new runtime.RequiredError( - 'service', - 'Required parameter "service" was null or undefined when calling wfsCapabilitiesHandler().' + 'Required parameter "workflow" was null or undefined when calling wfsHandler().' ); } if (requestParameters['request'] == null) { throw new runtime.RequiredError( 'request', - 'Required parameter "request" was null or undefined when calling wfsCapabilitiesHandler().' + 'Required parameter "request" was null or undefined when calling wfsHandler().' ); } const queryParameters: any = {}; - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("session_token", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - - let urlPath = `/wfs/{workflow}?request=GetCapabilities`; - urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); - urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))); - urlPath = urlPath.replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))); - urlPath = urlPath.replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Get WFS Capabilities - */ - async wfsCapabilitiesHandler(requestParameters: WfsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.wfsCapabilitiesHandlerRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get WCS Features - */ - async wfsFeatureHandlerRaw(requestParameters: WfsFeatureHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['workflow'] == null) { - throw new runtime.RequiredError( - 'workflow', - 'Required parameter "workflow" was null or undefined when calling wfsFeatureHandler().' - ); - } - - if (requestParameters['service'] == null) { - throw new runtime.RequiredError( - 'service', - 'Required parameter "service" was null or undefined when calling wfsFeatureHandler().' - ); - } - - if (requestParameters['request'] == null) { - throw new runtime.RequiredError( - 'request', - 'Required parameter "request" was null or undefined when calling wfsFeatureHandler().' - ); + if (requestParameters['bbox'] != null) { + queryParameters['bbox'] = requestParameters['bbox']; } - if (requestParameters['typeNames'] == null) { - throw new runtime.RequiredError( - 'typeNames', - 'Required parameter "typeNames" was null or undefined when calling wfsFeatureHandler().' - ); + if (requestParameters['count'] != null) { + queryParameters['count'] = requestParameters['count']; } - if (requestParameters['bbox'] == null) { - throw new runtime.RequiredError( - 'bbox', - 'Required parameter "bbox" was null or undefined when calling wfsFeatureHandler().' - ); + if (requestParameters['filter'] != null) { + queryParameters['filter'] = requestParameters['filter']; } - const queryParameters: any = {}; - - if (requestParameters['version'] != null) { - queryParameters['version'] = requestParameters['version']; + if (requestParameters['namespaces'] != null) { + queryParameters['namespaces'] = requestParameters['namespaces']; } - if (requestParameters['service'] != null) { - queryParameters['service'] = requestParameters['service']; + if (requestParameters['propertyName'] != null) { + queryParameters['propertyName'] = requestParameters['propertyName']; } if (requestParameters['request'] != null) { queryParameters['request'] = requestParameters['request']; } - if (requestParameters['typeNames'] != null) { - queryParameters['typeNames'] = requestParameters['typeNames']; - } - - if (requestParameters['bbox'] != null) { - queryParameters['bbox'] = requestParameters['bbox']; - } - - if (requestParameters['time'] != null) { - queryParameters['time'] = requestParameters['time']; - } - - if (requestParameters['srsName'] != null) { - queryParameters['srsName'] = requestParameters['srsName']; - } - - if (requestParameters['namespaces'] != null) { - queryParameters['namespaces'] = requestParameters['namespaces']; + if (requestParameters['resultType'] != null) { + queryParameters['resultType'] = requestParameters['resultType']; } - if (requestParameters['count'] != null) { - queryParameters['count'] = requestParameters['count']; + if (requestParameters['service'] != null) { + queryParameters['service'] = requestParameters['service']; } if (requestParameters['sortBy'] != null) { queryParameters['sortBy'] = requestParameters['sortBy']; } - if (requestParameters['resultType'] != null) { - queryParameters['resultType'] = requestParameters['resultType']; + if (requestParameters['srsName'] != null) { + queryParameters['srsName'] = requestParameters['srsName']; } - if (requestParameters['filter'] != null) { - queryParameters['filter'] = requestParameters['filter']; + if (requestParameters['time'] != null) { + queryParameters['time'] = requestParameters['time']; } - if (requestParameters['propertyName'] != null) { - queryParameters['propertyName'] = requestParameters['propertyName']; + if (requestParameters['typeNames'] != null) { + queryParameters['typeNames'] = requestParameters['typeNames']; } - if (requestParameters['queryResolution'] != null) { - queryParameters['queryResolution'] = requestParameters['queryResolution']; + if (requestParameters['version'] != null) { + queryParameters['version'] = requestParameters['version']; } const headerParameters: runtime.HTTPHeaders = {}; @@ -245,7 +136,7 @@ export class OGCWFSApi extends runtime.BaseAPI { } } - let urlPath = `/wfs/{workflow}?request=GetFeature`; + let urlPath = `/wfs/{workflow}`; urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); const response = await this.request({ @@ -259,10 +150,10 @@ export class OGCWFSApi extends runtime.BaseAPI { } /** - * Get WCS Features + * OGC WFS endpoint */ - async wfsFeatureHandler(requestParameters: WfsFeatureHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.wfsFeatureHandlerRaw(requestParameters, initOverrides); + async wfsHandler(requestParameters: WfsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.wfsHandlerRaw(requestParameters, initOverrides); return await response.value(); } diff --git a/typescript/src/apis/OGCWMSApi.ts b/typescript/src/apis/OGCWMSApi.ts index e6406dec..1f23b455 100644 --- a/typescript/src/apis/OGCWMSApi.ts +++ b/typescript/src/apis/OGCWMSApi.ts @@ -15,69 +15,47 @@ import * as runtime from '../runtime'; import type { - GetCapabilitiesFormat, - GetCapabilitiesRequest, - GetLegendGraphicRequest, GetMapExceptionFormat, - GetMapFormat, - GetMapRequest, + WmsRequest, + WmsResponseFormat, WmsService, WmsVersion, } from '../models/index'; import { - GetCapabilitiesFormatFromJSON, - GetCapabilitiesFormatToJSON, - GetCapabilitiesRequestFromJSON, - GetCapabilitiesRequestToJSON, - GetLegendGraphicRequestFromJSON, - GetLegendGraphicRequestToJSON, GetMapExceptionFormatFromJSON, GetMapExceptionFormatToJSON, - GetMapFormatFromJSON, - GetMapFormatToJSON, - GetMapRequestFromJSON, - GetMapRequestToJSON, + WmsRequestFromJSON, + WmsRequestToJSON, + WmsResponseFormatFromJSON, + WmsResponseFormatToJSON, WmsServiceFromJSON, WmsServiceToJSON, WmsVersionFromJSON, WmsVersionToJSON, } from '../models/index'; -export interface WmsCapabilitiesHandlerRequest { +export interface WmsHandlerRequest { workflow: string; - version: WmsVersion | null; - service: WmsService; - request: GetCapabilitiesRequest; - format: GetCapabilitiesFormat | null; -} - -export interface WmsLegendGraphicHandlerRequest { - workflow: string; - version: WmsVersion; - service: WmsService; - request: GetLegendGraphicRequest; - layer: string; -} - -export interface WmsMapHandlerRequest { - workflow: string; - version: WmsVersion; - service: WmsService; - request: GetMapRequest; - width: number; - height: number; - bbox: string; - format: GetMapFormat; - layers: string; - styles: string; - crs?: string | null; - time?: string; - transparent?: boolean | null; + request: WmsRequest; + bbox?: string; bgcolor?: string | null; - sld?: string | null; - sldBody?: string | null; + crs?: string | null; elevation?: string | null; exceptions?: GetMapExceptionFormat | null; + format?: WmsResponseFormat | null; + height?: number; + infoFormat?: string | null; + layer?: string; + layers?: string; + queryLayers?: string; + service?: WmsService; + sld?: string | null; + sldBody?: string | null; + styles?: string; + time?: string; + transparent?: boolean | null; + version?: WmsVersion | null; + width?: number; } /** @@ -86,272 +64,83 @@ export interface WmsMapHandlerRequest { export class OGCWMSApi extends runtime.BaseAPI { /** - * Get WMS Capabilities - */ - async wmsCapabilitiesHandlerRaw(requestParameters: WmsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['workflow'] == null) { - throw new runtime.RequiredError( - 'workflow', - 'Required parameter "workflow" was null or undefined when calling wmsCapabilitiesHandler().' - ); - } - - if (requestParameters['version'] == null) { - throw new runtime.RequiredError( - 'version', - 'Required parameter "version" was null or undefined when calling wmsCapabilitiesHandler().' - ); - } - - if (requestParameters['service'] == null) { - throw new runtime.RequiredError( - 'service', - 'Required parameter "service" was null or undefined when calling wmsCapabilitiesHandler().' - ); - } - - if (requestParameters['request'] == null) { - throw new runtime.RequiredError( - 'request', - 'Required parameter "request" was null or undefined when calling wmsCapabilitiesHandler().' - ); - } - - if (requestParameters['format'] == null) { - throw new runtime.RequiredError( - 'format', - 'Required parameter "format" was null or undefined when calling wmsCapabilitiesHandler().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("session_token", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - - let urlPath = `/wms/{workflow}?request=GetCapabilities`; - urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); - urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))); - urlPath = urlPath.replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))); - urlPath = urlPath.replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))); - urlPath = urlPath.replace(`{${"format"}}`, encodeURIComponent(String(requestParameters['format']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - if (this.isJsonMime(response.headers.get('content-type'))) { - return new runtime.JSONApiResponse(response); - } else { - return new runtime.TextApiResponse(response) as any; - } - } - - /** - * Get WMS Capabilities + * OGC WMS endpoint */ - async wmsCapabilitiesHandler(requestParameters: WmsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.wmsCapabilitiesHandlerRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get WMS Legend Graphic - */ - async wmsLegendGraphicHandlerRaw(requestParameters: WmsLegendGraphicHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async wmsHandlerRaw(requestParameters: WmsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['workflow'] == null) { throw new runtime.RequiredError( 'workflow', - 'Required parameter "workflow" was null or undefined when calling wmsLegendGraphicHandler().' - ); - } - - if (requestParameters['version'] == null) { - throw new runtime.RequiredError( - 'version', - 'Required parameter "version" was null or undefined when calling wmsLegendGraphicHandler().' - ); - } - - if (requestParameters['service'] == null) { - throw new runtime.RequiredError( - 'service', - 'Required parameter "service" was null or undefined when calling wmsLegendGraphicHandler().' + 'Required parameter "workflow" was null or undefined when calling wmsHandler().' ); } if (requestParameters['request'] == null) { throw new runtime.RequiredError( 'request', - 'Required parameter "request" was null or undefined when calling wmsLegendGraphicHandler().' - ); - } - - if (requestParameters['layer'] == null) { - throw new runtime.RequiredError( - 'layer', - 'Required parameter "layer" was null or undefined when calling wmsLegendGraphicHandler().' + 'Required parameter "request" was null or undefined when calling wmsHandler().' ); } const queryParameters: any = {}; - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("session_token", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - - let urlPath = `/wms/{workflow}?request=GetLegendGraphic`; - urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); - urlPath = urlPath.replace(`{${"version"}}`, encodeURIComponent(String(requestParameters['version']))); - urlPath = urlPath.replace(`{${"service"}}`, encodeURIComponent(String(requestParameters['service']))); - urlPath = urlPath.replace(`{${"request"}}`, encodeURIComponent(String(requestParameters['request']))); - urlPath = urlPath.replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters['layer']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - * Get WMS Legend Graphic - */ - async wmsLegendGraphicHandler(requestParameters: WmsLegendGraphicHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.wmsLegendGraphicHandlerRaw(requestParameters, initOverrides); - } - - /** - * Get WMS Map - */ - async wmsMapHandlerRaw(requestParameters: WmsMapHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['workflow'] == null) { - throw new runtime.RequiredError( - 'workflow', - 'Required parameter "workflow" was null or undefined when calling wmsMapHandler().' - ); - } - - if (requestParameters['version'] == null) { - throw new runtime.RequiredError( - 'version', - 'Required parameter "version" was null or undefined when calling wmsMapHandler().' - ); + if (requestParameters['bbox'] != null) { + queryParameters['bbox'] = requestParameters['bbox']; } - if (requestParameters['service'] == null) { - throw new runtime.RequiredError( - 'service', - 'Required parameter "service" was null or undefined when calling wmsMapHandler().' - ); + if (requestParameters['bgcolor'] != null) { + queryParameters['bgcolor'] = requestParameters['bgcolor']; } - if (requestParameters['request'] == null) { - throw new runtime.RequiredError( - 'request', - 'Required parameter "request" was null or undefined when calling wmsMapHandler().' - ); + if (requestParameters['crs'] != null) { + queryParameters['crs'] = requestParameters['crs']; } - if (requestParameters['width'] == null) { - throw new runtime.RequiredError( - 'width', - 'Required parameter "width" was null or undefined when calling wmsMapHandler().' - ); + if (requestParameters['elevation'] != null) { + queryParameters['elevation'] = requestParameters['elevation']; } - if (requestParameters['height'] == null) { - throw new runtime.RequiredError( - 'height', - 'Required parameter "height" was null or undefined when calling wmsMapHandler().' - ); + if (requestParameters['exceptions'] != null) { + queryParameters['exceptions'] = requestParameters['exceptions']; } - if (requestParameters['bbox'] == null) { - throw new runtime.RequiredError( - 'bbox', - 'Required parameter "bbox" was null or undefined when calling wmsMapHandler().' - ); + if (requestParameters['format'] != null) { + queryParameters['format'] = requestParameters['format']; } - if (requestParameters['format'] == null) { - throw new runtime.RequiredError( - 'format', - 'Required parameter "format" was null or undefined when calling wmsMapHandler().' - ); + if (requestParameters['height'] != null) { + queryParameters['height'] = requestParameters['height']; } - if (requestParameters['layers'] == null) { - throw new runtime.RequiredError( - 'layers', - 'Required parameter "layers" was null or undefined when calling wmsMapHandler().' - ); + if (requestParameters['infoFormat'] != null) { + queryParameters['info_format'] = requestParameters['infoFormat']; } - if (requestParameters['styles'] == null) { - throw new runtime.RequiredError( - 'styles', - 'Required parameter "styles" was null or undefined when calling wmsMapHandler().' - ); + if (requestParameters['layer'] != null) { + queryParameters['layer'] = requestParameters['layer']; } - const queryParameters: any = {}; - - if (requestParameters['version'] != null) { - queryParameters['version'] = requestParameters['version']; + if (requestParameters['layers'] != null) { + queryParameters['layers'] = requestParameters['layers']; } - if (requestParameters['service'] != null) { - queryParameters['service'] = requestParameters['service']; + if (requestParameters['queryLayers'] != null) { + queryParameters['query_layers'] = requestParameters['queryLayers']; } if (requestParameters['request'] != null) { queryParameters['request'] = requestParameters['request']; } - if (requestParameters['width'] != null) { - queryParameters['width'] = requestParameters['width']; - } - - if (requestParameters['height'] != null) { - queryParameters['height'] = requestParameters['height']; - } - - if (requestParameters['bbox'] != null) { - queryParameters['bbox'] = requestParameters['bbox']; - } - - if (requestParameters['format'] != null) { - queryParameters['format'] = requestParameters['format']; + if (requestParameters['service'] != null) { + queryParameters['service'] = requestParameters['service']; } - if (requestParameters['layers'] != null) { - queryParameters['layers'] = requestParameters['layers']; + if (requestParameters['sld'] != null) { + queryParameters['sld'] = requestParameters['sld']; } - if (requestParameters['crs'] != null) { - queryParameters['crs'] = requestParameters['crs']; + if (requestParameters['sldBody'] != null) { + queryParameters['sld_body'] = requestParameters['sldBody']; } if (requestParameters['styles'] != null) { @@ -366,24 +155,12 @@ export class OGCWMSApi extends runtime.BaseAPI { queryParameters['transparent'] = requestParameters['transparent']; } - if (requestParameters['bgcolor'] != null) { - queryParameters['bgcolor'] = requestParameters['bgcolor']; - } - - if (requestParameters['sld'] != null) { - queryParameters['sld'] = requestParameters['sld']; - } - - if (requestParameters['sldBody'] != null) { - queryParameters['sld_body'] = requestParameters['sldBody']; - } - - if (requestParameters['elevation'] != null) { - queryParameters['elevation'] = requestParameters['elevation']; + if (requestParameters['version'] != null) { + queryParameters['version'] = requestParameters['version']; } - if (requestParameters['exceptions'] != null) { - queryParameters['exceptions'] = requestParameters['exceptions']; + if (requestParameters['width'] != null) { + queryParameters['width'] = requestParameters['width']; } const headerParameters: runtime.HTTPHeaders = {}; @@ -397,7 +174,7 @@ export class OGCWMSApi extends runtime.BaseAPI { } } - let urlPath = `/wms/{workflow}?request=GetMap`; + let urlPath = `/wms/{workflow}`; urlPath = urlPath.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters['workflow']))); const response = await this.request({ @@ -411,10 +188,10 @@ export class OGCWMSApi extends runtime.BaseAPI { } /** - * Get WMS Map + * OGC WMS endpoint */ - async wmsMapHandler(requestParameters: WmsMapHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.wmsMapHandlerRaw(requestParameters, initOverrides); + async wmsHandler(requestParameters: WmsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.wmsHandlerRaw(requestParameters, initOverrides); return await response.value(); } diff --git a/typescript/src/models/DescribeCoverageRequest.ts b/typescript/src/models/DescribeCoverageRequest.ts deleted file mode 100644 index ece1c950..00000000 --- a/typescript/src/models/DescribeCoverageRequest.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * - * @export - */ -export const DescribeCoverageRequest = { - DescribeCoverage: 'DescribeCoverage' -} as const; -export type DescribeCoverageRequest = typeof DescribeCoverageRequest[keyof typeof DescribeCoverageRequest]; - - -export function instanceOfDescribeCoverageRequest(value: any): boolean { - for (const key in DescribeCoverageRequest) { - if (Object.prototype.hasOwnProperty.call(DescribeCoverageRequest, key)) { - if (DescribeCoverageRequest[key as keyof typeof DescribeCoverageRequest] === value) { - return true; - } - } - } - return false; -} - -export function DescribeCoverageRequestFromJSON(json: any): DescribeCoverageRequest { - return DescribeCoverageRequestFromJSONTyped(json, false); -} - -export function DescribeCoverageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DescribeCoverageRequest { - return json as DescribeCoverageRequest; -} - -export function DescribeCoverageRequestToJSON(value?: DescribeCoverageRequest | null): any { - return value as any; -} - -export function DescribeCoverageRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): DescribeCoverageRequest { - return value as DescribeCoverageRequest; -} - diff --git a/typescript/src/models/GetCapabilitiesFormat.ts b/typescript/src/models/GetCapabilitiesFormat.ts deleted file mode 100644 index 09ab1286..00000000 --- a/typescript/src/models/GetCapabilitiesFormat.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * - * @export - */ -export const GetCapabilitiesFormat = { - TextXml: 'text/xml' -} as const; -export type GetCapabilitiesFormat = typeof GetCapabilitiesFormat[keyof typeof GetCapabilitiesFormat]; - - -export function instanceOfGetCapabilitiesFormat(value: any): boolean { - for (const key in GetCapabilitiesFormat) { - if (Object.prototype.hasOwnProperty.call(GetCapabilitiesFormat, key)) { - if (GetCapabilitiesFormat[key as keyof typeof GetCapabilitiesFormat] === value) { - return true; - } - } - } - return false; -} - -export function GetCapabilitiesFormatFromJSON(json: any): GetCapabilitiesFormat { - return GetCapabilitiesFormatFromJSONTyped(json, false); -} - -export function GetCapabilitiesFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCapabilitiesFormat { - return json as GetCapabilitiesFormat; -} - -export function GetCapabilitiesFormatToJSON(value?: GetCapabilitiesFormat | null): any { - return value as any; -} - -export function GetCapabilitiesFormatToJSONTyped(value: any, ignoreDiscriminator: boolean): GetCapabilitiesFormat { - return value as GetCapabilitiesFormat; -} - diff --git a/typescript/src/models/GetCapabilitiesRequest.ts b/typescript/src/models/GetCapabilitiesRequest.ts deleted file mode 100644 index ba87f34f..00000000 --- a/typescript/src/models/GetCapabilitiesRequest.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * - * @export - */ -export const GetCapabilitiesRequest = { - GetCapabilities: 'GetCapabilities' -} as const; -export type GetCapabilitiesRequest = typeof GetCapabilitiesRequest[keyof typeof GetCapabilitiesRequest]; - - -export function instanceOfGetCapabilitiesRequest(value: any): boolean { - for (const key in GetCapabilitiesRequest) { - if (Object.prototype.hasOwnProperty.call(GetCapabilitiesRequest, key)) { - if (GetCapabilitiesRequest[key as keyof typeof GetCapabilitiesRequest] === value) { - return true; - } - } - } - return false; -} - -export function GetCapabilitiesRequestFromJSON(json: any): GetCapabilitiesRequest { - return GetCapabilitiesRequestFromJSONTyped(json, false); -} - -export function GetCapabilitiesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCapabilitiesRequest { - return json as GetCapabilitiesRequest; -} - -export function GetCapabilitiesRequestToJSON(value?: GetCapabilitiesRequest | null): any { - return value as any; -} - -export function GetCapabilitiesRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): GetCapabilitiesRequest { - return value as GetCapabilitiesRequest; -} - diff --git a/typescript/src/models/GetCoverageRequest.ts b/typescript/src/models/GetCoverageRequest.ts deleted file mode 100644 index ad5b3234..00000000 --- a/typescript/src/models/GetCoverageRequest.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * - * @export - */ -export const GetCoverageRequest = { - GetCoverage: 'GetCoverage' -} as const; -export type GetCoverageRequest = typeof GetCoverageRequest[keyof typeof GetCoverageRequest]; - - -export function instanceOfGetCoverageRequest(value: any): boolean { - for (const key in GetCoverageRequest) { - if (Object.prototype.hasOwnProperty.call(GetCoverageRequest, key)) { - if (GetCoverageRequest[key as keyof typeof GetCoverageRequest] === value) { - return true; - } - } - } - return false; -} - -export function GetCoverageRequestFromJSON(json: any): GetCoverageRequest { - return GetCoverageRequestFromJSONTyped(json, false); -} - -export function GetCoverageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCoverageRequest { - return json as GetCoverageRequest; -} - -export function GetCoverageRequestToJSON(value?: GetCoverageRequest | null): any { - return value as any; -} - -export function GetCoverageRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): GetCoverageRequest { - return value as GetCoverageRequest; -} - diff --git a/typescript/src/models/GetFeatureRequest.ts b/typescript/src/models/GetFeatureRequest.ts deleted file mode 100644 index 4c9463c5..00000000 --- a/typescript/src/models/GetFeatureRequest.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * - * @export - */ -export const GetFeatureRequest = { - GetFeature: 'GetFeature' -} as const; -export type GetFeatureRequest = typeof GetFeatureRequest[keyof typeof GetFeatureRequest]; - - -export function instanceOfGetFeatureRequest(value: any): boolean { - for (const key in GetFeatureRequest) { - if (Object.prototype.hasOwnProperty.call(GetFeatureRequest, key)) { - if (GetFeatureRequest[key as keyof typeof GetFeatureRequest] === value) { - return true; - } - } - } - return false; -} - -export function GetFeatureRequestFromJSON(json: any): GetFeatureRequest { - return GetFeatureRequestFromJSONTyped(json, false); -} - -export function GetFeatureRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFeatureRequest { - return json as GetFeatureRequest; -} - -export function GetFeatureRequestToJSON(value?: GetFeatureRequest | null): any { - return value as any; -} - -export function GetFeatureRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): GetFeatureRequest { - return value as GetFeatureRequest; -} - diff --git a/typescript/src/models/GetLegendGraphicRequest.ts b/typescript/src/models/GetLegendGraphicRequest.ts deleted file mode 100644 index 95d33052..00000000 --- a/typescript/src/models/GetLegendGraphicRequest.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * - * @export - */ -export const GetLegendGraphicRequest = { - GetLegendGraphic: 'GetLegendGraphic' -} as const; -export type GetLegendGraphicRequest = typeof GetLegendGraphicRequest[keyof typeof GetLegendGraphicRequest]; - - -export function instanceOfGetLegendGraphicRequest(value: any): boolean { - for (const key in GetLegendGraphicRequest) { - if (Object.prototype.hasOwnProperty.call(GetLegendGraphicRequest, key)) { - if (GetLegendGraphicRequest[key as keyof typeof GetLegendGraphicRequest] === value) { - return true; - } - } - } - return false; -} - -export function GetLegendGraphicRequestFromJSON(json: any): GetLegendGraphicRequest { - return GetLegendGraphicRequestFromJSONTyped(json, false); -} - -export function GetLegendGraphicRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetLegendGraphicRequest { - return json as GetLegendGraphicRequest; -} - -export function GetLegendGraphicRequestToJSON(value?: GetLegendGraphicRequest | null): any { - return value as any; -} - -export function GetLegendGraphicRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): GetLegendGraphicRequest { - return value as GetLegendGraphicRequest; -} - diff --git a/typescript/src/models/GetMapFormat.ts b/typescript/src/models/GetMapFormat.ts deleted file mode 100644 index af93727a..00000000 --- a/typescript/src/models/GetMapFormat.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * - * @export - */ -export const GetMapFormat = { - ImagePng: 'image/png' -} as const; -export type GetMapFormat = typeof GetMapFormat[keyof typeof GetMapFormat]; - - -export function instanceOfGetMapFormat(value: any): boolean { - for (const key in GetMapFormat) { - if (Object.prototype.hasOwnProperty.call(GetMapFormat, key)) { - if (GetMapFormat[key as keyof typeof GetMapFormat] === value) { - return true; - } - } - } - return false; -} - -export function GetMapFormatFromJSON(json: any): GetMapFormat { - return GetMapFormatFromJSONTyped(json, false); -} - -export function GetMapFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetMapFormat { - return json as GetMapFormat; -} - -export function GetMapFormatToJSON(value?: GetMapFormat | null): any { - return value as any; -} - -export function GetMapFormatToJSONTyped(value: any, ignoreDiscriminator: boolean): GetMapFormat { - return value as GetMapFormat; -} - diff --git a/typescript/src/models/GetMapRequest.ts b/typescript/src/models/GetMapRequest.ts deleted file mode 100644 index 30321c6d..00000000 --- a/typescript/src/models/GetMapRequest.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * - * @export - */ -export const GetMapRequest = { - GetMap: 'GetMap' -} as const; -export type GetMapRequest = typeof GetMapRequest[keyof typeof GetMapRequest]; - - -export function instanceOfGetMapRequest(value: any): boolean { - for (const key in GetMapRequest) { - if (Object.prototype.hasOwnProperty.call(GetMapRequest, key)) { - if (GetMapRequest[key as keyof typeof GetMapRequest] === value) { - return true; - } - } - } - return false; -} - -export function GetMapRequestFromJSON(json: any): GetMapRequest { - return GetMapRequestFromJSONTyped(json, false); -} - -export function GetMapRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetMapRequest { - return json as GetMapRequest; -} - -export function GetMapRequestToJSON(value?: GetMapRequest | null): any { - return value as any; -} - -export function GetMapRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): GetMapRequest { - return value as GetMapRequest; -} - diff --git a/typescript/src/models/WcsRequest.ts b/typescript/src/models/WcsRequest.ts new file mode 100644 index 00000000..e573a76b --- /dev/null +++ b/typescript/src/models/WcsRequest.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const WcsRequest = { + GetCapabilities: 'GetCapabilities', + DescribeCoverage: 'DescribeCoverage', + GetCoverage: 'GetCoverage' +} as const; +export type WcsRequest = typeof WcsRequest[keyof typeof WcsRequest]; + + +export function instanceOfWcsRequest(value: any): boolean { + for (const key in WcsRequest) { + if (Object.prototype.hasOwnProperty.call(WcsRequest, key)) { + if (WcsRequest[key as keyof typeof WcsRequest] === value) { + return true; + } + } + } + return false; +} + +export function WcsRequestFromJSON(json: any): WcsRequest { + return WcsRequestFromJSONTyped(json, false); +} + +export function WcsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WcsRequest { + return json as WcsRequest; +} + +export function WcsRequestToJSON(value?: WcsRequest | null): any { + return value as any; +} + +export function WcsRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): WcsRequest { + return value as WcsRequest; +} + diff --git a/typescript/src/models/WfsRequest.ts b/typescript/src/models/WfsRequest.ts new file mode 100644 index 00000000..8b84df6c --- /dev/null +++ b/typescript/src/models/WfsRequest.ts @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const WfsRequest = { + GetCapabilities: 'GetCapabilities', + GetFeature: 'GetFeature' +} as const; +export type WfsRequest = typeof WfsRequest[keyof typeof WfsRequest]; + + +export function instanceOfWfsRequest(value: any): boolean { + for (const key in WfsRequest) { + if (Object.prototype.hasOwnProperty.call(WfsRequest, key)) { + if (WfsRequest[key as keyof typeof WfsRequest] === value) { + return true; + } + } + } + return false; +} + +export function WfsRequestFromJSON(json: any): WfsRequest { + return WfsRequestFromJSONTyped(json, false); +} + +export function WfsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WfsRequest { + return json as WfsRequest; +} + +export function WfsRequestToJSON(value?: WfsRequest | null): any { + return value as any; +} + +export function WfsRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): WfsRequest { + return value as WfsRequest; +} + diff --git a/typescript/src/models/WmsRequest.ts b/typescript/src/models/WmsRequest.ts new file mode 100644 index 00000000..9b758302 --- /dev/null +++ b/typescript/src/models/WmsRequest.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const WmsRequest = { + GetCapabilities: 'GetCapabilities', + GetMap: 'GetMap', + GetFeatureInfo: 'GetFeatureInfo', + GetStyles: 'GetStyles', + GetLegendGraphic: 'GetLegendGraphic' +} as const; +export type WmsRequest = typeof WmsRequest[keyof typeof WmsRequest]; + + +export function instanceOfWmsRequest(value: any): boolean { + for (const key in WmsRequest) { + if (Object.prototype.hasOwnProperty.call(WmsRequest, key)) { + if (WmsRequest[key as keyof typeof WmsRequest] === value) { + return true; + } + } + } + return false; +} + +export function WmsRequestFromJSON(json: any): WmsRequest { + return WmsRequestFromJSONTyped(json, false); +} + +export function WmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WmsRequest { + return json as WmsRequest; +} + +export function WmsRequestToJSON(value?: WmsRequest | null): any { + return value as any; +} + +export function WmsRequestToJSONTyped(value: any, ignoreDiscriminator: boolean): WmsRequest { + return value as WmsRequest; +} + diff --git a/typescript/src/models/WmsResponseFormat.ts b/typescript/src/models/WmsResponseFormat.ts new file mode 100644 index 00000000..71cd53b6 --- /dev/null +++ b/typescript/src/models/WmsResponseFormat.ts @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const WmsResponseFormat = { + TextXml: 'text/xml', + ImagePng: 'image/png' +} as const; +export type WmsResponseFormat = typeof WmsResponseFormat[keyof typeof WmsResponseFormat]; + + +export function instanceOfWmsResponseFormat(value: any): boolean { + for (const key in WmsResponseFormat) { + if (Object.prototype.hasOwnProperty.call(WmsResponseFormat, key)) { + if (WmsResponseFormat[key as keyof typeof WmsResponseFormat] === value) { + return true; + } + } + } + return false; +} + +export function WmsResponseFormatFromJSON(json: any): WmsResponseFormat { + return WmsResponseFormatFromJSONTyped(json, false); +} + +export function WmsResponseFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): WmsResponseFormat { + return json as WmsResponseFormat; +} + +export function WmsResponseFormatToJSON(value?: WmsResponseFormat | null): any { + return value as any; +} + +export function WmsResponseFormatToJSONTyped(value: any, ignoreDiscriminator: boolean): WmsResponseFormat { + return value as WmsResponseFormat; +} + diff --git a/typescript/src/models/index.ts b/typescript/src/models/index.ts index fb12b954..81316b39 100644 --- a/typescript/src/models/index.ts +++ b/typescript/src/models/index.ts @@ -41,7 +41,6 @@ export * from './DatasetNameResponse'; export * from './DatasetResource'; export * from './DerivedColor'; export * from './DerivedNumber'; -export * from './DescribeCoverageRequest'; export * from './EbvPortalDataProviderDefinition'; export * from './EdrDataProviderDefinition'; export * from './EdrVectorSpec'; @@ -64,15 +63,8 @@ export * from './GdalMultiBand'; export * from './GdalSourceTimePlaceholder'; export * from './GeoJson'; export * from './GeoTransform'; -export * from './GetCapabilitiesFormat'; -export * from './GetCapabilitiesRequest'; export * from './GetCoverageFormat'; -export * from './GetCoverageRequest'; -export * from './GetFeatureRequest'; -export * from './GetLegendGraphicRequest'; export * from './GetMapExceptionFormat'; -export * from './GetMapFormat'; -export * from './GetMapRequest'; export * from './GfbioAbcdDataProviderDefinition'; export * from './GfbioCollectionsDataProviderDefinition'; export * from './GridBoundingBox2D'; @@ -242,11 +234,15 @@ export * from './VectorResultDescriptor'; export * from './Volume'; export * from './VolumeFileLayersResponse'; export * from './WcsBoundingbox'; +export * from './WcsRequest'; export * from './WcsService'; export * from './WcsVersion'; +export * from './WfsRequest'; export * from './WfsService'; export * from './WfsVersion'; export * from './WildliveDataConnectorDefinition'; +export * from './WmsRequest'; +export * from './WmsResponseFormat'; export * from './WmsService'; export * from './WmsVersion'; export * from './Workflow'; diff --git a/util/ui-dev-update.sh b/util/dev-update.sh similarity index 68% rename from util/ui-dev-update.sh rename to util/dev-update.sh index 70c28906..0182231a 100755 --- a/util/ui-dev-update.sh +++ b/util/dev-update.sh @@ -4,15 +4,17 @@ # # Usage (from the repo root): ./util/ui-dev-update.sh [-a] [commit-message] # -# this script uses the OpenAPI json from a Geo Engine instance running on port 3030 +# this script uses the OpenAPI json generated via cli in a backend located next to the openapi-client # it generates the openapi-client and pushes it to the current branch (-a to amend the last commit) # then it updates the geoengine-ui's openapi-client dependency to the development branch # note: the geoengine-ui git repo must be in the same directory as the openapi-client repo set -e -wget -O .generation/input/openapi.json \ - https://raw.githubusercontent.com/geo-engine/geoengine/refs/heads/main/openapi.json +cd ../geoengine +cargo run --bin geoengine-cli openapi > ../openapi-client/.generation/input/openapi.json +cd - + .generation/generate.py --no-spec-fetch --no-container-build python .generation/generate.py --no-spec-fetch --no-container-build typescript @@ -46,6 +48,16 @@ fi cd ../geoengine-ui npm uninstall @geoengine/openapi-client -npm install @geoengine/openapi-client@https://gitpkg.now.sh/geo-engine/openapi-client/typescript?${current_branch} +npm install @geoengine/openapi-client@"https://github.com/geo-engine/openapi-client.git#${current_branch}" cd - + +cd ../geoengine-python + +source .venv/bin/activate +pip uninstall geoengine-openapi-client -y +pip install "geoengine-openapi-client @ git+https://github.com/geo-engine/openapi-client@${current_branch}#subdirectory=python" +deactivate + +cd - +