Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iso19139.mcp-1.4
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenWork
Metadata 101
iso19139.mcp-1.4
Commits
a3a5f901
Commit
a3a5f901
authored
Apr 24, 2019
by
ByronCinNZ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added files and changes needed to support GeoNetwork 3.4 and later
parents
Changes
167
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
167 changed files
with
921 additions
and
0 deletions
+921
-0
pom.xml
pom.xml
+57
-0
src/main/plugin/iso19139.mcp-1.4/convert/OGCWxSGetCapabilitiesto19119/OGCSOSGetCapabilities-to-ISO19119_ISO19139.xsl
...iesto19119/OGCSOSGetCapabilities-to-ISO19119_ISO19139.xsl
+505
-0
src/main/plugin/iso19139.mcp-1.4/convert/OGCWxSGetCapabilitiesto19119/OGCSOSGetCapabilitiesLayer-to-19139.xsl
...pabilitiesto19119/OGCSOSGetCapabilitiesLayer-to-19139.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/convert/ThreddsDIFToISO/CDMCoords-to-ISO19139Keywords.xsl
...convert/ThreddsDIFToISO/CDMCoords-to-ISO19139Keywords.xsl
+60
-0
src/main/plugin/iso19139.mcp-1.4/convert/ThreddsDIFToISO/CDMCoords-to-ISO19139MCPDataParameters.xsl
...hreddsDIFToISO/CDMCoords-to-ISO19139MCPDataParameters.xsl
+118
-0
src/main/plugin/iso19139.mcp-1.4/convert/ThreddsDIFToISO/DIFToISO.xsl
...gin/iso19139.mcp-1.4/convert/ThreddsDIFToISO/DIFToISO.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/convert/ThreddsToFragments/netcdf-attributes.xsl
....mcp-1.4/convert/ThreddsToFragments/netcdf-attributes.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/convert/ThreddsToFragments/thredds-metadata.xsl
...9.mcp-1.4/convert/ThreddsToFragments/thredds-metadata.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/convert/ThreddsToFragments/thredds/utils.xsl
...9139.mcp-1.4/convert/ThreddsToFragments/thredds/utils.xsl
+91
-0
src/main/plugin/iso19139.mcp-1.4/convert/WFSToFragments/deegree22_philosopher_fragments.xsl
...onvert/WFSToFragments/deegree22_philosopher_fragments.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/convert/WFSToFragments/geoserver_boundary_fragments.xsl
...4/convert/WFSToFragments/geoserver_boundary_fragments.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/convert/oai_dc.xsl
src/main/plugin/iso19139.mcp-1.4/convert/oai_dc.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/convert/rif.xsl
src/main/plugin/iso19139.mcp-1.4/convert/rif.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/convert/to19139.xsl
src/main/plugin/iso19139.mcp-1.4/convert/to19139.xsl
+80
-0
src/main/plugin/iso19139.mcp-1.4/convert/xml_iso19139.mcp-1.4.xsl
.../plugin/iso19139.mcp-1.4/convert/xml_iso19139.mcp-1.4.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/extract-date-modified.xsl
src/main/plugin/iso19139.mcp-1.4/extract-date-modified.xsl
+10
-0
src/main/plugin/iso19139.mcp-1.4/extract-gml.xsl
src/main/plugin/iso19139.mcp-1.4/extract-gml.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/extract-subtemplate-title.xsl
...ain/plugin/iso19139.mcp-1.4/extract-subtemplate-title.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/extract-thumbnails.xsl
src/main/plugin/iso19139.mcp-1.4/extract-thumbnails.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/extract-uuid.xsl
src/main/plugin/iso19139.mcp-1.4/extract-uuid.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/index-fields.xsl
src/main/plugin/iso19139.mcp-1.4/index-fields.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/layout/config-editor.xml
src/main/plugin/iso19139.mcp-1.4/layout/config-editor.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/layout/dispatcher.xsl
src/main/plugin/iso19139.mcp-1.4/layout/dispatcher.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/layout/layout-custom-fields.xsl
...n/plugin/iso19139.mcp-1.4/layout/layout-custom-fields.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/layout/layout.xsl
src/main/plugin/iso19139.mcp-1.4/layout/layout.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/layout/tpl-brief.xsl
src/main/plugin/iso19139.mcp-1.4/layout/tpl-brief.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/layout/tpl-rdf.xsl
src/main/plugin/iso19139.mcp-1.4/layout/tpl-rdf.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/layout/utility-tpl-multilingual.xsl
...ugin/iso19139.mcp-1.4/layout/utility-tpl-multilingual.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/layout/utility-tpl.xsl
src/main/plugin/iso19139.mcp-1.4/layout/utility-tpl.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/loc/eng/codelists.xml
src/main/plugin/iso19139.mcp-1.4/loc/eng/codelists.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/loc/eng/labels.xml
src/main/plugin/iso19139.mcp-1.4/loc/eng/labels.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/loc/eng/schematron-rules-iso-mcp.xml
...gin/iso19139.mcp-1.4/loc/eng/schematron-rules-iso-mcp.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/loc/eng/schematron-rules-iso.xml
.../plugin/iso19139.mcp-1.4/loc/eng/schematron-rules-iso.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/loc/eng/strings.xml
src/main/plugin/iso19139.mcp-1.4/loc/eng/strings.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/oasis-catalog.xml
src/main/plugin/iso19139.mcp-1.4/oasis-catalog.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/present/csw/iso-brief.xsl
src/main/plugin/iso19139.mcp-1.4/present/csw/iso-brief.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/present/csw/iso-full.xsl
src/main/plugin/iso19139.mcp-1.4/present/csw/iso-full.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/present/csw/iso-summary.xsl
src/main/plugin/iso19139.mcp-1.4/present/csw/iso-summary.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/present/csw/ogc-brief.xsl
src/main/plugin/iso19139.mcp-1.4/present/csw/ogc-brief.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/present/csw/ogc-full.xsl
src/main/plugin/iso19139.mcp-1.4/present/csw/ogc-full.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/present/csw/ogc-summary.xsl
src/main/plugin/iso19139.mcp-1.4/present/csw/ogc-summary.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/present/metadata-edit.xsl
src/main/plugin/iso19139.mcp-1.4/present/metadata-edit.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/present/metadata-fop.xsl
src/main/plugin/iso19139.mcp-1.4/present/metadata-fop.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/present/metadata-view.xsl
src/main/plugin/iso19139.mcp-1.4/present/metadata-view.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/present/metadata.xsl
src/main/plugin/iso19139.mcp-1.4/present/metadata.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/add-extent-from-geokeywords.xsl
.../iso19139.mcp-1.4/process/add-extent-from-geokeywords.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/add-info-from-wms.xsl
...ain/plugin/iso19139.mcp-1.4/process/add-info-from-wms.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/add-service-info-from-wxs.xsl
...in/iso19139.mcp-1.4/process/add-service-info-from-wxs.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/anonymizer.xsl
src/main/plugin/iso19139.mcp-1.4/process/anonymizer.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/dataset-add.xsl
src/main/plugin/iso19139.mcp-1.4/process/dataset-add.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/fcats-add.xsl
src/main/plugin/iso19139.mcp-1.4/process/fcats-add.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/fcats-remove.xsl
src/main/plugin/iso19139.mcp-1.4/process/fcats-remove.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/keywords-mapper.xsl
src/main/plugin/iso19139.mcp-1.4/process/keywords-mapper.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/linked-data-checker.xsl
...n/plugin/iso19139.mcp-1.4/process/linked-data-checker.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/onlinesrc-add.xsl
src/main/plugin/iso19139.mcp-1.4/process/onlinesrc-add.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/onlinesrc-remove.xsl
...main/plugin/iso19139.mcp-1.4/process/onlinesrc-remove.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/parent-add.xsl
src/main/plugin/iso19139.mcp-1.4/process/parent-add.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/parent-remove.xsl
src/main/plugin/iso19139.mcp-1.4/process/parent-remove.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/process-utility.xsl
src/main/plugin/iso19139.mcp-1.4/process/process-utility.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/related-metadata-checker.xsl
...gin/iso19139.mcp-1.4/process/related-metadata-checker.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/scale-denominator-formatter.xsl
.../iso19139.mcp-1.4/process/scale-denominator-formatter.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/sibling-add.xsl
src/main/plugin/iso19139.mcp-1.4/process/sibling-add.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/sibling-remove.xsl
src/main/plugin/iso19139.mcp-1.4/process/sibling-remove.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/sources-add.xsl
src/main/plugin/iso19139.mcp-1.4/process/sources-add.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/sources-remove.xsl
src/main/plugin/iso19139.mcp-1.4/process/sources-remove.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/thumbnail-add.xsl
src/main/plugin/iso19139.mcp-1.4/process/thumbnail-add.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/thumbnail-linker.xsl
...main/plugin/iso19139.mcp-1.4/process/thumbnail-linker.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/thumbnail-remove.xsl
...main/plugin/iso19139.mcp-1.4/process/thumbnail-remove.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/thumbnails-host-url-relocator.xsl
...so19139.mcp-1.4/process/thumbnails-host-url-relocator.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/update-onlineSrc.xsl
...main/plugin/iso19139.mcp-1.4/process/update-onlineSrc.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/process/xlinks-href-update.xsl
...in/plugin/iso19139.mcp-1.4/process/xlinks-href-update.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/sample-data/README
src/main/plugin/iso19139.mcp-1.4/sample-data/README
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema-conversions.xml
src/main/plugin/iso19139.mcp-1.4/schema-conversions.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema-ident.xml
src/main/plugin/iso19139.mcp-1.4/schema-ident.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema-substitutes.xml
src/main/plugin/iso19139.mcp-1.4/schema-substitutes.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema-suggestions.xml
src/main/plugin/iso19139.mcp-1.4/schema-suggestions.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema.xsd
src/main/plugin/iso19139.mcp-1.4/schema.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/extensions/mcpExtensions.xsd
...ugin/iso19139.mcp-1.4/schema/extensions/mcpExtensions.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gco/basicTypes.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gco/basicTypes.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gco/gco.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gco/gco.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gco/gcoBase.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gco/gcoBase.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmd/applicationSchema.xsd
.../plugin/iso19139.mcp-1.4/schema/gmd/applicationSchema.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmd/citation.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gmd/citation.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmd/constraints.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gmd/constraints.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmd/content.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gmd/content.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmd/dataQuality.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gmd/dataQuality.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmd/distribution.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gmd/distribution.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmd/extent.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gmd/extent.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmd/freeText.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gmd/freeText.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmd/gmd.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gmd/gmd.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmd/identification.xsd
...ain/plugin/iso19139.mcp-1.4/schema/gmd/identification.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmd/maintenance.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gmd/maintenance.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmd/metadataApplication.xsd
...lugin/iso19139.mcp-1.4/schema/gmd/metadataApplication.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmd/metadataEntity.xsd
...ain/plugin/iso19139.mcp-1.4/schema/gmd/metadataEntity.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmd/metadataExtension.xsd
.../plugin/iso19139.mcp-1.4/schema/gmd/metadataExtension.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmd/portrayalCatalogue.xsd
...plugin/iso19139.mcp-1.4/schema/gmd/portrayalCatalogue.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmd/referenceSystem.xsd
...in/plugin/iso19139.mcp-1.4/schema/gmd/referenceSystem.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmd/spatialRepresentation.xsd
...gin/iso19139.mcp-1.4/schema/gmd/spatialRepresentation.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/basicTypes.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gml/basicTypes.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/coordinateOperations.xsd
...ugin/iso19139.mcp-1.4/schema/gml/coordinateOperations.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/coordinateReferenceSystems.xsd
...so19139.mcp-1.4/schema/gml/coordinateReferenceSystems.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/coordinateSystems.xsd
.../plugin/iso19139.mcp-1.4/schema/gml/coordinateSystems.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/coverage.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gml/coverage.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/datums.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gml/datums.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/dictionary.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gml/dictionary.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/direction.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gml/direction.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/dynamicFeature.xsd
...ain/plugin/iso19139.mcp-1.4/schema/gml/dynamicFeature.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/feature.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gml/feature.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/geometryAggregates.xsd
...plugin/iso19139.mcp-1.4/schema/gml/geometryAggregates.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/geometryBasic0d1d.xsd
.../plugin/iso19139.mcp-1.4/schema/gml/geometryBasic0d1d.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/geometryBasic2d.xsd
...in/plugin/iso19139.mcp-1.4/schema/gml/geometryBasic2d.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/geometryComplexes.xsd
.../plugin/iso19139.mcp-1.4/schema/gml/geometryComplexes.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/geometryPrimitives.xsd
...plugin/iso19139.mcp-1.4/schema/gml/geometryPrimitives.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/gml.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gml/gml.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/gmlBase.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gml/gmlBase.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/grids.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gml/grids.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/measures.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gml/measures.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/observation.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gml/observation.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/readme.txt
src/main/plugin/iso19139.mcp-1.4/schema/gml/readme.txt
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/referenceSystems.xsd
...n/plugin/iso19139.mcp-1.4/schema/gml/referenceSystems.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/temporal.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gml/temporal.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/temporalReferenceSystems.xsd
.../iso19139.mcp-1.4/schema/gml/temporalReferenceSystems.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/temporalTopology.xsd
...n/plugin/iso19139.mcp-1.4/schema/gml/temporalTopology.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/topology.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gml/topology.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/units.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gml/units.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gml/valueObjects.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gml/valueObjects.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmx/catalogues.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gmx/catalogues.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmx/codelistItem.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gmx/codelistItem.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmx/crsItem.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gmx/crsItem.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmx/extendedTypes.xsd
...main/plugin/iso19139.mcp-1.4/schema/gmx/extendedTypes.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmx/gmx.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gmx/gmx.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmx/gmxUsage.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gmx/gmxUsage.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gmx/uomItem.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gmx/uomItem.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gsr/gsr.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gsr/gsr.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gsr/spatialReferencing.xsd
...plugin/iso19139.mcp-1.4/schema/gsr/spatialReferencing.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gss/geometry.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gss/geometry.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gss/gss.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gss/gss.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gts/gts.xsd
src/main/plugin/iso19139.mcp-1.4/schema/gts/gts.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/gts/temporalObjects.xsd
...in/plugin/iso19139.mcp-1.4/schema/gts/temporalObjects.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/resources/Codelist/ML_gmxCodelists.xml
...139.mcp-1.4/schema/resources/Codelist/ML_gmxCodelists.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/resources/Codelist/epsgaustralia.xml
...19139.mcp-1.4/schema/resources/Codelist/epsgaustralia.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/resources/Codelist/gmxCodelists.xml
...o19139.mcp-1.4/schema/resources/Codelist/gmxCodelists.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/resources/Codelist/mcp-allgens.xml
...so19139.mcp-1.4/schema/resources/Codelist/mcp-allgens.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/resources/crs/ML_gmxCrs.xml
...lugin/iso19139.mcp-1.4/schema/resources/crs/ML_gmxCrs.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/resources/crs/gmxCrs.xml
...n/plugin/iso19139.mcp-1.4/schema/resources/crs/gmxCrs.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/resources/uom/ML_gmxUom.xml
...lugin/iso19139.mcp-1.4/schema/resources/uom/ML_gmxUom.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/resources/uom/gmxUom.xml
...n/plugin/iso19139.mcp-1.4/schema/resources/uom/gmxUom.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/srv/serviceMetadata.xsd
...in/plugin/iso19139.mcp-1.4/schema/srv/serviceMetadata.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/srv/serviceModel.xsd
src/main/plugin/iso19139.mcp-1.4/schema/srv/serviceModel.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/srv/srv.xsd
src/main/plugin/iso19139.mcp-1.4/schema/srv/srv.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/xlink/version.txt
src/main/plugin/iso19139.mcp-1.4/schema/xlink/version.txt
+0
-0
src/main/plugin/iso19139.mcp-1.4/schema/xlink/xlinks.xsd
src/main/plugin/iso19139.mcp-1.4/schema/xlink/xlinks.xsd
+0
-0
src/main/plugin/iso19139.mcp-1.4/schematron/schematron-rules-iso-codeListValidation.sch
....4/schematron/schematron-rules-iso-codeListValidation.sch
+0
-0
src/main/plugin/iso19139.mcp-1.4/schematron/schematron-rules-iso-mcp.sch
.../iso19139.mcp-1.4/schematron/schematron-rules-iso-mcp.sch
+0
-0
src/main/plugin/iso19139.mcp-1.4/set-creativecommons.xsl
src/main/plugin/iso19139.mcp-1.4/set-creativecommons.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/set-datacommons.xsl
src/main/plugin/iso19139.mcp-1.4/set-datacommons.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/set-thumbnail.xsl
src/main/plugin/iso19139.mcp-1.4/set-thumbnail.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/set-uuid.xsl
src/main/plugin/iso19139.mcp-1.4/set-uuid.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/templates/MCPCore.xml
src/main/plugin/iso19139.mcp-1.4/templates/MCPCore.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/templates/MCPCore_with_VerticalExtent.xml
...so19139.mcp-1.4/templates/MCPCore_with_VerticalExtent.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/templates/MCPMinimum.xml
src/main/plugin/iso19139.mcp-1.4/templates/MCPMinimum.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/templates/README
src/main/plugin/iso19139.mcp-1.4/templates/README
+0
-0
src/main/plugin/iso19139.mcp-1.4/templates/thredds-harvester-unidata-data-discovery.xml
....4/templates/thredds-harvester-unidata-data-discovery.xml
+0
-0
src/main/plugin/iso19139.mcp-1.4/unset-thumbnail.xsl
src/main/plugin/iso19139.mcp-1.4/unset-thumbnail.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/update-child-from-parent-info.xsl
...plugin/iso19139.mcp-1.4/update-child-from-parent-info.xsl
+0
-0
src/main/plugin/iso19139.mcp-1.4/update-fixed-info.xsl
src/main/plugin/iso19139.mcp-1.4/update-fixed-info.xsl
+0
-0
src/main/resources/config-spring-geonetwork.xml
src/main/resources/config-spring-geonetwork.xml
+0
-0
No files found.
pom.xml
0 → 100644
View file @
a3a5f901
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
schemas
</artifactId>
<groupId>
org.geonetwork-opensource
</groupId>
<version>
2.11.0-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
schema-iso19139.mcp-1.4
</artifactId>
<name>
GeoNetwork schema plugin for iso19139.mcp-1.4 standard
</name>
<dependencies>
<dependency>
<groupId>
${project.groupId}
</groupId>
<artifactId>
schema-core
</artifactId>
<version>
${project.version}
</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>
maven-jar-plugin
</artifactId>
<executions>
<execution>
<id>
test-jar
</id>
<goals>
<goal>
test-jar
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>
run-static-analysis
</id>
<activation>
<property>
<name>
!skipTests
</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
findbugs-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
src/main/plugin/iso19139.mcp-1.4/convert/OGCWxSGetCapabilitiesto19119/OGCSOSGetCapabilities-to-ISO19119_ISO19139.xsl
0 → 100644
View file @
a3a5f901
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
version=
"2.0"
xmlns=
"http://www.isotc211.org/2005/gmd"
xmlns:gco=
"http://www.isotc211.org/2005/gco"
xmlns:gts=
"http://www.isotc211.org/2005/gts"
xmlns:gml=
"http://www.opengis.net/gml"
xmlns:gmx=
"http://www.isotc211.org/2005/gmx"
xmlns:gmd=
"http://www.isotc211.org/2005/gmd"
xmlns:srv=
"http://www.isotc211.org/2005/srv"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
xmlns:sos=
"http://www.opengis.net/sos/1.0"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xmlns:ows=
"http://www.opengis.net/ows/1.1"
xmlns:crs=
"java:org.geotools.referencing.CRS"
xmlns:defcrs=
"java:org.geotools.referencing.crs.DefaultGeographicCRS"
xmlns:renv=
"java:org.geotools.geometry.jts.ReferencedEnvelope"
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
xmlns:mcp=
"http://bluenet3.antcrc.utas.edu.au/mcp"
extension-element-prefixes=
"crs defcrs renv"
>
<!-- ============================================================================= -->
<xsl:param
name=
"uuid"
>
uuid
</xsl:param>
<xsl:param
name=
"lang"
>
eng
</xsl:param>
<xsl:param
name=
"topic"
></xsl:param>
<!-- ============================================================================= -->
<xsl:include
href=
"../../../../xsl/conversion/OGCWxSGetCapabilitiesto19119/resp-party.xsl"
/>
<!-- ============================================================================= -->
<xsl:output
method=
"xml"
version=
"1.0"
encoding=
"UTF-8"
indent=
"yes"
/>
<!-- ============================================================================= -->
<xsl:template
match=
"/"
>
<xsl:apply-templates/>
</xsl:template>
<!-- ============================================================================= -->
<xsl:template
match=
"sos:Capabilities"
>
<mcp:MD_Metadata
gco:isoType=
"gmd:MD_Metadata"
>
<fileIdentifier>
<gco:CharacterString><xsl:value-of
select=
"$uuid"
/></gco:CharacterString>
</fileIdentifier>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<language>
<gco:CharacterString><xsl:value-of
select=
"$lang"
/></gco:CharacterString>
<!-- English is default. Not available in GetCapabilities.
Selected by user from GUI -->
</language>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<characterSet>
<MD_CharacterSetCode
codeList=
"./resources/codeList.xml#MD_CharacterSetCode"
codeListValue=
"utf8"
/>
</characterSet>
<!-- parentIdentifier : service have no parent -->
<!-- mdHrLv -->
<hierarchyLevel>
<MD_ScopeCode
codeList=
"./resources/codeList.xml#MD_ScopeCode"
codeListValue=
"service"
/>
</hierarchyLevel>
<!-- mdHrLvName -->
<xsl:choose>
<xsl:when
test=
"ows:ServiceProvider"
>
<xsl:for-each
select=
"ows:ServiceProvider"
>
<contact>
<CI_ResponsibleParty>
<xsl:apply-templates
select=
"."
mode=
"RespParty"
/>
</CI_ResponsibleParty>
</contact>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<contact
gco:nilReason=
"missing"
/>
</xsl:otherwise>
</xsl:choose>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<xsl:variable
name=
"df"
>
[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01]
</xsl:variable>
<dateStamp>
<gco:DateTime><xsl:value-of
select=
"format-dateTime(current-dateTime(),$df)"
/></gco:DateTime>
</dateStamp>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<metadataStandardName>
<gco:CharacterString>
Australian Marine Community Profile of ISO 19115:2005/19139
</gco:CharacterString>
</metadataStandardName>
<metadataStandardVersion>
<gco:CharacterString>
1.4
</gco:CharacterString>
</metadataStandardVersion>
<!-- spatRepInfo-->
<xsl:if
test=
"//sos:ObservationOffering/gml:srsName"
>
<referenceSystemInfo>
<MD_ReferenceSystem>
<referenceSystemIdentifier>
<RS_Identifier>
<code>
<!-- Add WGS84 if exist else add only the first one to avoid to have the full list of CRS supported.
OGC Clients should use the GetCapabilities to get this information -->
<xsl:choose>
<xsl:when
test=
"//sos:ObservationOffering/gml:srsName[.='EPSG:4326']"
>
<gco:CharacterString>
EPSG:4326
</gco:CharacterString>
</xsl:when>
<xsl:otherwise>
<gco:CharacterString><xsl:value-of
select=
"//sos:ObservationOffering[gml:srsName][1]/gml:srsName[1]"
/></gco:CharacterString>
</xsl:otherwise>
</xsl:choose>
</code>
</RS_Identifier>
</referenceSystemIdentifier>
</MD_ReferenceSystem>
</referenceSystemInfo>
</xsl:if>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<identificationInfo>
<srv:SV_ServiceIdentification>
<citation>
<CI_Citation>
<title>
<gco:CharacterString>
<xsl:value-of
select=
"ows:ServiceIdentification/ows:Title"
/>
</gco:CharacterString>
</title>
<date>
<CI_Date>
<xsl:variable
name=
"df"
>
[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01]
</xsl:variable>
<date>
<gco:DateTime><xsl:value-of
select=
"format-dateTime(current-dateTime(),$df)"
/></gco:DateTime>
</date>
<dateType>
<CI_DateTypeCode
codeList=
"./resources/codeList.xml#CI_DateTypeCode"
codeListValue=
"revision"
/>
</dateType>
</CI_Date>
</date>
</CI_Citation>
</citation>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<abstract>
<gco:CharacterString>
<xsl:value-of
select=
"ows:ServiceIdentification/ows:Abstract"
/>
</gco:CharacterString>
</abstract>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<xsl:variable
name=
"temporalExtent"
>
<xsl:call-template
name=
"temporal-element"
/>
</xsl:variable>
<status>
<xsl:choose>
<xsl:when
test=
"$temporalExtent/gmd:temporalElement/mcp:EX_TemporalExtent/gmd:extent/gml:TimePeriod/gml:endPosition/@indeterminatePosition[.='now']"
>
<MD_ProgressCode
codeList=
"./resources/codeList.xml#MD_ProgressCode"
codeListValue=
"onGoing"
/>
</xsl:when>
<xsl:otherwise>
<MD_ProgressCode
codeList=
"./resources/codeList.xml#MD_ProgressCode"
codeListValue=
"completed"
/>
</xsl:otherwise>
</xsl:choose>
</status>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<xsl:for-each
select=
"ows:ServiceProvider"
>
<pointOfContact>
<CI_ResponsibleParty>
<xsl:apply-templates
select=
"."
mode=
"RespParty"
/>
</CI_ResponsibleParty>
</pointOfContact>
</xsl:for-each>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<xsl:for-each
select=
"ows:ServiceIdentification/ows:Keywords"
>
<descriptiveKeywords>
<MD_Keywords>
<xsl:for-each
select=
"ows:Keyword"
>
<keyword>
<gco:CharacterString><xsl:value-of
select=
"."
/></gco:CharacterString>
</keyword>
</xsl:for-each>
<type>
<MD_KeywordTypeCode
codeList=
"./resources/codeList.xml#MD_KeywordTypeCode"
codeListValue=
"theme"
/>
</type>
</MD_Keywords>
</descriptiveKeywords>
</xsl:for-each>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<srv:serviceType>
<gco:LocalName
codeSpace=
"www.w3c.org"
>
OGC:SOS
</gco:LocalName>
</srv:serviceType>
<srv:serviceTypeVersion>
<gco:CharacterString><xsl:value-of
select=
'@version'
/></gco:CharacterString>
</srv:serviceTypeVersion>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<srv:accessProperties>
<MD_StandardOrderProcess>
<fees>
<gco:CharacterString>
<xsl:value-of
select=
"ows:ServiceIdentification/ows:Fees"
/>
</gco:CharacterString>
</fees>
</MD_StandardOrderProcess>
</srv:accessProperties>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<srv:extent>
<EX_Extent>
<xsl:call-template
name=
"geographic-element"
/>
<xsl:call-template
name=
"temporal-element"
/>
</EX_Extent>
</srv:extent>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<srv:couplingType>
<srv:SV_CouplingType
codeList=
"#SV_CouplingType"
codeListValue=
"tight"
>
tight
</srv:SV_CouplingType>
</srv:couplingType>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<xsl:for-each
select=
"ows:OperationsMetadata/ows:Operation"
>
<srv:containsOperations>
<srv:SV_OperationMetadata>
<srv:operationName>
<gco:CharacterString>
<xsl:value-of
select=
"@name"
/>
</gco:CharacterString>
</srv:operationName>
<!-- CHECKME : DCPType/SOAP ? -->
<xsl:for-each
select=
"ows:DCP/ows:HTTP/*"
>
<srv:DCP>
<srv:DCPList
codeList=
"#DCPList"
>
<xsl:variable
name=
"dcp"
>
<xsl:choose>
<xsl:when
test=
"name(.)='ows:Get'"
>
HTTP-GET
</xsl:when>
<xsl:when
test=
"name(.)='ows:Post'"
>
HTTP-POST
</xsl:when>
<xsl:otherwise>
WebServices
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:attribute
name=
"codeListValue"
>
<xsl:value-of
select=
"$dcp"
/>
</xsl:attribute>
</srv:DCPList>
</srv:DCP>
</xsl:for-each>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<xsl:for-each-group
select=
"ows:DCP/ows:HTTP/*"
group-by=
"@xlink:href"
>
<srv:connectPoint>
<CI_OnlineResource>
<linkage>
<URL>
<xsl:value-of
select=
"current-grouping-key()"
/>
</URL>
</linkage>
<protocol>
<gco:CharacterString>
WWW:LINK-1.0-http--link
</gco:CharacterString>
</protocol>
<description>
<gco:CharacterString>
<xsl:value-of
select=
"../../../@name"
/>
<xsl:text>
(
</xsl:text>
<xsl:for-each
select=
"current-group()"
>
<xsl:choose>
<xsl:when
test=
"name(.)='ows:Get'"
>
HTTP-GET
</xsl:when>
<xsl:when
test=
"name(.)='ows:Post'"
>
HTTP-POST
</xsl:when>
<xsl:otherwise>
WebServices
</xsl:otherwise>
</xsl:choose>
<xsl:if
test=
"position()!=last()"
>
<xsl:text>
,
</xsl:text>
</xsl:if>
</xsl:for-each>
<xsl:text>
)
</xsl:text>
</gco:CharacterString>
</description>
<function>
<CI_OnLineFunctionCode
codeList=
"./resources/codeList.xml#CI_OnLineFunctionCode"
codeListValue=
"information"
/>
</function>
</CI_OnlineResource>
</srv:connectPoint>
</xsl:for-each-group>
</srv:SV_OperationMetadata>
</srv:containsOperations>
</xsl:for-each>
</srv:SV_ServiceIdentification>
</identificationInfo>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<distributionInfo>
<MD_Distribution>
<distributionFormat>
<MD_Format>
<name
gco:nilReason=
"missing"
>
<gco:CharacterString/>
</name>
<version
gco:nilReason=
"missing"
>
<gco:CharacterString/>
</version>
</MD_Format>
</distributionFormat>
<transferOptions>
<MD_DigitalTransferOptions>
<onLine>
<CI_OnlineResource>
<linkage>
<URL>
<xsl:value-of
select=
"ows:OperationsMetadata/ows:Operation[@name='GetCapabilities']/ows:DCP/ows:HTTP/ows:Get/@xlink:href"
/>
</URL>
</linkage>
<protocol>
<gco:CharacterString>
WWW:LINK-1.0-http--link
</gco:CharacterString>
</protocol>
<description>
<gco:CharacterString>
<xsl:value-of
select=
"ows:OperationsMetadata/ows:Operation[@name='GetCapabilities']/ows:DCP/ows:HTTP/ows:Get/@xlink:href"
/>
</gco:CharacterString>
</description>
</CI_OnlineResource>
</onLine>
</MD_DigitalTransferOptions>
</transferOptions>
</MD_Distribution>
</distributionInfo>
<!--dqInfo-->
<!--mdConst -->
<!--mdMaint-->
</mcp:MD_Metadata>
</xsl:template>
<!-- ============================================================================= -->
<xsl:template
name=
'geographic-element'
>
<xsl:variable
name=
"bboxes"
>
<xsl:call-template
name=
"get-bboxes"
/>
</xsl:variable>
<geographicElement>
<xsl:choose>
<xsl:when
test=
"$bboxes/bbox[@unknown='true']"
>
<xsl:call-template
name=
"bounding-polygon"
/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template
name=
"bounding-box"
>
<xsl:with-param
name=
"bboxes"
select=
"$bboxes"
/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</geographicElement>
</xsl:template>
<!-- ============================================================================= -->
<xsl:template
name=
"get-bboxes"
>
<xsl:for-each
select=
"//sos:ObservationOffering/gml:boundedBy/gml:Envelope"
>
<xsl:variable
name=
"xmin"
select=
"number(substring-before(gml:lowerCorner, ' '))"
/>
<xsl:variable
name=
"ymin"
select=
"number(substring-after(gml:lowerCorner, ' '))"
/>
<xsl:variable
name=
"xmax"
select=
"number(substring-before(gml:upperCorner, ' '))"
/>
<xsl:variable
name=
"ymax"
select=
"number(substring-after(gml:upperCorner, ' '))"
/>
<bbox
xmlns=
""
>
<xsl:choose>
<!-- Common case - urn:ogc:def:crs:epsg::4326 envelope -->
<xsl:when
test=
"@srsName='urn:ogc:def:crs:epsg::4326'"
>
<southBL><xsl:value-of
select=
"$xmin"
/></southBL>
<westBL><xsl:value-of
select=
"$ymin"
/></westBL>
<northBL><xsl:value-of
select=
"$xmax"
/></northBL>
<eastBL><xsl:value-of
select=
"$ymax"
/></eastBL>
</xsl:when>
<!-- Reproject envelope to WGS84 if relevant geotools functions are available -->
<xsl:when
test=
"function-available('crs:decode') and function-available('renv:new') and function-available('renv:transform')"
>
<xsl:variable
name=
"srs"
select=
"crs:decode(@srsName)"
/>
<xsl:variable
name=
"env"
select=
"renv:new($xmin,$xmax, $ymin, $ymax, $srs)"
/>
<xsl:variable
name=
"envWGS84"
select=
"renv:transform($env,defcrs:WGS84(),true())"
/>
<southBL><xsl:value-of
select=
"renv:getMinY($envWGS84)"
/></southBL>
<westBL><xsl:value-of
select=
"renv:getMinX($envWGS84)"
/></westBL>
<northBL><xsl:value-of
select=
"renv:getMaxY($envWGS84)"
/></northBL>
<eastBL><xsl:value-of
select=
"renv:getMaxX($envWGS84)"
/></eastBL>
</xsl:when>
<!-- Can't determine WGS84 bounding box -->
<xsl:otherwise>
<xsl:attribute
name=
"unknown"
>
true
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</bbox>
</xsl:for-each>
</xsl:template>
<!-- ============================================================================= -->
<xsl:template
name=
"bounding-box"
>
<xsl:param
name=
"bboxes"
/>
<EX_GeographicBoundingBox>
<westBoundLongitude>
<gco:Decimal><xsl:copy-of
select=
"min($bboxes/bbox/westBL)"
/></gco:Decimal>
</westBoundLongitude>
<eastBoundLongitude>
<gco:Decimal><xsl:value-of
select=
"max($bboxes/bbox/eastBL)"
/></gco:Decimal>
</eastBoundLongitude>
<southBoundLatitude>
<gco:Decimal><xsl:value-of
select=
"min($bboxes/bbox/southBL)"
/></gco:Decimal>
</southBoundLatitude>
<northBoundLatitude>
<gco:Decimal><xsl:value-of
select=
"max($bboxes/bbox/northBL)"
/></gco:Decimal>
</northBoundLatitude>
</EX_GeographicBoundingBox>
</xsl:template>
<!-- ============================================================================= -->
<xsl:template
name=
"bounding-polygon"
>
<EX_BoundingPolygon>
<xsl:for-each
select=
"//sos:ObservationOffering/gml:boundedBy/gml:Envelope"
>
<xsl:variable
name=
"xmin"
select=
"number(substring-before(gml:lowerCorner, ' '))"
/>
<xsl:variable
name=
"ymin"
select=
"number(substring-after(gml:lowerCorner, ' '))"
/>
<xsl:variable
name=
"xmax"
select=
"number(substring-before(gml:upperCorner, ' '))"
/>
<xsl:variable
name=
"ymax"
select=
"number(substring-after(gml:upperCorner, ' '))"
/>
<polygon>
<gml:Polygon
gml:id=
"{generate-id()}"
srsName=
"{@srsName}"
>
<gml:exterior>
<gml:LinearRing>
<gml:coordinates><xsl:value-of
select=
"$ymin"
/>
,
<xsl:value-of
select=
"$xmax"
/>
,
<xsl:value-of
select=
"$ymax"
/>
,
<xsl:value-of
select=
"$xmax"
/>
,
<xsl:value-of
select=
"$ymax"
/>
,
<xsl:value-of
select=
"$xmin"
/>
,
<xsl:value-of
select=
"$ymin"
/>
,
<xsl:value-of
select=
"$xmin"
/>
,
<xsl:value-of
select=
"$ymin"
/>
,
<xsl:value-of
select=
"$xmax"
/></gml:coordinates>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</polygon>
</xsl:for-each>
</EX_BoundingPolygon>
</xsl:template>