geonode-pycsw 3.0.0b2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- geonode_pycsw-3.0.0b2.dist-info/METADATA +73 -0
- geonode_pycsw-3.0.0b2.dist-info/RECORD +382 -0
- geonode_pycsw-3.0.0b2.dist-info/WHEEL +5 -0
- geonode_pycsw-3.0.0b2.dist-info/entry_points.txt +2 -0
- geonode_pycsw-3.0.0b2.dist-info/licenses/LICENSE.txt +26 -0
- geonode_pycsw-3.0.0b2.dist-info/top_level.txt +1 -0
- pycsw/__init__.py +33 -0
- pycsw/core/__init__.py +29 -0
- pycsw/core/admin.py +703 -0
- pycsw/core/config.py +621 -0
- pycsw/core/etree.py +43 -0
- pycsw/core/formats/__init__.py +29 -0
- pycsw/core/formats/fmt_json.py +69 -0
- pycsw/core/log.py +71 -0
- pycsw/core/metadata.py +1996 -0
- pycsw/core/pygeofilter_evaluate.py +83 -0
- pycsw/core/repository.py +941 -0
- pycsw/core/schemas/ogc/cat/csw/3.0/_wrapper.xsd +14 -0
- pycsw/core/schemas/ogc/cat/csw/3.0/cswAll.xsd +33 -0
- pycsw/core/schemas/ogc/cat/csw/3.0/cswCommon.xsd +71 -0
- pycsw/core/schemas/ogc/cat/csw/3.0/cswGetCapabilities.xsd +80 -0
- pycsw/core/schemas/ogc/cat/csw/3.0/cswGetDomain.xsd +146 -0
- pycsw/core/schemas/ogc/cat/csw/3.0/cswGetRecordById.xsd +58 -0
- pycsw/core/schemas/ogc/cat/csw/3.0/cswGetRecords.xsd +391 -0
- pycsw/core/schemas/ogc/cat/csw/3.0/cswHarvest.xsd +95 -0
- pycsw/core/schemas/ogc/cat/csw/3.0/cswTransaction.xsd +187 -0
- pycsw/core/schemas/ogc/cat/csw/3.0/cswUnHarvest.xsd +77 -0
- pycsw/core/schemas/ogc/cat/csw/3.0/rec-dcmes.xsd +245 -0
- pycsw/core/schemas/ogc/cat/csw/3.0/rec-dcterms.xsd +101 -0
- pycsw/core/schemas/ogc/cat/csw/3.0/record.xsd +170 -0
- pycsw/core/schemas/ogc/csw/2.0.2/CSW-discovery.xsd +494 -0
- pycsw/core/schemas/ogc/csw/2.0.2/CSW-publication.xsd +242 -0
- pycsw/core/schemas/ogc/csw/2.0.2/rec-dcmes.xsd +199 -0
- pycsw/core/schemas/ogc/csw/2.0.2/rec-dcterms.xsd +94 -0
- pycsw/core/schemas/ogc/csw/2.0.2/record.xsd +138 -0
- pycsw/core/schemas/ogc/filter/1.1.0/expr.xsd +67 -0
- pycsw/core/schemas/ogc/filter/1.1.0/filter.xsd +265 -0
- pycsw/core/schemas/ogc/filter/1.1.0/filterCapabilities.xsd +171 -0
- pycsw/core/schemas/ogc/filter/1.1.0/sort.xsd +46 -0
- pycsw/core/schemas/ogc/filter/2.0/_wrapper.xsd +5 -0
- pycsw/core/schemas/ogc/filter/2.0/expr.xsd +44 -0
- pycsw/core/schemas/ogc/filter/2.0/filter.xsd +396 -0
- pycsw/core/schemas/ogc/filter/2.0/filterAll.xsd +23 -0
- pycsw/core/schemas/ogc/filter/2.0/filterCapabilities.xsd +286 -0
- pycsw/core/schemas/ogc/filter/2.0/query.xsd +70 -0
- pycsw/core/schemas/ogc/filter/2.0/sort.xsd +49 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/basicTypes.xsd +278 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/coordinateOperations.xsd +789 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/coordinateReferenceSystems.xsd +429 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/coordinateSystems.xsd +408 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/coverage.xsd +451 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/dataQuality.xsd +129 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/datums.xsd +484 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/defaultStyle.xsd +454 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/dictionary.xsd +137 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/direction.xsd +72 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/dynamicFeature.xsd +115 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/feature.xsd +199 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/geometryAggregates.xsd +430 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/geometryBasic0d1d.xsd +602 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/geometryBasic2d.xsd +213 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/geometryComplexes.xsd +141 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/geometryPrimitives.xsd +1609 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/gml.xsd +22 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/gmlBase.xsd +294 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/grids.xsd +76 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/measures.xsd +200 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/observation.xsd +96 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/referenceSystems.xsd +211 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/temporal.xsd +332 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/temporalReferenceSystems.xsd +251 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/temporalTopology.xsd +186 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/topology.xsd +459 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/units.xsd +170 -0
- pycsw/core/schemas/ogc/gml/3.1.1/base/valueObjects.xsd +361 -0
- pycsw/core/schemas/ogc/gml/3.1.1/smil/smil20-language.xsd +117 -0
- pycsw/core/schemas/ogc/gml/3.1.1/smil/smil20.xsd +234 -0
- pycsw/core/schemas/ogc/gml/3.2.1/basicTypes.xsd +268 -0
- pycsw/core/schemas/ogc/gml/3.2.1/coordinateOperations.xsd +525 -0
- pycsw/core/schemas/ogc/gml/3.2.1/coordinateReferenceSystems.xsd +373 -0
- pycsw/core/schemas/ogc/gml/3.2.1/coordinateSystems.xsd +297 -0
- pycsw/core/schemas/ogc/gml/3.2.1/coverage.xsd +292 -0
- pycsw/core/schemas/ogc/gml/3.2.1/datums.xsd +287 -0
- pycsw/core/schemas/ogc/gml/3.2.1/defaultStyle.xsd +453 -0
- pycsw/core/schemas/ogc/gml/3.2.1/deprecatedTypes.xsd +1133 -0
- pycsw/core/schemas/ogc/gml/3.2.1/dictionary.xsd +90 -0
- pycsw/core/schemas/ogc/gml/3.2.1/direction.xsd +84 -0
- pycsw/core/schemas/ogc/gml/3.2.1/dynamicFeature.xsd +109 -0
- pycsw/core/schemas/ogc/gml/3.2.1/feature.xsd +94 -0
- pycsw/core/schemas/ogc/gml/3.2.1/geometryAggregates.xsd +197 -0
- pycsw/core/schemas/ogc/gml/3.2.1/geometryBasic0d1d.xsd +277 -0
- pycsw/core/schemas/ogc/gml/3.2.1/geometryBasic2d.xsd +124 -0
- pycsw/core/schemas/ogc/gml/3.2.1/geometryComplexes.xsd +95 -0
- pycsw/core/schemas/ogc/gml/3.2.1/geometryPrimitives.xsd +846 -0
- pycsw/core/schemas/ogc/gml/3.2.1/gml.xsd +20 -0
- pycsw/core/schemas/ogc/gml/3.2.1/gmlBase.xsd +185 -0
- pycsw/core/schemas/ogc/gml/3.2.1/grids.xsd +64 -0
- pycsw/core/schemas/ogc/gml/3.2.1/measures.xsd +68 -0
- pycsw/core/schemas/ogc/gml/3.2.1/observation.xsd +95 -0
- pycsw/core/schemas/ogc/gml/3.2.1/referenceSystems.xsd +70 -0
- pycsw/core/schemas/ogc/gml/3.2.1/temporal.xsd +269 -0
- pycsw/core/schemas/ogc/gml/3.2.1/temporalReferenceSystems.xsd +189 -0
- pycsw/core/schemas/ogc/gml/3.2.1/temporalTopology.xsd +119 -0
- pycsw/core/schemas/ogc/gml/3.2.1/topology.xsd +386 -0
- pycsw/core/schemas/ogc/gml/3.2.1/units.xsd +162 -0
- pycsw/core/schemas/ogc/gml/3.2.1/valueObjects.xsd +205 -0
- pycsw/core/schemas/ogc/ogcapi/records/part1/1.0/ogcapi-records-1.yaml +932 -0
- pycsw/core/schemas/ogc/ows/1.0.0/ows19115subset.xsd +222 -0
- pycsw/core/schemas/ogc/ows/1.0.0/owsAll.xsd +20 -0
- pycsw/core/schemas/ogc/ows/1.0.0/owsCommon.xsd +155 -0
- pycsw/core/schemas/ogc/ows/1.0.0/owsDataIdentification.xsd +112 -0
- pycsw/core/schemas/ogc/ows/1.0.0/owsExceptionReport.xsd +67 -0
- pycsw/core/schemas/ogc/ows/1.0.0/owsGetCapabilities.xsd +108 -0
- pycsw/core/schemas/ogc/ows/1.0.0/owsOperationsMetadata.xsd +161 -0
- pycsw/core/schemas/ogc/ows/1.0.0/owsServiceIdentification.xsd +55 -0
- pycsw/core/schemas/ogc/ows/1.0.0/owsServiceProvider.xsd +46 -0
- pycsw/core/schemas/ogc/ows/1.1.0/ows19115subset.xsd +236 -0
- pycsw/core/schemas/ogc/ows/1.1.0/owsAll.xsd +23 -0
- pycsw/core/schemas/ogc/ows/1.1.0/owsCommon.xsd +158 -0
- pycsw/core/schemas/ogc/ows/1.1.0/owsContents.xsd +87 -0
- pycsw/core/schemas/ogc/ows/1.1.0/owsDataIdentification.xsd +128 -0
- pycsw/core/schemas/ogc/ows/1.1.0/owsDomainType.xsd +280 -0
- pycsw/core/schemas/ogc/ows/1.1.0/owsExceptionReport.xsd +77 -0
- pycsw/core/schemas/ogc/ows/1.1.0/owsGetCapabilities.xsd +113 -0
- pycsw/core/schemas/ogc/ows/1.1.0/owsGetResourceByID.xsd +52 -0
- pycsw/core/schemas/ogc/ows/1.1.0/owsInputOutputData.xsd +60 -0
- pycsw/core/schemas/ogc/ows/1.1.0/owsManifest.xsd +125 -0
- pycsw/core/schemas/ogc/ows/1.1.0/owsOperationsMetadata.xsd +141 -0
- pycsw/core/schemas/ogc/ows/1.1.0/owsServiceIdentification.xsd +61 -0
- pycsw/core/schemas/ogc/ows/1.1.0/owsServiceProvider.xsd +48 -0
- pycsw/core/schemas/ogc/ows/2.0/ows19115subset.xsd +364 -0
- pycsw/core/schemas/ogc/ows/2.0/owsAdditionalParameters.xsd +114 -0
- pycsw/core/schemas/ogc/ows/2.0/owsAll.xsd +29 -0
- pycsw/core/schemas/ogc/ows/2.0/owsCommon.xsd +275 -0
- pycsw/core/schemas/ogc/ows/2.0/owsContents.xsd +163 -0
- pycsw/core/schemas/ogc/ows/2.0/owsDataIdentification.xsd +202 -0
- pycsw/core/schemas/ogc/ows/2.0/owsDomainType.xsd +388 -0
- pycsw/core/schemas/ogc/ows/2.0/owsExceptionReport.xsd +126 -0
- pycsw/core/schemas/ogc/ows/2.0/owsGetCapabilities.xsd +220 -0
- pycsw/core/schemas/ogc/ows/2.0/owsGetResourceByID.xsd +83 -0
- pycsw/core/schemas/ogc/ows/2.0/owsInputOutputData.xsd +98 -0
- pycsw/core/schemas/ogc/ows/2.0/owsManifest.xsd +181 -0
- pycsw/core/schemas/ogc/ows/2.0/owsOperationsMetadata.xsd +234 -0
- pycsw/core/schemas/ogc/ows/2.0/owsServiceIdentification.xsd +98 -0
- pycsw/core/schemas/ogc/ows/2.0/owsServiceProvider.xsd +64 -0
- pycsw/core/schemas/w3c/1999/xlink.xsd +271 -0
- pycsw/core/schemas/w3c/2001/xml.xsd +287 -0
- pycsw/core/util.py +552 -0
- pycsw/oaipmh.py +311 -0
- pycsw/ogc/__init__.py +29 -0
- pycsw/ogc/api/__init__.py +28 -0
- pycsw/ogc/api/oapi.py +558 -0
- pycsw/ogc/api/records.py +1414 -0
- pycsw/ogc/api/templates/_base.html +76 -0
- pycsw/ogc/api/templates/collection.html +44 -0
- pycsw/ogc/api/templates/collections.html +45 -0
- pycsw/ogc/api/templates/conformance.html +21 -0
- pycsw/ogc/api/templates/exception.html +8 -0
- pycsw/ogc/api/templates/item.html +228 -0
- pycsw/ogc/api/templates/items.html +337 -0
- pycsw/ogc/api/templates/landing_page.html +27 -0
- pycsw/ogc/api/templates/openapi.html +58 -0
- pycsw/ogc/api/templates/queryables.html +50 -0
- pycsw/ogc/api/templates/stac_items.html +173 -0
- pycsw/ogc/api/templates/static/favicon.ico +0 -0
- pycsw/ogc/api/templates/static/logo-horizontal.png +0 -0
- pycsw/ogc/api/templates/static/logo-vertical-darkbg.png +0 -0
- pycsw/ogc/api/util.py +252 -0
- pycsw/ogc/csw/__init__.py +29 -0
- pycsw/ogc/csw/cql.py +133 -0
- pycsw/ogc/csw/csw2.py +2042 -0
- pycsw/ogc/csw/csw3.py +2193 -0
- pycsw/ogc/fes/__init__.py +29 -0
- pycsw/ogc/fes/fes1.py +433 -0
- pycsw/ogc/fes/fes2.py +451 -0
- pycsw/ogc/gml/__init__.py +29 -0
- pycsw/ogc/gml/gml3.py +240 -0
- pycsw/ogc/gml/gml32.py +243 -0
- pycsw/opensearch.py +857 -0
- pycsw/plugins/__init__.py +29 -0
- pycsw/plugins/outputschemas/__init__.py +31 -0
- pycsw/plugins/outputschemas/atom.py +143 -0
- pycsw/plugins/outputschemas/datacite.py +375 -0
- pycsw/plugins/outputschemas/dif.py +213 -0
- pycsw/plugins/outputschemas/fgdc.py +180 -0
- pycsw/plugins/outputschemas/gm03.py +240 -0
- pycsw/plugins/profiles/__init__.py +29 -0
- pycsw/plugins/profiles/apiso/__init__.py +29 -0
- pycsw/plugins/profiles/apiso/apiso.py +757 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/csw/2.0.2/profiles/apiso/1.0.0/apiso.xsd +13 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gco/basicTypes.xsd +429 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gco/gco.xsd +12 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gco/gcoBase.xsd +61 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmd/applicationSchema.xsd +42 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmd/citation.xsd +275 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmd/constraints.xsd +106 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmd/content.xsd +188 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmd/dataQuality.xsd +554 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmd/distribution.xsd +202 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmd/extent.xsd +205 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmd/freeText.xsd +122 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmd/gmd.xsd +12 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmd/identification.xsd +348 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmd/maintenance.xsd +86 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmd/metadataApplication.xsd +175 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmd/metadataEntity.xsd +70 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmd/metadataExtension.xsd +99 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmd/portrayalCatalogue.xsd +36 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmd/referenceSystem.xsd +100 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmd/spatialRepresentation.xsd +237 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/basicTypes.xsd +267 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/coordinateOperations.xsd +639 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/coordinateReferenceSystems.xsd +526 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/coordinateSystems.xsd +401 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/coverage.xsd +462 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/datums.xsd +342 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/dictionary.xsd +129 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/direction.xsd +80 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/dynamicFeature.xsd +142 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/feature.xsd +215 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/geometryAggregates.xsd +216 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/geometryBasic0d1d.xsd +304 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/geometryBasic2d.xsd +123 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/geometryComplexes.xsd +89 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/geometryPrimitives.xsd +892 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/gml.xsd +14 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/gmlBase.xsd +305 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/grids.xsd +58 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/measures.xsd +167 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/observation.xsd +90 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/referenceSystems.xsd +69 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/temporal.xsd +263 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/temporalReferenceSystems.xsd +183 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/temporalTopology.xsd +124 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/topology.xsd +372 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/units.xsd +156 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gml/valueObjects.xsd +212 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmx/catalogues.xsd +112 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmx/codelistItem.xsd +168 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmx/crsItem.xsd +1030 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmx/extendedTypes.xsd +75 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmx/gmx.xsd +2 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmx/gmxUsage.xsd +127 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gmx/uomItem.xsd +162 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gsr/gsr.xsd +12 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gsr/spatialReferencing.xsd +24 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gss/geometry.xsd +35 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gss/gss.xsd +12 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gts/gts.xsd +12 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/gts/temporalObjects.xsd +34 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/srv/serviceMetadata.xsd +197 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/srv/serviceModel.xsd +220 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20060504/srv/srv.xsd +13 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gco/basicTypes.xsd +431 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gco/gco.xsd +12 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gco/gcoBase.xsd +63 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmd/applicationSchema.xsd +43 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmd/citation.xsd +276 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmd/constraints.xsd +107 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmd/content.xsd +190 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmd/dataQuality.xsd +556 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmd/distribution.xsd +203 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmd/extent.xsd +206 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmd/freeText.xsd +123 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmd/gmd.xsd +12 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmd/identification.xsd +349 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmd/maintenance.xsd +87 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmd/metadataApplication.xsd +176 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmd/metadataEntity.xsd +71 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmd/metadataExtension.xsd +100 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmd/portrayalCatalogue.xsd +37 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmd/referenceSystem.xsd +101 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmd/spatialRepresentation.xsd +238 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmx/catalogues.xsd +113 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmx/codelistItem.xsd +169 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmx/crsItem.xsd +1031 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmx/extendedTypes.xsd +76 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmx/gmx.xsd +12 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmx/gmxUsage.xsd +128 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gmx/uomItem.xsd +163 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gsr/gsr.xsd +12 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gsr/spatialReferencing.xsd +25 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gss/geometry.xsd +36 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gss/gss.xsd +12 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gts/gts.xsd +12 -0
- pycsw/plugins/profiles/apiso/schemas/ogc/iso/19139/20070417/gts/temporalObjects.xsd +35 -0
- pycsw/plugins/profiles/ebrim/__init__.py +29 -0
- pycsw/plugins/profiles/ebrim/ebrim.py +174 -0
- pycsw/plugins/profiles/ebrim/schemas/ogc/csw/2.0.2/profiles/ebrim/1.0/csw-ebrim-iri.xsd +146 -0
- pycsw/plugins/profiles/ebrim/schemas/ogc/csw/2.0.2/profiles/ebrim/1.0/csw-ebrim.xsd +104 -0
- pycsw/plugins/profiles/iso19115p3/__init__.py +29 -0
- pycsw/plugins/profiles/iso19115p3/iso19115p3.py +854 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/cat/1.0/cat.xsd +13 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/cat/1.0/catalogues.xsd +53 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/cat/1.0/codelistItem.xsd +54 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/cat/1.0/crsItem.xsd +181 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/cat/1.0/uomItem.xsd +38 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/cit/1.0/cit.xsd +7 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/cit/1.0/citation.xsd +514 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/cit/2.0/cit.xsd +10 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/cit/2.0/citation.xsd +523 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/gco/1.0/baseTypes2014.xsd +530 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/gco/1.0/gco.xsd +16 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/gcx/1.0/extendedTypes.xsd +92 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/gcx/1.0/extendedTypes_autoFromShapeChange.xsd +60 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/gcx/1.0/gcx.xsd +8 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/gex/1.0/extent.xsd +241 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/gex/1.0/gex.xsd +9 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/gmw/1.0/gmlWrapperTypes2014.xsd +159 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/gmw/1.0/gmw.xsd +14 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/lan/1.0/lan.xsd +8 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/lan/1.0/language.xsd +140 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mac/1.0/acquisitionInformationImagery.xsd +622 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mac/1.0/mac.xsd +11 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mac/2.0/acquisitionInformationImagery.xsd +590 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mac/2.0/event.xsd +108 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mac/2.0/mac.xsd +10 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mas/1.0/applicationSchema.xsd +61 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mas/1.0/mas.xsd +9 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mcc/1.0/AbstractCommonClasses.xsd +358 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mcc/1.0/commonClasses.xsd +220 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mcc/1.0/mcc.xsd +8 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mco/1.0/constraints.xsd +188 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mco/1.0/mco.xsd +8 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/md1/1.0/md1.xsd +9 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/md1/1.0/metadataWExtendedType.xsd +4 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/md2/1.0/md2.xsd +15 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/md2/1.0/metadataWithExtensions.xsd +4 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mda/1.0/mda.xsd +8 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mda/1.0/metadataApplication.xsd +200 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mdb/1.0/mdb.xsd +14 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mdb/1.0/metadataBase.xsd +98 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mdb/2.0/mdb.xsd +20 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mdb/2.0/metadataBase.xsd +102 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mds/1.0/mds.xsd +22 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mds/1.0/metadataDataServices.xsd +4 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mdt/1.0/mdt.xsd +13 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mdt/1.0/metadataTransfer.xsd +111 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mex/1.0/metadataExtension.xsd +156 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mex/1.0/mex.xsd +8 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mmi/1.0/maintenance.xsd +76 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mmi/1.0/mmi.xsd +8 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mpc/1.0/mpc.xsd +8 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mpc/1.0/portrayalCatalogue.xsd +31 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mrc/1.0/content.xsd +416 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mrc/1.0/contentInformationImagery.xsd +185 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mrc/1.0/mrc.xsd +11 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mrc/2.0/content.xsd +419 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mrc/2.0/contentInformationImagery.xsd +171 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mrc/2.0/mrc.xsd +11 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mrd/1.0/distribution.xsd +267 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mrd/1.0/mrd.xsd +8 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mri/1.0/identification.xsd +517 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mri/1.0/mri.xsd +9 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mrl/1.0/lineage.xsd +147 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mrl/1.0/lineageImagery.xsd +236 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mrl/1.0/mrl.xsd +9 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mrl/2.0/lineage.xsd +147 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mrl/2.0/lineageImagery.xsd +312 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mrl/2.0/mrl.xsd +11 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mrs/1.0/mrs.xsd +8 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/mrs/1.0/referenceSystem.xsd +47 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/msr/1.0/msr.xsd +10 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/msr/1.0/spatialRepresentation.xsd +375 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/msr/1.0/spatialRepresentationImagery.xsd +119 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/msr/2.0/msr.xsd +15 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/msr/2.0/spatialRepresentation.xsd +381 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/msr/2.0/spatialRepresentationImagery.xsd +120 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/srv/2.0/serviceInformation.xsd +272 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/srv/2.0/srv.xsd +6 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/srv/2.1/serviceInformation.xsd +278 -0
- pycsw/plugins/profiles/iso19115p3/schemas/ogc/iso/iso19115-3/srv/2.1/srv.xsd +6 -0
- pycsw/plugins/profiles/profile.py +141 -0
- pycsw/plugins/repository/__init__.py +29 -0
- pycsw/plugins/repository/odc/__init__.py +29 -0
- pycsw/plugins/repository/odc/odc.py +153 -0
- pycsw/server.py +938 -0
- pycsw/sru.py +217 -0
- pycsw/stac/__init__.py +29 -0
- pycsw/stac/api.py +571 -0
- pycsw/wsgi.py +233 -0
- pycsw/wsgi_flask.py +345 -0
pycsw/ogc/api/oapi.py
ADDED
|
@@ -0,0 +1,558 @@
|
|
|
1
|
+
# =================================================================
|
|
2
|
+
#
|
|
3
|
+
# Authors: Tom Kralidis <tomkralidis@gmail.com>
|
|
4
|
+
#
|
|
5
|
+
# Copyright (c) 2024 Tom Kralidis
|
|
6
|
+
#
|
|
7
|
+
# Permission is hereby granted, free of charge, to any person
|
|
8
|
+
# obtaining a copy of this software and associated documentation
|
|
9
|
+
# files (the "Software"), to deal in the Software without
|
|
10
|
+
# restriction, including without limitation the rights to use,
|
|
11
|
+
# copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
+
# copies of the Software, and to permit persons to whom the
|
|
13
|
+
# Software is furnished to do so, subject to the following
|
|
14
|
+
# conditions:
|
|
15
|
+
#
|
|
16
|
+
# The above copyright notice and this permission notice shall be
|
|
17
|
+
# included in all copies or substantial portions of the Software.
|
|
18
|
+
#
|
|
19
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
20
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
21
|
+
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
22
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
23
|
+
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
24
|
+
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
25
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
26
|
+
# OTHER DEALINGS IN THE SOFTWARE.
|
|
27
|
+
#
|
|
28
|
+
# =================================================================
|
|
29
|
+
|
|
30
|
+
from copy import deepcopy
|
|
31
|
+
import logging
|
|
32
|
+
|
|
33
|
+
from pycsw import __version__
|
|
34
|
+
from pycsw.ogc.api.util import yaml_load
|
|
35
|
+
|
|
36
|
+
LOGGER = logging.getLogger(__name__)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def gen_oapi(config, oapi_filepath, mode='ogcapi-records'):
|
|
40
|
+
"""
|
|
41
|
+
Genrate OpenAPI document
|
|
42
|
+
|
|
43
|
+
:param config: configuration
|
|
44
|
+
:param oapi_filepath: path to base OpenAPI records schema
|
|
45
|
+
|
|
46
|
+
:returns: `dict` of OpenAPI document
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
oapi = {}
|
|
50
|
+
|
|
51
|
+
with open(oapi_filepath, encoding='utf8') as fh:
|
|
52
|
+
oapi = yaml_load(fh)
|
|
53
|
+
|
|
54
|
+
LOGGER.debug('Adding tags')
|
|
55
|
+
oapi['tags'] = [{
|
|
56
|
+
'name': 'Capabilities',
|
|
57
|
+
'description': 'essential characteristics of this API'
|
|
58
|
+
}, {
|
|
59
|
+
'name': 'Metadata',
|
|
60
|
+
'description': 'access to metadata (records)'
|
|
61
|
+
}]
|
|
62
|
+
|
|
63
|
+
LOGGER.debug('Adding response components')
|
|
64
|
+
oapi['components']['responses']['Queryables'] = {
|
|
65
|
+
'content': {
|
|
66
|
+
'application/json': {
|
|
67
|
+
'schema': {
|
|
68
|
+
'$ref': '#/components/schemas/queryables'
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
'description': 'successful queryables operation'
|
|
73
|
+
}
|
|
74
|
+
oapi['components']['schemas']['queryable'] = {
|
|
75
|
+
'properties': {
|
|
76
|
+
'description': {
|
|
77
|
+
'description': 'a human-readable narrative describing the queryable', # noqa
|
|
78
|
+
'type': 'string'
|
|
79
|
+
},
|
|
80
|
+
'language': {
|
|
81
|
+
'default': [
|
|
82
|
+
'en'
|
|
83
|
+
],
|
|
84
|
+
'description': 'the language used for the title and description', # noqa
|
|
85
|
+
'type': 'string'
|
|
86
|
+
},
|
|
87
|
+
'queryable': {
|
|
88
|
+
'description': 'the token that may be used in a CQL predicate',
|
|
89
|
+
'type': 'string'
|
|
90
|
+
},
|
|
91
|
+
'title': {
|
|
92
|
+
'description': 'a human readable title for the queryable',
|
|
93
|
+
'type': 'string'
|
|
94
|
+
},
|
|
95
|
+
'type': {
|
|
96
|
+
'description': 'the data type of the queryable',
|
|
97
|
+
'type': 'string'
|
|
98
|
+
},
|
|
99
|
+
'type-ref': {
|
|
100
|
+
'description': 'a reference to the formal definition of the type', # noqa
|
|
101
|
+
'format': 'url',
|
|
102
|
+
'type': 'string'
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
'required': [
|
|
106
|
+
'queryable',
|
|
107
|
+
'type'
|
|
108
|
+
],
|
|
109
|
+
'type': 'object'
|
|
110
|
+
}
|
|
111
|
+
oapi['components']['schemas']['queryables'] = {
|
|
112
|
+
'properties': {
|
|
113
|
+
'queryables': {
|
|
114
|
+
'items': {
|
|
115
|
+
'$ref': '#/components/schemas/queryable'
|
|
116
|
+
},
|
|
117
|
+
'type': 'array'
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
'required': [
|
|
121
|
+
'queryables'
|
|
122
|
+
],
|
|
123
|
+
'type': 'object'
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
LOGGER.debug('Adding parameter components')
|
|
127
|
+
oapi['components']['parameters']['f'] = {
|
|
128
|
+
'name': 'f',
|
|
129
|
+
'in': 'query',
|
|
130
|
+
'description': 'Optional output formats',
|
|
131
|
+
'required': False,
|
|
132
|
+
'schema': {
|
|
133
|
+
'type': 'string',
|
|
134
|
+
'enum': ['json', 'html'],
|
|
135
|
+
'default': 'json'
|
|
136
|
+
},
|
|
137
|
+
'style': 'form',
|
|
138
|
+
'explode': False
|
|
139
|
+
}
|
|
140
|
+
oapi['components']['parameters']['offset'] = {
|
|
141
|
+
'name': 'offset',
|
|
142
|
+
'in': 'query',
|
|
143
|
+
'description': 'The optional offset parameter indicates the index within the result set from which the server shall begin presenting results in the response document. The first element has an index of 0 (default).', # noqa
|
|
144
|
+
'required': False,
|
|
145
|
+
'schema': {
|
|
146
|
+
'type': 'integer',
|
|
147
|
+
'minimum': 0,
|
|
148
|
+
'default': 0
|
|
149
|
+
},
|
|
150
|
+
'style': 'form',
|
|
151
|
+
'explode': False
|
|
152
|
+
}
|
|
153
|
+
oapi['components']['parameters']['filter'] = {
|
|
154
|
+
'name': 'filter',
|
|
155
|
+
'in': 'query',
|
|
156
|
+
'description': 'The optional filter parameter specifies a CQL2 expression to be used for enhanced filtering', # noqa
|
|
157
|
+
'required': False,
|
|
158
|
+
'schema': {
|
|
159
|
+
'type': 'object'
|
|
160
|
+
},
|
|
161
|
+
'style': 'form',
|
|
162
|
+
'explode': False
|
|
163
|
+
}
|
|
164
|
+
oapi['components']['parameters']['filter-lang'] = {
|
|
165
|
+
'name': 'filter-lang',
|
|
166
|
+
'in': 'query',
|
|
167
|
+
'description': 'The optional filter-lang parameter specifies the predicate language of the filter being applied', # noqa
|
|
168
|
+
'required': False,
|
|
169
|
+
'schema': {
|
|
170
|
+
'type': 'string',
|
|
171
|
+
'enum': [
|
|
172
|
+
'cql2-json',
|
|
173
|
+
'cql2-text'
|
|
174
|
+
],
|
|
175
|
+
'default': 'cql2-text'
|
|
176
|
+
},
|
|
177
|
+
'style': 'form',
|
|
178
|
+
'explode': False
|
|
179
|
+
}
|
|
180
|
+
oapi['components']['parameters']['vendorSpecificParameters'] = {
|
|
181
|
+
'name': 'vendorSpecificParameters',
|
|
182
|
+
'in': 'query',
|
|
183
|
+
'description': 'Additional "free-form" parameters that are not explicitly defined', # noqa
|
|
184
|
+
'schema': {
|
|
185
|
+
'type': 'object',
|
|
186
|
+
'additionalProperties': True
|
|
187
|
+
},
|
|
188
|
+
'style': 'form'
|
|
189
|
+
}
|
|
190
|
+
oapi['components']['parameters']['facets'] = {
|
|
191
|
+
'name': 'facets',
|
|
192
|
+
'in': 'query',
|
|
193
|
+
'description': 'Whether to include facets in results',
|
|
194
|
+
'schema': {
|
|
195
|
+
'type': 'boolean',
|
|
196
|
+
'default': False
|
|
197
|
+
},
|
|
198
|
+
'style': 'form',
|
|
199
|
+
'explode': False
|
|
200
|
+
}
|
|
201
|
+
oapi['components']['parameters']['distributed'] = {
|
|
202
|
+
'name': 'distributed',
|
|
203
|
+
'in': 'query',
|
|
204
|
+
'description': 'Whether to invoke distributed mode',
|
|
205
|
+
'schema': {
|
|
206
|
+
'type': 'boolean',
|
|
207
|
+
'default': False
|
|
208
|
+
},
|
|
209
|
+
'style': 'form',
|
|
210
|
+
'explode': False
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
# TODO: remove local definition of ids once implemented
|
|
214
|
+
# in OGC API - Records
|
|
215
|
+
oapi['components']['parameters']['ids'] = {
|
|
216
|
+
'name': 'ids',
|
|
217
|
+
'in': 'query',
|
|
218
|
+
'description': 'Comma-separated list of identifiers',
|
|
219
|
+
'required': False,
|
|
220
|
+
'schema': {
|
|
221
|
+
'type': 'array',
|
|
222
|
+
'items': {
|
|
223
|
+
'type': 'string'
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
'style': 'form',
|
|
227
|
+
'explode': False
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
if mode == 'stac-api':
|
|
231
|
+
oapi['components']['parameters']['collections'] = {
|
|
232
|
+
'name': 'collections',
|
|
233
|
+
'in': 'query',
|
|
234
|
+
'description': 'Comma-separated list of collection identifiers',
|
|
235
|
+
'required': False,
|
|
236
|
+
'schema': {
|
|
237
|
+
'type': 'array',
|
|
238
|
+
'items': {
|
|
239
|
+
'type': 'string'
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
'style': 'form',
|
|
243
|
+
'explode': False
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
LOGGER.debug('Adding server info')
|
|
247
|
+
oapi['info'] = {
|
|
248
|
+
'contact': {
|
|
249
|
+
'email': config['metadata']['contact']['email'],
|
|
250
|
+
'name': config['metadata']['contact']['name'],
|
|
251
|
+
'url': config['metadata']['contact']['url']
|
|
252
|
+
},
|
|
253
|
+
'version': __version__,
|
|
254
|
+
'title': config['metadata']['identification']['title'],
|
|
255
|
+
'description': config['metadata']['identification']['description']
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
oapi['servers'] = [{
|
|
259
|
+
'url': config['server'].get('url'),
|
|
260
|
+
'description': config['metadata']['identification']['description']
|
|
261
|
+
}]
|
|
262
|
+
|
|
263
|
+
LOGGER.debug('Adding paths')
|
|
264
|
+
oapi['paths'] = {}
|
|
265
|
+
|
|
266
|
+
path = {
|
|
267
|
+
'get': {
|
|
268
|
+
'tags': ['Capabilities'],
|
|
269
|
+
'summary': 'Landing page',
|
|
270
|
+
'description': 'Landing page',
|
|
271
|
+
'operationId': 'getLandingPage',
|
|
272
|
+
'parameters': [
|
|
273
|
+
{'$ref': '#/components/parameters/f'}
|
|
274
|
+
],
|
|
275
|
+
'responses': {
|
|
276
|
+
'200': {
|
|
277
|
+
'$ref': '#/components/responses/Queryables'
|
|
278
|
+
},
|
|
279
|
+
'500': {
|
|
280
|
+
'$ref': '#/components/responses/ServerError'
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
oapi['paths']['/'] = path
|
|
287
|
+
|
|
288
|
+
path = {
|
|
289
|
+
'get': {
|
|
290
|
+
'tags': ['Capabilities'],
|
|
291
|
+
'summary': 'Conformance page',
|
|
292
|
+
'description': 'Conformance page',
|
|
293
|
+
'operationId': 'getConformanceDeclaration',
|
|
294
|
+
'parameters': [
|
|
295
|
+
{'$ref': '#/components/parameters/f'}
|
|
296
|
+
],
|
|
297
|
+
'responses': {
|
|
298
|
+
'200': {
|
|
299
|
+
'$ref': '#/components/responses/ConformanceDeclaration'
|
|
300
|
+
},
|
|
301
|
+
'500': {
|
|
302
|
+
'$ref': '#/components/responses/ServerError'
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
oapi['paths']['/conformance'] = path
|
|
309
|
+
|
|
310
|
+
path = {
|
|
311
|
+
'get': {
|
|
312
|
+
'tags': ['Capabilities'],
|
|
313
|
+
'summary': 'Collections page',
|
|
314
|
+
'description': 'Collections page',
|
|
315
|
+
'operationId': 'getCollections',
|
|
316
|
+
'parameters': [
|
|
317
|
+
{'$ref': '#/components/parameters/f'}
|
|
318
|
+
],
|
|
319
|
+
'responses': {
|
|
320
|
+
'200': {
|
|
321
|
+
'$ref': '#/components/responses/Collections'
|
|
322
|
+
},
|
|
323
|
+
'500': {
|
|
324
|
+
'$ref': '#/components/responses/ServerError'
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
oapi['paths']['/collections'] = path
|
|
331
|
+
|
|
332
|
+
path = {
|
|
333
|
+
'get': {
|
|
334
|
+
'tags': ['Capabilities'],
|
|
335
|
+
'summary': 'Collection page',
|
|
336
|
+
'description': 'Collection page',
|
|
337
|
+
'operationId': 'getCollectionId',
|
|
338
|
+
'parameters': [
|
|
339
|
+
{'$ref': '#/components/parameters/collectionId'},
|
|
340
|
+
{'$ref': '#/components/parameters/f'}
|
|
341
|
+
],
|
|
342
|
+
'responses': {
|
|
343
|
+
'200': {
|
|
344
|
+
'$ref': '#/components/responses/Collection'
|
|
345
|
+
},
|
|
346
|
+
'404': {
|
|
347
|
+
'$ref': '#/components/responses/NotFound'
|
|
348
|
+
},
|
|
349
|
+
'500': {
|
|
350
|
+
'$ref': '#/components/responses/ServerError'
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
oapi['paths']['/collections/{collectionId}'] = path
|
|
357
|
+
|
|
358
|
+
path = {
|
|
359
|
+
'get': {
|
|
360
|
+
'tags': ['Queryables'],
|
|
361
|
+
'summary': 'Queryables page',
|
|
362
|
+
'description': 'Queryables page',
|
|
363
|
+
'operationId': 'getQueryables',
|
|
364
|
+
'parameters': [
|
|
365
|
+
{'$ref': '#/components/parameters/f'}
|
|
366
|
+
],
|
|
367
|
+
'responses': {
|
|
368
|
+
'200': {
|
|
369
|
+
'$ref': '#/components/responses/Queryables'
|
|
370
|
+
},
|
|
371
|
+
'500': {
|
|
372
|
+
'$ref': '#/components/responses/ServerError'
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
oapi['paths']['/queryables'] = path
|
|
379
|
+
|
|
380
|
+
path2 = deepcopy(path)
|
|
381
|
+
|
|
382
|
+
path2['get']['operationId'] = 'getCollectionQueryables'
|
|
383
|
+
path2['get']['parameters'].append(
|
|
384
|
+
{'$ref': '#/components/parameters/collectionId'})
|
|
385
|
+
path2['get']['responses']['404'] = {
|
|
386
|
+
'$ref': '#/components/responses/NotFound'
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
oapi['paths']['/collections/{collectionId}/queryables'] = path2
|
|
390
|
+
|
|
391
|
+
path = {
|
|
392
|
+
'get': {
|
|
393
|
+
'tags': ['metadata'],
|
|
394
|
+
'summary': 'Records search items page',
|
|
395
|
+
'description': 'Records search items page',
|
|
396
|
+
'operationId': 'getRecords',
|
|
397
|
+
'parameters': [
|
|
398
|
+
{'$ref': '#/components/parameters/collectionId'},
|
|
399
|
+
{'$ref': '#/components/parameters/bbox'},
|
|
400
|
+
{'$ref': '#/components/parameters/ids'},
|
|
401
|
+
{'$ref': '#/components/parameters/datetime'},
|
|
402
|
+
{'$ref': '#/components/parameters/limit'},
|
|
403
|
+
{'$ref': '#/components/parameters/q'},
|
|
404
|
+
{'$ref': '#/components/parameters/type'},
|
|
405
|
+
{'$ref': '#/components/parameters/externalId'},
|
|
406
|
+
{'$ref': '#/components/parameters/sortby'},
|
|
407
|
+
{'$ref': '#/components/parameters/filter'},
|
|
408
|
+
{'$ref': '#/components/parameters/filter-lang'},
|
|
409
|
+
{'$ref': '#/components/parameters/f'},
|
|
410
|
+
{'$ref': '#/components/parameters/offset'},
|
|
411
|
+
{'$ref': '#/components/parameters/facets'},
|
|
412
|
+
{'$ref': '#/components/parameters/distributed'},
|
|
413
|
+
{'$ref': '#/components/parameters/vendorSpecificParameters'}
|
|
414
|
+
],
|
|
415
|
+
'responses': {
|
|
416
|
+
'200': {
|
|
417
|
+
'$ref': '#/components/responses/Records'
|
|
418
|
+
},
|
|
419
|
+
'400': {
|
|
420
|
+
'$ref': '#/components/responses/InvalidParameter'
|
|
421
|
+
},
|
|
422
|
+
'404': {
|
|
423
|
+
'$ref': '#/components/responses/NotFound'
|
|
424
|
+
},
|
|
425
|
+
'500': {
|
|
426
|
+
'$ref': '#/components/responses/ServerError'
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
if config['manager'].get('transactions', False):
|
|
433
|
+
LOGGER.debug('Transactions enabled; adding post')
|
|
434
|
+
|
|
435
|
+
path['post'] = {
|
|
436
|
+
'summary': 'Adds Records items',
|
|
437
|
+
'description': 'Adds Records items',
|
|
438
|
+
'tags': ['metadata'],
|
|
439
|
+
'operationId': 'addRecord',
|
|
440
|
+
'consumes': [
|
|
441
|
+
'application/geo+json', 'application/json', 'application/xml'
|
|
442
|
+
],
|
|
443
|
+
'produces': ['application/json'],
|
|
444
|
+
'parameters': [{
|
|
445
|
+
'in': 'body',
|
|
446
|
+
'name': 'body',
|
|
447
|
+
'description': 'Adds item to collection',
|
|
448
|
+
'required': True,
|
|
449
|
+
}],
|
|
450
|
+
'responses': {
|
|
451
|
+
'201': {'description': 'Successful creation'},
|
|
452
|
+
'400': {
|
|
453
|
+
'$ref': '{}#/components/responses/InvalidParameter'
|
|
454
|
+
},
|
|
455
|
+
'500': {
|
|
456
|
+
'$ref': '{}#/components/responses/ServerError'
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
oapi['paths']['/collections/{collectionId}/items'] = path
|
|
462
|
+
|
|
463
|
+
if mode == 'stac-api':
|
|
464
|
+
LOGGER.debug('Adding /stac/search')
|
|
465
|
+
path2 = deepcopy(path)
|
|
466
|
+
path2['get']['operationId'] = 'searchRecords'
|
|
467
|
+
oapi['paths']['/search'] = path2
|
|
468
|
+
|
|
469
|
+
oapi['paths']['/search']['get']['parameters'].append({
|
|
470
|
+
'$ref': '#/components/parameters/collections'
|
|
471
|
+
})
|
|
472
|
+
|
|
473
|
+
f = deepcopy(oapi['components']['parameters']['f'])
|
|
474
|
+
f['schema']['enum'].append('xml')
|
|
475
|
+
|
|
476
|
+
path = {
|
|
477
|
+
'get': {
|
|
478
|
+
'tags': ['metadata'],
|
|
479
|
+
'summary': 'Records item page',
|
|
480
|
+
'description': 'Records item page',
|
|
481
|
+
'operationId': 'getRecord',
|
|
482
|
+
'parameters': [
|
|
483
|
+
{'$ref': '#/components/parameters/collectionId'},
|
|
484
|
+
{'$ref': '#/components/parameters/recordId'},
|
|
485
|
+
{'$ref': '#/components/parameters/distributed'},
|
|
486
|
+
f
|
|
487
|
+
],
|
|
488
|
+
'responses': {
|
|
489
|
+
'200': {
|
|
490
|
+
'$ref': '#/components/responses/Record'
|
|
491
|
+
},
|
|
492
|
+
'404': {
|
|
493
|
+
'$ref': '#/components/responses/NotFound'
|
|
494
|
+
},
|
|
495
|
+
'500': {
|
|
496
|
+
'$ref': '#/components/responses/ServerError'
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
if config['manager'].get('transactions', False):
|
|
503
|
+
LOGGER.debug('Transactions enabled; adding put/delete')
|
|
504
|
+
|
|
505
|
+
path['put'] = {
|
|
506
|
+
'summary': 'Updates Records items',
|
|
507
|
+
'description': 'Updates Records items',
|
|
508
|
+
'tags': ['metadata'],
|
|
509
|
+
'operationId': 'updateRecord',
|
|
510
|
+
'consumes': [
|
|
511
|
+
'application/geo+json', 'application/json', 'application/xml'
|
|
512
|
+
],
|
|
513
|
+
'produces': ['application/json'],
|
|
514
|
+
'parameters': [
|
|
515
|
+
{'$ref': '#/components/parameters/collectionId'},
|
|
516
|
+
{'$ref': '#/components/parameters/recordId'},
|
|
517
|
+
{
|
|
518
|
+
'in': 'body',
|
|
519
|
+
'name': 'body',
|
|
520
|
+
'description': 'Updates item to collection',
|
|
521
|
+
'required': True,
|
|
522
|
+
}
|
|
523
|
+
],
|
|
524
|
+
'responses': {
|
|
525
|
+
'204': {'description': 'Successful update'},
|
|
526
|
+
'400': {
|
|
527
|
+
'$ref': '{}#/components/responses/InvalidParameter'
|
|
528
|
+
},
|
|
529
|
+
'500': {
|
|
530
|
+
'$ref': '{}#/components/responses/ServerError'
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
path['delete'] = {
|
|
536
|
+
'summary': 'Deletes Records items',
|
|
537
|
+
'description': 'Deletes Records items',
|
|
538
|
+
'tags': ['metadata'],
|
|
539
|
+
'operationId': 'deleteRecord',
|
|
540
|
+
'produces': ['application/json'],
|
|
541
|
+
'parameters': [
|
|
542
|
+
{'$ref': '#/components/parameters/collectionId'},
|
|
543
|
+
{'$ref': '#/components/parameters/recordId'},
|
|
544
|
+
],
|
|
545
|
+
'responses': {
|
|
546
|
+
'204': {'description': 'Successful delete'},
|
|
547
|
+
'400': {
|
|
548
|
+
'$ref': '{}#/components/responses/InvalidParameter'
|
|
549
|
+
},
|
|
550
|
+
'500': {
|
|
551
|
+
'$ref': '{}#/components/responses/ServerError'
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
oapi['paths']['/collections/{collectionId}/items/{recordId}'] = path
|
|
557
|
+
|
|
558
|
+
return oapi
|