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
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
{% extends "_base.html" %}
|
|
2
|
+
{% block title %}{{ super() }} Items {% endblock %}
|
|
3
|
+
|
|
4
|
+
{% block extrahead %}
|
|
5
|
+
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css"/>
|
|
6
|
+
<link rel="stylesheet" href="https://unpkg.com/leaflet-draw@1.0.4/dist/leaflet.draw.css"></script>
|
|
7
|
+
|
|
8
|
+
<script src="https://code.jquery.com/jquery-3.6.0.js"></script>
|
|
9
|
+
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>
|
|
10
|
+
<script src="https://unpkg.com/leaflet-draw@1.0.4/dist/leaflet.draw.js"></script>
|
|
11
|
+
<style>
|
|
12
|
+
#records-map {
|
|
13
|
+
height: 350px;
|
|
14
|
+
}
|
|
15
|
+
</style>
|
|
16
|
+
|
|
17
|
+
{% endblock %}
|
|
18
|
+
|
|
19
|
+
{% block crumbs %}
|
|
20
|
+
{{ super() }} /
|
|
21
|
+
<a href="{{ config['server']['url'] }}/collections">Collections</a> /
|
|
22
|
+
<a href="{{ config['server']['url'] }}/collections/{{ data['collection'] }}">{{ data['title'] }}</a> /
|
|
23
|
+
<a href="{{ config['server']['url'] }}/collections/{{ data['collection'] }}/items">Items</a>
|
|
24
|
+
{% endblock %}
|
|
25
|
+
|
|
26
|
+
{% block body %}
|
|
27
|
+
|
|
28
|
+
<section id="items">
|
|
29
|
+
|
|
30
|
+
{% set nav_links = namespace(prev=None, next=None, self=None) %}
|
|
31
|
+
{% for link in data['links'] %}
|
|
32
|
+
{% if link['rel'] == 'prev' %}
|
|
33
|
+
{% set nav_links.prev = link['href'] %}
|
|
34
|
+
{% endif %}
|
|
35
|
+
{% if link['rel'] == 'self' %}
|
|
36
|
+
{% set nav_links.self = link['href'] %}
|
|
37
|
+
{% endif %}
|
|
38
|
+
{% if link['rel'] == 'next' %}
|
|
39
|
+
{% set nav_links.next = link['href'] %}
|
|
40
|
+
{% endif %}
|
|
41
|
+
{% endfor %}
|
|
42
|
+
|
|
43
|
+
{# parse the querystring as dict #}
|
|
44
|
+
{% set attrs = {} %}
|
|
45
|
+
{% if '?' in nav_links.self %}
|
|
46
|
+
{% for kv in nav_links.self.split('#')[0].split('?').pop().split('&') %}
|
|
47
|
+
{% if kv.split('=')[0] not in [None,''] %}
|
|
48
|
+
{{ attrs.update({kv.split('=')[0] : kv.split('=')[1]}) or '' }}
|
|
49
|
+
{% endif %}
|
|
50
|
+
{% endfor %}
|
|
51
|
+
{% else %}
|
|
52
|
+
{% set nav_links.self = link['href'].split('#')[0] + '?' %}
|
|
53
|
+
{% endif %}
|
|
54
|
+
|
|
55
|
+
{# update existing url with new key,val. indent prevents spaces in output #}
|
|
56
|
+
{# reset pagination, else you may end up in empty result #}
|
|
57
|
+
{% macro updateurl(key=None,val=None) %}{{ nav_links.self.split('?')[0] }}?{%
|
|
58
|
+
for at in attrs.keys() %}{%
|
|
59
|
+
if at != 'offset' %}{%
|
|
60
|
+
if attrs[at] not in [None,''] %}{%
|
|
61
|
+
if key not in [None,''] and key == at %}&{{ at }}={{ val }}{%
|
|
62
|
+
else %}&{{ at }}={{ attrs[at] }}{%
|
|
63
|
+
endif %}{%
|
|
64
|
+
endif %}{%
|
|
65
|
+
endif %}{%
|
|
66
|
+
if key not in attrs.keys() %}&{{ key }}={{ val }}{% endif %}{%
|
|
67
|
+
endfor %}{%
|
|
68
|
+
endmacro %}
|
|
69
|
+
|
|
70
|
+
{% macro reseturl(key,val) %}{{
|
|
71
|
+
nav_links.self.split('?')[0]}}?facets=true{%
|
|
72
|
+
if 'q' in attrs %}&q={{ attrs['q'] }}{% endif %}{%
|
|
73
|
+
if 'sortby' in attrs %}&sortby={{ attrs['sortby'] }}{% endif %}{%
|
|
74
|
+
endmacro %}
|
|
75
|
+
|
|
76
|
+
<div class="container-fluid">
|
|
77
|
+
<div class="row">
|
|
78
|
+
<div class="col-md-8">
|
|
79
|
+
<select name="order" class="p-1 pe-3" onchange="sort(this.value)">
|
|
80
|
+
<option value="">Sort by...</option>
|
|
81
|
+
<option value="title" {% if attrs['sortby'] == 'title' %}selected{% endif %}>Title</option>
|
|
82
|
+
<option value="-updated" {% if attrs['sortby'] == '-updated' %}selected{% endif %}>Date</option>
|
|
83
|
+
</select>
|
|
84
|
+
</div>
|
|
85
|
+
<div class="col-md-4">
|
|
86
|
+
<form action="{{ nav_links.self.split('?')[0] }}" method="GET">
|
|
87
|
+
<div class="input-group mb-3">
|
|
88
|
+
<input type="text" class="form-control" name="q" placeholder="Search" id="tbq" value="">
|
|
89
|
+
<script>
|
|
90
|
+
$('#tbq').val(decodeURIComponent("{{ attrs.get('q', '').replace('+',' ') }}"))
|
|
91
|
+
</script>
|
|
92
|
+
<input class="btn btn-outline-secondary" type="submit" value="Search"></input>
|
|
93
|
+
</div>
|
|
94
|
+
</form>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
<hr class="my-1"/>
|
|
98
|
+
<div class="row">
|
|
99
|
+
<div class="col-lg-4">
|
|
100
|
+
<div class="my-2">
|
|
101
|
+
<b>{{ data['numberMatched'] }} results.</b>
|
|
102
|
+
</div>
|
|
103
|
+
<div id="records-map"></div>
|
|
104
|
+
<div id="spatial-filter" class="mt-2">
|
|
105
|
+
<div class="form-check form-switch">
|
|
106
|
+
<input class="form-check-input my-2" onchange="trigger_spatial_filter()" {% if 'bbox' in attrs.keys() %}checked{% endif %} type="checkbox" id="spatial-filter-check">
|
|
107
|
+
<label class="form-check-label" for="spatial-filter-check">Spatial filter</label>
|
|
108
|
+
<btn class="btn btn-sm border border-rounded" onclick="apply_spatial_filter()">Apply</btn>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
<div id="facets" class="mt-2">
|
|
112
|
+
<div class="d-flex justify-content-between">
|
|
113
|
+
<div class="form-check form-switch">
|
|
114
|
+
<input class="form-check-input" type="checkbox" {% if 'facets=true' in nav_links.self %}checked="true"{% endif %} onchange="facet(this.checked)" role="switch" id="enableFacets">
|
|
115
|
+
<label class="form-check-label" for="enableFacets">Facets</label>
|
|
116
|
+
</div>
|
|
117
|
+
<div>
|
|
118
|
+
{% if 'facets=true' in nav_links.self %}
|
|
119
|
+
<a href="{{ reseturl() }}">Reset</a>
|
|
120
|
+
{% endif %}
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
{% if data['facets'] %}
|
|
124
|
+
{% for facet in data['facets'].keys() %}
|
|
125
|
+
<div class="card mt-3">
|
|
126
|
+
<div class="card-header text-capitalize">{{ facet }}</div>
|
|
127
|
+
<div class="card-body">
|
|
128
|
+
{% for bucket in data['facets'][facet].buckets %}
|
|
129
|
+
{% if bucket['value'] %}
|
|
130
|
+
<a href="{{ updateurl(facet,bucket['value']) }}" title="{{bucket['value']}}"
|
|
131
|
+
>{{(bucket['value'] or "") | truncate(20, False, '..') | capitalize }}</a>
|
|
132
|
+
<span class="badge rounded-pill bg-secondary" style="float:right">{{bucket['count']}}</span><br>
|
|
133
|
+
{% endif %}
|
|
134
|
+
{% endfor %}
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
{% endfor %}
|
|
138
|
+
{% endif %}
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
<div class="col-lg-8">
|
|
142
|
+
<div class="row ps-2">
|
|
143
|
+
<table class="table table-striped table-hover" id="items-table-table">
|
|
144
|
+
<thead>
|
|
145
|
+
<tr>
|
|
146
|
+
<th>Title</th>
|
|
147
|
+
<th>Type</th>
|
|
148
|
+
<th>Date</th>
|
|
149
|
+
</tr>
|
|
150
|
+
</thead>
|
|
151
|
+
<tbody>
|
|
152
|
+
{% for rec in data['features'] %}
|
|
153
|
+
<tr>
|
|
154
|
+
{% if 'properties' in rec %}
|
|
155
|
+
<td id="{{ rec['id'] }}"><a title="{{ rec['properties'].get('title', rec['id']) }}" href="{{ config['server']['url'] }}/collections/{{ data['collection'] }}/items/{{ rec['id'] }}">{{ rec['properties'].get('title', rec['id']) }}</a></td>
|
|
156
|
+
{% else %}
|
|
157
|
+
<td id="{{ rec['id'] }}"><a title="{{ rec.get('title', rec['id']) }}" href="{{ config['server']['url'] }}/collections/{{ data['collection'] }}/items/{{ rec['id'] }}">{{ rec.get('title', rec['id']) }}</a></td>
|
|
158
|
+
{% endif %}
|
|
159
|
+
{% if 'properties' in rec %}
|
|
160
|
+
{% if 'type' in rec['properties'] %}
|
|
161
|
+
<td>{{ rec['properties']['type'] }}</td>
|
|
162
|
+
{% elif rec.get('type') == 'Feature' and 'stac_version' not in rec %}
|
|
163
|
+
<td>record</td>
|
|
164
|
+
{% elif rec.get('type') == 'Feature' and 'stac_version' in rec %}
|
|
165
|
+
<td>item</td>
|
|
166
|
+
{% else%}
|
|
167
|
+
<td>{{ rec.get('type') }}</td>
|
|
168
|
+
{% endif %}
|
|
169
|
+
{% else %}
|
|
170
|
+
{% if rec.get('type') == 'Feature' and 'stac_version' not in rec %}
|
|
171
|
+
<td>record</td>
|
|
172
|
+
{% elif rec.get('type') == 'Feature' and 'stac_version' in rec %}
|
|
173
|
+
<td>item</td>
|
|
174
|
+
{% elif rec.get('type') == 'Collection' and 'stac_version' in rec %}
|
|
175
|
+
<td>collection</td>
|
|
176
|
+
{% elif rec.get('type') == 'Catalog' and 'stac_version' in rec %}
|
|
177
|
+
<td>catalog</td>
|
|
178
|
+
{% else%}
|
|
179
|
+
<td>{{ rec.get('type') }}</td>
|
|
180
|
+
{% endif %}
|
|
181
|
+
{% endif %}
|
|
182
|
+
{% if 'properties' in rec %}
|
|
183
|
+
<td>{{ rec['properties'].get('updated', '').split('T')[0].replace('-','/') }}</td>
|
|
184
|
+
{% endif %}
|
|
185
|
+
</tr>
|
|
186
|
+
{% endfor %}
|
|
187
|
+
</tbody>
|
|
188
|
+
</table>
|
|
189
|
+
<div class="d-flex justify-content-between">
|
|
190
|
+
<div>
|
|
191
|
+
{% if nav_links.prev %}
|
|
192
|
+
<a href="{{ nav_links.prev }}"><button type="button" class="btn btn-sm btn-primary">Prev</button></a>
|
|
193
|
+
{% else %}
|
|
194
|
+
<button type="button" class="btn btn-sm btn-primary" disabled>Prev</button>
|
|
195
|
+
{% endif %}</div>
|
|
196
|
+
<div>
|
|
197
|
+
Showing {{ data['numberReturned'] }} of {{ data['numberMatched'] }} results.</div>
|
|
198
|
+
<div>
|
|
199
|
+
{% if nav_links.next %}
|
|
200
|
+
<a href="{{ nav_links.next }}"><button type="button" class="btn btn-sm btn-primary">Next</button></a>
|
|
201
|
+
{% else %}
|
|
202
|
+
<button type="button" class="btn btn-sm btn-primary" disabled>Next</button>
|
|
203
|
+
{% endif %}</div>
|
|
204
|
+
</div>
|
|
205
|
+
|
|
206
|
+
</div>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
|
|
210
|
+
</section>
|
|
211
|
+
|
|
212
|
+
<script>
|
|
213
|
+
function sort(val){
|
|
214
|
+
location.href="{{updateurl('sortby','sortprop')}}".replace('sortprop',val);
|
|
215
|
+
}
|
|
216
|
+
function facet(val){
|
|
217
|
+
location.href="{{updateurl('facets','facetprop')}}".replace('facetprop',val);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
//if url has a bbox, enable the spatial filter
|
|
221
|
+
var bbox;
|
|
222
|
+
{% if 'bbox' in attrs.keys() %}
|
|
223
|
+
{% set bbox_tokens = attrs['bbox'].split('%2C') %}
|
|
224
|
+
{% if bbox_tokens|length == 4 %}
|
|
225
|
+
bbox = [[{{
|
|
226
|
+
bbox_tokens[1] }}, {{ bbox_tokens[0] }}], [{{
|
|
227
|
+
bbox_tokens[3] }}, {{ bbox_tokens[2] }}]];
|
|
228
|
+
{% endif %}
|
|
229
|
+
{% endif %}
|
|
230
|
+
|
|
231
|
+
//if filter enabled, apply the spatial filter
|
|
232
|
+
function apply_spatial_filter(){
|
|
233
|
+
if (map.hasLayer(rectangle)){
|
|
234
|
+
location.href="{{ updateurl('bbox','tmptmp') }}".replace('tmptmp',yx(rectangle.getBounds()));
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
</script>
|
|
238
|
+
|
|
239
|
+
{% endblock %}
|
|
240
|
+
|
|
241
|
+
{% block extrafoot %}
|
|
242
|
+
|
|
243
|
+
<script>
|
|
244
|
+
var map = L.map('records-map').setView([0, 0], 1);
|
|
245
|
+
map.addLayer(new L.TileLayer(
|
|
246
|
+
'https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
|
247
|
+
maxZoom: 18,
|
|
248
|
+
attribution: 'Map data © <a href="https://openstreetmap.org/copyright">OpenStreetMap contributors</a>'
|
|
249
|
+
}
|
|
250
|
+
));
|
|
251
|
+
var geojson_data = {{ data['features'] | to_json }};
|
|
252
|
+
{% if data['features'] %}
|
|
253
|
+
var items = new L.GeoJSON(geojson_data, {
|
|
254
|
+
onEachFeature: function (feature, layer) {
|
|
255
|
+
var url = './items/' + feature.id;
|
|
256
|
+
var html = '<span><a href="' + url + '">' + feature.id + '</a></span>';
|
|
257
|
+
layer._leaflet_id = feature.id;
|
|
258
|
+
layer.bindPopup(html);
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
map.addLayer(items);
|
|
263
|
+
if (!bbox){
|
|
264
|
+
var bounds = items.getBounds();
|
|
265
|
+
if (bounds.isValid() === true) {
|
|
266
|
+
map.fitBounds(bounds);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
{% endif %}
|
|
270
|
+
|
|
271
|
+
//set rectangle if page initializes with a spatial filter
|
|
272
|
+
if (bbox){
|
|
273
|
+
setRectangle(bbox);
|
|
274
|
+
map.fitBounds(bbox);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
var highlightStyle = {
|
|
278
|
+
color: 'red',
|
|
279
|
+
dashArray: '',
|
|
280
|
+
fillOpacity: 0.5
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
{% if data['features'] %}
|
|
284
|
+
$(document).ready(function() {
|
|
285
|
+
$('#items-table-table tr').on('mouseenter', function(e){
|
|
286
|
+
id_ = $(this).find('[id]').attr('id');
|
|
287
|
+
layer = items.getLayer(id_); //your feature id here
|
|
288
|
+
if (layer) {
|
|
289
|
+
layer.setStyle(highlightStyle);
|
|
290
|
+
}
|
|
291
|
+
}).on('mouseout', function(e){
|
|
292
|
+
id_ = $(this).find('[id]').attr('id');
|
|
293
|
+
layer = items.getLayer(id_); //your feature id here
|
|
294
|
+
items.resetStyle(layer);
|
|
295
|
+
});
|
|
296
|
+
$("#q").on("keypress", function(event){
|
|
297
|
+
if (event.which == 13 && !event.shiftKey) {
|
|
298
|
+
event.preventDefault();
|
|
299
|
+
var queryParams = new URLSearchParams(window.location.search);
|
|
300
|
+
queryParams.set("q", $("#q").val());
|
|
301
|
+
var new_url = '{{ config['server']['url'] }}/collections/{{ data['collection'] }}/items?' + queryParams.toString();
|
|
302
|
+
window.location = new_url;
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
});
|
|
306
|
+
{% endif %}
|
|
307
|
+
|
|
308
|
+
// Generates a pycsw bbox from leaflet bounds
|
|
309
|
+
function yx (b){
|
|
310
|
+
if (b && b._southWest){
|
|
311
|
+
return [b._southWest.lng,b._southWest.lat,b._northEast.lng,b._northEast.lat].join(',');
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
// Creates or sets the filter rectangle and adds it to map
|
|
316
|
+
var rectangle;
|
|
317
|
+
function setRectangle(bbox){
|
|
318
|
+
if (rectangle){
|
|
319
|
+
rectangle.setBounds(bbox)
|
|
320
|
+
} else {
|
|
321
|
+
rectangle = L.rectangle(bbox);
|
|
322
|
+
rectangle.editing.enable();
|
|
323
|
+
rectangle.setStyle({color :'green'});
|
|
324
|
+
}
|
|
325
|
+
map.addLayer(rectangle);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
// Dis/en-ables the spatial filter, the layer is removed or added at 95% map bounds
|
|
329
|
+
function trigger_spatial_filter(){
|
|
330
|
+
if (map.hasLayer(rectangle)){
|
|
331
|
+
rectangle.remove();
|
|
332
|
+
} else {
|
|
333
|
+
setRectangle(map.getBounds().pad(-0.95));
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
</script>
|
|
337
|
+
{% endblock %}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{% extends "_base.html" %}
|
|
2
|
+
{% block title %}{{ super() }} Home {% endblock %}
|
|
3
|
+
{% block body %}
|
|
4
|
+
|
|
5
|
+
<section id="links">
|
|
6
|
+
<div>
|
|
7
|
+
<h3>{{ config['metadata']['identification']['description'] }}</h3>
|
|
8
|
+
<ul class="list-group">
|
|
9
|
+
<li class="list-group-item list-group-item-action"><a title="Collections" href="{{ config['server']['url'] }}/collections">Collections</a></li>
|
|
10
|
+
<li class="list-group-item list-group-item-action">OpenAPI
|
|
11
|
+
<ul class="list-group">
|
|
12
|
+
<li class="list-group-item list-group-item-action"><a title="Swagger" href="{{ config['server']['url'] }}/openapi?f=html">Swagger</a></li>
|
|
13
|
+
<li class="list-group-item list-group-item-action"><a title="JSON" href="{{ config['server']['url'] }}/openapi?f=json">JSON</a></li>
|
|
14
|
+
</ul>
|
|
15
|
+
</li>
|
|
16
|
+
<li class="list-group-item list-group-item-action"><a title="Conformance" href="{{ config['server']['url'] }}/conformance">Conformance</a></li>
|
|
17
|
+
<li class="list-group-item list-group-item-action"><a title="CSW 3.0.0 endpoint" href="{{ config['server']['url'] }}/csw">CSW 3.0.0</a></li>
|
|
18
|
+
<li class="list-group-item list-group-item-action"><a title="CSW 2.0.2 endpoint" href="{{ config['server']['url'] }}/csw?service=CSW&version=2.0.2&request=GetCapabilities">CSW 2.0.2</a></li>
|
|
19
|
+
<li class="list-group-item list-group-item-action"><a title="OpenSearch endpoint" href="{{ config['server']['url'] }}/opensearch">OpenSearch</a></li>
|
|
20
|
+
<li class="list-group-item list-group-item-action"><a title="STAC API" href="{{ config['server']['url'] }}/stac">STAC API</a></li>
|
|
21
|
+
<li class="list-group-item list-group-item-action"><a title="OAI-PMH endpoint" href="{{ config['server']['url'] }}/oaipmh">OAI-PMH</a></li>
|
|
22
|
+
<li class="list-group-item list-group-item-action"><a title="SRU endpoint" href="{{ config['server']['url'] }}/sru">SRU</a></li>
|
|
23
|
+
</ul>
|
|
24
|
+
</div>
|
|
25
|
+
</section>
|
|
26
|
+
|
|
27
|
+
{% endblock %}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<!-- HTML for static distribution bundle build -->
|
|
2
|
+
<!DOCTYPE html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<title>Swagger UI - {{ config['metadata']['identification']['title'] }}</title>
|
|
7
|
+
<link rel="stylesheet" type="text/css" href="https://unpkg.com/swagger-ui-dist@3.28.0/swagger-ui.css" >
|
|
8
|
+
<link rel="icon" type="image/png" href="https://unpkg.com/swagger-ui-dist@3.28.0/favicon-32x32.png" sizes="32x32" />
|
|
9
|
+
<link rel="icon" type="image/png" href="https://unpkg.com/swagger-ui-dist@3.28.0/favicon-16x16.png" sizes="16x16" />
|
|
10
|
+
<style>
|
|
11
|
+
html
|
|
12
|
+
{
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
overflow: -moz-scrollbars-vertical;
|
|
15
|
+
overflow-y: scroll;
|
|
16
|
+
}
|
|
17
|
+
*,
|
|
18
|
+
*:before,
|
|
19
|
+
*:after
|
|
20
|
+
{
|
|
21
|
+
box-sizing: inherit;
|
|
22
|
+
}
|
|
23
|
+
body
|
|
24
|
+
{
|
|
25
|
+
margin:0;
|
|
26
|
+
background: #fafafa;
|
|
27
|
+
}
|
|
28
|
+
</style>
|
|
29
|
+
</head>
|
|
30
|
+
|
|
31
|
+
<body>
|
|
32
|
+
<div id="swagger-ui"></div>
|
|
33
|
+
<script src="https://unpkg.com/swagger-ui-dist@3.28.0/swagger-ui-bundle.js"> </script>
|
|
34
|
+
<script src="https://unpkg.com/swagger-ui-dist@3.28.0/swagger-ui-standalone-preset.js"> </script>
|
|
35
|
+
<script>
|
|
36
|
+
window.onload = function() {
|
|
37
|
+
// Begin Swagger UI call region
|
|
38
|
+
ui = SwaggerUIBundle({
|
|
39
|
+
url: '{{ config['server']['url'] }}/openapi?f=json',
|
|
40
|
+
dom_id: '#swagger-ui',
|
|
41
|
+
deepLinking: true,
|
|
42
|
+
presets: [
|
|
43
|
+
SwaggerUIBundle.presets.apis,
|
|
44
|
+
SwaggerUIStandalonePreset
|
|
45
|
+
],
|
|
46
|
+
plugins: [
|
|
47
|
+
SwaggerUIBundle.plugins.DownloadUrl
|
|
48
|
+
],
|
|
49
|
+
layout: 'StandaloneLayout'
|
|
50
|
+
})
|
|
51
|
+
// End Swagger UI call region
|
|
52
|
+
window.ui = ui
|
|
53
|
+
}
|
|
54
|
+
</script>
|
|
55
|
+
<style>.swagger-ui .topbar .download-url-wrapper { display: none } undefined</style>
|
|
56
|
+
</body>
|
|
57
|
+
</html>
|
|
58
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{% extends "_base.html" %}
|
|
2
|
+
{% block title %}{{ super() }} Queryables {% endblock %}
|
|
3
|
+
|
|
4
|
+
{% block crumbs %}
|
|
5
|
+
{{ super() }} /
|
|
6
|
+
<a href="{{ config['server']['url'] }}/collections">Collections</a> /
|
|
7
|
+
<a href="{{ config['server']['url'] }}/collections/{{ data['id'] }}">{{ data['title'] }}</a> /
|
|
8
|
+
<a href="{{ config['server']['url'] }}/collections/{{ data['id'] }}/queryables">Queryables</a>
|
|
9
|
+
{% endblock %}
|
|
10
|
+
|
|
11
|
+
{% block body %}
|
|
12
|
+
|
|
13
|
+
<section id="queryables">
|
|
14
|
+
<h2>Queryables</h2>
|
|
15
|
+
<h2>{{ data['title'] }}</h2>
|
|
16
|
+
|
|
17
|
+
<table class="table table-striped table-hover">
|
|
18
|
+
<thead>
|
|
19
|
+
<tr>
|
|
20
|
+
<th>Name</th>
|
|
21
|
+
<th>Type</th>
|
|
22
|
+
</tr>
|
|
23
|
+
</thead>
|
|
24
|
+
<tbody>
|
|
25
|
+
{% for qname, qinfo in data['properties'].items() %}
|
|
26
|
+
{% if qname == 'geometry' %}
|
|
27
|
+
<tr>
|
|
28
|
+
<td colspan="2"><a href="{{ qinfo['$ref'] }}">{{ qname }}</a></td>
|
|
29
|
+
</tr>
|
|
30
|
+
{% else %}
|
|
31
|
+
<tr>
|
|
32
|
+
<td>{{ qname }}</td>
|
|
33
|
+
<td>
|
|
34
|
+
<code>{{ qinfo['type'] }}</code>
|
|
35
|
+
{% if 'enum' in qinfo %}
|
|
36
|
+
<ul>
|
|
37
|
+
{% for value in qinfo['enum'] %}
|
|
38
|
+
<li><i>{{ value }}</i></li>
|
|
39
|
+
{% endfor %}
|
|
40
|
+
</ul>
|
|
41
|
+
{% endif %}
|
|
42
|
+
</td>
|
|
43
|
+
</tr>
|
|
44
|
+
{% endif %}
|
|
45
|
+
{% endfor %}
|
|
46
|
+
</tbody>
|
|
47
|
+
</table>
|
|
48
|
+
</section>
|
|
49
|
+
|
|
50
|
+
{% endblock %}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
{% extends "_base.html" %}
|
|
2
|
+
{% block title %}{{ super() }} Items {% endblock %}
|
|
3
|
+
|
|
4
|
+
{% block extrahead %}
|
|
5
|
+
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css"/>
|
|
6
|
+
<script src="https://code.jquery.com/jquery-3.6.0.js"></script>
|
|
7
|
+
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>
|
|
8
|
+
<style>
|
|
9
|
+
#records-map {
|
|
10
|
+
height: 350px;
|
|
11
|
+
}
|
|
12
|
+
</style>
|
|
13
|
+
|
|
14
|
+
{% endblock %}
|
|
15
|
+
|
|
16
|
+
{% block crumbs %}
|
|
17
|
+
{{ super() }} /
|
|
18
|
+
<a href="{{ config['server']['url'] }}/search">Search</a>
|
|
19
|
+
{% endblock %}
|
|
20
|
+
|
|
21
|
+
{% block body %}
|
|
22
|
+
|
|
23
|
+
<section id="items">
|
|
24
|
+
|
|
25
|
+
{% set nav_links = namespace(prev=None, next=None) %}
|
|
26
|
+
{% for link in data['links'] %}
|
|
27
|
+
{% if link['rel'] == 'prev' %}
|
|
28
|
+
{% set nav_links.prev = link['href'] %}
|
|
29
|
+
{% endif %}
|
|
30
|
+
{% if link['rel'] == 'next' %}
|
|
31
|
+
{% set nav_links.next = link['href'] %}
|
|
32
|
+
{% endif %}
|
|
33
|
+
{% endfor %}
|
|
34
|
+
|
|
35
|
+
<div class="container-fluid">
|
|
36
|
+
<div class="row">
|
|
37
|
+
<div class="col-lg-6">
|
|
38
|
+
<div id="records-map"></div>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="col-lg-6">
|
|
41
|
+
{% if nav_links.prev %}
|
|
42
|
+
<a href="{{ nav_links.prev }}"><button type="button" class="btn btn-sm btn-primary">Prev</button></a>
|
|
43
|
+
{% else %}
|
|
44
|
+
<button type="button" class="btn btn-sm btn-primary" disabled>Prev</button>
|
|
45
|
+
{% endif %}
|
|
46
|
+
{% if nav_links.next %}
|
|
47
|
+
<a href="{{ nav_links.next }}"><button type="button" class="btn btn-sm btn-primary">Next</button></a>
|
|
48
|
+
{% else %}
|
|
49
|
+
<button type="button" class="btn btn-sm btn-primary" disabled>Next</button>
|
|
50
|
+
{% endif %}
|
|
51
|
+
<form id="items-query-form">
|
|
52
|
+
<input id="q" class="form-control" name="q"/>
|
|
53
|
+
</form>
|
|
54
|
+
<div class="row">
|
|
55
|
+
<table class="table table-striped table-hover" id="items-table-table">
|
|
56
|
+
<thead>
|
|
57
|
+
<tr>
|
|
58
|
+
<th>Title</th>
|
|
59
|
+
<th>Type</th>
|
|
60
|
+
</tr>
|
|
61
|
+
</thead>
|
|
62
|
+
<tbody>
|
|
63
|
+
{% for rec in data['features'] %}
|
|
64
|
+
<tr>
|
|
65
|
+
{% if 'properties' in rec %}
|
|
66
|
+
<td id="{{ rec['id'] }}"><a title="{{ rec['properties']['title'] }}" href="{{ config['server']['url'] }}/stac/collections/metadata:main/items/{{ rec['id'] }}">{{ rec['properties']['title'] }}</a></td>
|
|
67
|
+
{% else %}
|
|
68
|
+
<td id="{{ rec['id'] }}"><a title="{{ rec.get('title', rec['id']) }}" href="{{ config['server']['url'] }}/stac/collections/metadata:main/items/{{ rec['id'] }}">{{ rec.get('title', rec['id']) }}</a></td>
|
|
69
|
+
{% endif %}
|
|
70
|
+
{% if 'properties' in rec %}
|
|
71
|
+
{% if 'type' in rec['properties'] %}
|
|
72
|
+
<td>{{ rec['properties']['type'] }}</td>
|
|
73
|
+
{% elif rec.get('type') == 'Feature' and 'stac_version' not in rec %}
|
|
74
|
+
<td>record</td>
|
|
75
|
+
{% elif rec.get('type') == 'Feature' and 'stac_version' in rec %}
|
|
76
|
+
<td>item</td>
|
|
77
|
+
{% else%}
|
|
78
|
+
<td>{{ rec.get('type') }}</td>
|
|
79
|
+
{% endif %}
|
|
80
|
+
{% else %}
|
|
81
|
+
{% if rec.get('type') == 'Feature' and 'stac_version' not in rec %}
|
|
82
|
+
<td>record</td>
|
|
83
|
+
{% elif rec.get('type') == 'Feature' and 'stac_version' in rec %}
|
|
84
|
+
<td>item</td>
|
|
85
|
+
{% elif rec.get('type') == 'Collection' and 'stac_version' in rec %}
|
|
86
|
+
<td>collection</td>
|
|
87
|
+
{% elif rec.get('type') == 'Catalog' and 'stac_version' in rec %}
|
|
88
|
+
<td>catalog</td>
|
|
89
|
+
{% else%}
|
|
90
|
+
<td>{{ rec.get('type') }}</td>
|
|
91
|
+
{% endif %}
|
|
92
|
+
{% endif %}
|
|
93
|
+
</tr>
|
|
94
|
+
{% endfor %}
|
|
95
|
+
</tbody>
|
|
96
|
+
</table>
|
|
97
|
+
</div>
|
|
98
|
+
{% if nav_links.prev %}
|
|
99
|
+
<a href="{{ nav_links.prev }}"><button type="button" class="btn btn-sm btn-primary">Prev</button></a>
|
|
100
|
+
{% else %}
|
|
101
|
+
<button type="button" class="btn btn-sm btn-primary" disabled>Prev</button>
|
|
102
|
+
{% endif %}
|
|
103
|
+
{% if nav_links.next %}
|
|
104
|
+
<a href="{{ nav_links.next }}"><button type="button" class="btn btn-sm btn-primary">Next</button></a>
|
|
105
|
+
{% else %}
|
|
106
|
+
<button type="button" class="btn btn-sm btn-primary" disabled>Next</button>
|
|
107
|
+
{% endif %}
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
|
|
112
|
+
</section>
|
|
113
|
+
|
|
114
|
+
{% endblock %}
|
|
115
|
+
|
|
116
|
+
{% block extrafoot %}
|
|
117
|
+
{% if data['features'] %}
|
|
118
|
+
<script>
|
|
119
|
+
var map = L.map('records-map').setView([0, 0], 1);
|
|
120
|
+
map.addLayer(new L.TileLayer(
|
|
121
|
+
'https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
|
122
|
+
maxZoom: 18,
|
|
123
|
+
attribution: 'Map data © <a href="https://openstreetmap.org/copyright">OpenStreetMap contributors</a>'
|
|
124
|
+
}
|
|
125
|
+
));
|
|
126
|
+
var geojson_data = {{ data['features'] | to_json }};
|
|
127
|
+
var items = new L.GeoJSON(geojson_data, {
|
|
128
|
+
onEachFeature: function (feature, layer) {
|
|
129
|
+
var url = './items/' + feature.id;
|
|
130
|
+
var html = '<span><a href="' + url + '">' + feature.id + '</a></span>';
|
|
131
|
+
layer._leaflet_id = feature.id;
|
|
132
|
+
layer.bindPopup(html);
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
map.addLayer(items);
|
|
137
|
+
var bounds = items.getBounds();
|
|
138
|
+
if (bounds.isValid() === true) {
|
|
139
|
+
map.fitBounds(bounds);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
var highlightStyle = {
|
|
143
|
+
color: 'red',
|
|
144
|
+
dashArray: '',
|
|
145
|
+
fillOpacity: 0.5
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
$(document).ready(function() {
|
|
149
|
+
$('#items-table-table tr').on('mouseenter', function(e){
|
|
150
|
+
id_ = $(this).find('[id]').attr('id');
|
|
151
|
+
layer = items.getLayer(id_); //your feature id here
|
|
152
|
+
if (layer) {
|
|
153
|
+
layer.setStyle(highlightStyle);
|
|
154
|
+
}
|
|
155
|
+
}).on('mouseout', function(e){
|
|
156
|
+
id_ = $(this).find('[id]').attr('id');
|
|
157
|
+
layer = items.getLayer(id_); //your feature id here
|
|
158
|
+
items.resetStyle(layer);
|
|
159
|
+
});
|
|
160
|
+
$("#q").on("keypress", function(event){
|
|
161
|
+
if (event.which == 13 && !event.shiftKey) {
|
|
162
|
+
event.preventDefault();
|
|
163
|
+
|
|
164
|
+
var queryParams = new URLSearchParams(window.location.search);
|
|
165
|
+
queryParams.set("q", $("#q").val());
|
|
166
|
+
var new_url = '{{ config['server']['url'] }}/collections/metadata:main/items?' + queryParams.toString();
|
|
167
|
+
window.location = new_url;
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
</script>
|
|
172
|
+
{% endif %}
|
|
173
|
+
{% endblock %}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|