geopython / pycsw

pycsw is an OGC CSW server implementation written in Python. pycsw fully implements the OpenGIS Catalogue Service Implementation Specification [Catalogue Service for the Web]. Initial development started in 2010 (more formally announced in 2011). The project is certified OGC Compliant, and is an OGC Reference Implementation. pycsw allows for the publishing and discovery of geospatial metadata via numerous APIs (CSW 2/CSW 3, OpenSearch, OAI-PMH, SRU). Existing repositories of geospatial metadata can also be exposed, providing a standards-based metadata and catalogue component of spatial data infrastructures. pycsw is Open Source, released under an MIT license, and runs on all major platforms (Windows, Linux, Mac OS X). Please read the docs at https://pycsw.org/docs for more information.
https://pycsw.org
MIT License
207 stars 155 forks source link

Use of Existing PostgreSQL database repository #846

Closed mattenp closed 1 year ago

mattenp commented 1 year ago

Description

Hi,

pycsw is very cool and we want to use it for our existing metadata. We have a PostgreSQL database in which the metadata records are in XML (gmd:MD_Metadata). We would like to use these in pycsw. As far as I know the data type xml is not supported in pycsw. But we can also use the datatype text. I think the mapping is not complete or wrong. Could you help me in configuring the mapping please?

Environment

Steps to Reproduce

Create Database with one dataset:

--drop table metadata.xml_test;

create table metadata.xml_test (

    id uuid Primary Key,
    data_iso text
);
insert into metadata.xml_test(id, data_iso)
values ('3d84970f-99dc-4f63-b631-08ff838f8808',
      '<?xml version="1.0" encoding="UTF-8"?>
<gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd"
                 xmlns:gml="http://www.opengis.net/gml/3.2"
                 xmlns:srv="http://www.isotc211.org/2005/srv"
                 xmlns:gco="http://www.isotc211.org/2005/gco"
                 xmlns:xlink="http://www.w3.org/1999/xlink"
                 xmlns:gmx="http://www.isotc211.org/2005/gmx"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xmlns:gts="http://www.isotc211.org/2005/gts"
                 xsi:schemaLocation="http://www.isotc211.org/2005/gmd http://schemas.opengis.net/iso/19139/20070417/gmd/gmd.xsd http://www.isotc211.org/2005/gmx http://schemas.opengis.net/iso/19139/20070417/gmx/gmx.xsd http://www.isotc211.org/2005/srv http://schemas.opengis.net/iso/19139/20070417/srv/1.0/srv.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd">
  <gmd:fileIdentifier>
      <gco:CharacterString>2b879763-5ddf-48fc-ac98-934d9edce8d9</gco:CharacterString>
  </gmd:fileIdentifier>
  <gmd:language>
      <gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/" codeListValue="ger"/>
  </gmd:language>
  <gmd:characterSet>
      <gmd:MD_CharacterSetCode codeListValue="utf8"
                               codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_CharacterSetCode"/>
  </gmd:characterSet>
  <gmd:parentIdentifier>
      <gco:CharacterString>d2a4a88b-5d8f-447f-811e-99f691c4393f</gco:CharacterString>
  </gmd:parentIdentifier>
  <gmd:hierarchyLevel>
      <gmd:MD_ScopeCode codeListValue="service"
                        codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_ScopeCode"/>
  </gmd:hierarchyLevel>
  <gmd:hierarchyLevelName>
      <gco:CharacterString>Beobachtungen</gco:CharacterString>
  </gmd:hierarchyLevelName>
  <gmd:hierarchyLevelName>
      <gco:CharacterString>Beobachtungen</gco:CharacterString>
  </gmd:hierarchyLevelName>
  <gmd:contact>
      <gmd:CI_ResponsibleParty>
         <gmd:individualName>
            <gco:CharacterString>Johannes Melles</gco:CharacterString>
         </gmd:individualName>
         <gmd:organisationName xsi:type="gmd:PT_FreeText_PropertyType">
            <gco:CharacterString>Bundesamt für Seeschifffahrt und Hydrographie (BSH)</gco:CharacterString>
            <gmd:PT_FreeText>
               <gmd:textGroup>
                  <gmd:LocalisedCharacterString locale="#GE">Bundesamt für Seeschifffahrt und Hydrographie (BSH)</gmd:LocalisedCharacterString>
               </gmd:textGroup>
               <gmd:textGroup>
                  <gmd:LocalisedCharacterString locale="#EN">The Federal Maritime and Hydrographic Agency (BSH)</gmd:LocalisedCharacterString>
               </gmd:textGroup>
            </gmd:PT_FreeText>
         </gmd:organisationName>
         <gmd:positionName>
            <gco:CharacterString>M42</gco:CharacterString>
         </gmd:positionName>
         <gmd:contactInfo>
            <gmd:CI_Contact>
               <gmd:phone>
                  <gmd:CI_Telephone>
                     <gmd:voice>
                        <gco:CharacterString>+49 40 3190-3420</gco:CharacterString>
                     </gmd:voice>
                     <gmd:facsimile>
                        <gco:CharacterString>+49 40 3190-5000</gco:CharacterString>
                     </gmd:facsimile>
                  </gmd:CI_Telephone>
               </gmd:phone>
               <gmd:address>
                  <gmd:CI_Address>
                     <gmd:deliveryPoint>
                        <gco:CharacterString>Bernhard-Nocht-Str. 78</gco:CharacterString>
                     </gmd:deliveryPoint>
                     <gmd:city>
                        <gco:CharacterString>Hamburg</gco:CharacterString>
                     </gmd:city>
                     <gmd:administrativeArea>
                        <gco:CharacterString>Hamburg</gco:CharacterString>
                     </gmd:administrativeArea>
                     <gmd:postalCode>
                        <gco:CharacterString>20359</gco:CharacterString>
                     </gmd:postalCode>
                     <gmd:country xsi:type="gmd:PT_FreeText_PropertyType">
                        <gco:CharacterString>Deutschland</gco:CharacterString>
                        <gmd:PT_FreeText>
                           <gmd:textGroup>
                              <gmd:LocalisedCharacterString locale="#GE">Deutschland</gmd:LocalisedCharacterString>
                           </gmd:textGroup>
                           <gmd:textGroup>
                              <gmd:LocalisedCharacterString locale="#EN">Germany</gmd:LocalisedCharacterString>
                           </gmd:textGroup>
                        </gmd:PT_FreeText>
                     </gmd:country>
                     <gmd:electronicMailAddress>
                        <gco:CharacterString>Johannes.Melles@bsh.de</gco:CharacterString>
                     </gmd:electronicMailAddress>
                  </gmd:CI_Address>
               </gmd:address>
            </gmd:CI_Contact>
         </gmd:contactInfo>
         <gmd:role>
            <gmd:CI_RoleCode codeListValue="pointOfContact"
                             codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_RoleCode"/>
         </gmd:role>
      </gmd:CI_ResponsibleParty>
  </gmd:contact>
  <gmd:contact>
      <gmd:CI_ResponsibleParty>
         <gmd:individualName>
            <gco:CharacterString>Johannes Melles</gco:CharacterString>
         </gmd:individualName>
         <gmd:organisationName xsi:type="gmd:PT_FreeText_PropertyType">
            <gco:CharacterString>Bundesamt für Seeschifffahrt und Hydrographie (BSH)</gco:CharacterString>
            <gmd:PT_FreeText>
               <gmd:textGroup>
                  <gmd:LocalisedCharacterString locale="#GE">Bundesamt für Seeschifffahrt und Hydrographie (BSH)</gmd:LocalisedCharacterString>
               </gmd:textGroup>
               <gmd:textGroup>
                  <gmd:LocalisedCharacterString locale="#EN">The Federal Maritime and Hydrographic Agency (BSH)</gmd:LocalisedCharacterString>
               </gmd:textGroup>
            </gmd:PT_FreeText>
         </gmd:organisationName>
         <gmd:positionName>
            <gco:CharacterString>M42</gco:CharacterString>
         </gmd:positionName>
         <gmd:contactInfo>
            <gmd:CI_Contact>
               <gmd:phone>
                  <gmd:CI_Telephone>
                     <gmd:voice>
                        <gco:CharacterString>+49 40 3190-3420</gco:CharacterString>
                     </gmd:voice>
                     <gmd:facsimile>
                        <gco:CharacterString>+49 40 3190-5000</gco:CharacterString>
                     </gmd:facsimile>
                  </gmd:CI_Telephone>
               </gmd:phone>
               <gmd:address>
                  <gmd:CI_Address>
                     <gmd:deliveryPoint>
                        <gco:CharacterString>Bernhard-Nocht-Str. 78</gco:CharacterString>
                     </gmd:deliveryPoint>
                     <gmd:city>
                        <gco:CharacterString>Hamburg</gco:CharacterString>
                     </gmd:city>
                     <gmd:administrativeArea>
                        <gco:CharacterString>Hamburg</gco:CharacterString>
                     </gmd:administrativeArea>
                     <gmd:postalCode>
                        <gco:CharacterString>20359</gco:CharacterString>
                     </gmd:postalCode>
                     <gmd:country xsi:type="gmd:PT_FreeText_PropertyType">
                        <gco:CharacterString>Deutschland</gco:CharacterString>
                        <gmd:PT_FreeText>
                           <gmd:textGroup>
                              <gmd:LocalisedCharacterString locale="#GE">Deutschland</gmd:LocalisedCharacterString>
                           </gmd:textGroup>
                           <gmd:textGroup>
                              <gmd:LocalisedCharacterString locale="#EN">Germany</gmd:LocalisedCharacterString>
                           </gmd:textGroup>
                        </gmd:PT_FreeText>
                     </gmd:country>
                     <gmd:electronicMailAddress>
                        <gco:CharacterString>Johannes.Melles@bsh.de</gco:CharacterString>
                     </gmd:electronicMailAddress>
                  </gmd:CI_Address>
               </gmd:address>
            </gmd:CI_Contact>
         </gmd:contactInfo>
         <gmd:role>
            <gmd:CI_RoleCode codeListValue="pointOfContact"
                             codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_RoleCode"/>
         </gmd:role>
      </gmd:CI_ResponsibleParty>
  </gmd:contact>
  <gmd:dateStamp>
      <gco:DateTime>2023-02-07T20:46:19.981230</gco:DateTime>
  </gmd:dateStamp>
  <gmd:metadataStandardName>
      <gco:CharacterString>ISO 19119:2003/19139</gco:CharacterString>
  </gmd:metadataStandardName>
  <gmd:metadataStandardVersion>
      <gco:CharacterString>1.0</gco:CharacterString>
  </gmd:metadataStandardVersion>
  <gmd:locale>
      <gmd:PT_Locale id="EN">
         <gmd:languageCode>
            <gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/" codeListValue="eng"/>
         </gmd:languageCode>
         <gmd:characterEncoding>
            <gmd:MD_CharacterSetCode codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_CharacterSetCode"
                                     codeListValue="utf8"/>
         </gmd:characterEncoding>
      </gmd:PT_Locale>
  </gmd:locale>
  <gmd:locale>
      <gmd:PT_Locale id="GE">
         <gmd:languageCode>
            <gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/" codeListValue="ger"/>
         </gmd:languageCode>
         <gmd:characterEncoding>
            <gmd:MD_CharacterSetCode codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_CharacterSetCode"
                                     codeListValue="utf8"/>
         </gmd:characterEncoding>
      </gmd:PT_Locale>
  </gmd:locale>
  <gmd:referenceSystemInfo>
      <gmd:MD_ReferenceSystem>
         <gmd:referenceSystemIdentifier>
            <gmd:RS_Identifier>
               <gmd:code>
                  <gmx:Anchor xlink:href="http://www.opengis.net/def/crs/EPSG/0/4326">EPSG:4326</gmx:Anchor>
               </gmd:code>
            </gmd:RS_Identifier>
         </gmd:referenceSystemIdentifier>
      </gmd:MD_ReferenceSystem>
  </gmd:referenceSystemInfo>
  <gmd:identificationInfo>
      <srv:SV_ServiceIdentification>
         <gmd:citation>
            <gmd:CI_Citation>
               <gmd:title xsi:type="gmd:PT_FreeText_PropertyType">
                  <gco:CharacterString>Schiffsdichte 2015 - WMS</gco:CharacterString>
                  <gmd:PT_FreeText>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#EN">Vessel Density 2015 - WMS</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#GE">Schiffsdichte 2015 - WMS</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                  </gmd:PT_FreeText>
               </gmd:title>
               <gmd:alternateTitle>
                  <gco:CharacterString>AIS_VD_2015_WMS</gco:CharacterString>
               </gmd:alternateTitle>
               <gmd:date>
                  <gmd:CI_Date>
                     <gmd:date>
                        <gco:Date>2019-01-01</gco:Date>
                     </gmd:date>
                     <gmd:dateType>
                        <gmd:CI_DateTypeCode codeListValue="publication"
                                             codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_DateTypeCode"/>
                     </gmd:dateType>
                  </gmd:CI_Date>
               </gmd:date>
               <gmd:date>
                  <gmd:CI_Date>
                     <gmd:date>
                        <gco:Date>2022-09-29</gco:Date>
                     </gmd:date>
                     <gmd:dateType>
                        <gmd:CI_DateTypeCode codeListValue="creation"
                                             codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_DateTypeCode"/>
                     </gmd:dateType>
                  </gmd:CI_Date>
               </gmd:date>
               <gmd:date>
                  <gmd:CI_Date>
                     <gmd:date>
                        <gco:Date>2019-09-17</gco:Date>
                     </gmd:date>
                     <gmd:dateType>
                        <gmd:CI_DateTypeCode codeListValue="revision"
                                             codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_DateTypeCode"/>
                     </gmd:dateType>
                  </gmd:CI_Date>
               </gmd:date>
               <gmd:date>
                  <gmd:CI_Date>
                     <gmd:date>
                        <gco:Date>2019-01-01</gco:Date>
                     </gmd:date>
                     <gmd:dateType>
                        <gmd:CI_DateTypeCode codeListValue="publication"
                                             codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_DateTypeCode"/>
                     </gmd:dateType>
                  </gmd:CI_Date>
               </gmd:date>
               <gmd:date>
                  <gmd:CI_Date>
                     <gmd:date>
                        <gco:Date>2022-09-29</gco:Date>
                     </gmd:date>
                     <gmd:dateType>
                        <gmd:CI_DateTypeCode codeListValue="creation"
                                             codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_DateTypeCode"/>
                     </gmd:dateType>
                  </gmd:CI_Date>
               </gmd:date>
               <gmd:date>
                  <gmd:CI_Date>
                     <gmd:date>
                        <gco:Date>2019-09-17</gco:Date>
                     </gmd:date>
                     <gmd:dateType>
                        <gmd:CI_DateTypeCode codeListValue="revision"
                                             codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_DateTypeCode"/>
                     </gmd:dateType>
                  </gmd:CI_Date>
               </gmd:date>
               <gmd:identifier>
                  <gmd:MD_Identifier>
                     <gmd:code>
                        <gco:CharacterString>https://gdidev.bsh.de/de/metadata/Schiffsdichte-2015-WMS.xml</gco:CharacterString>
                     </gmd:code>
                  </gmd:MD_Identifier>
               </gmd:identifier>
            </gmd:CI_Citation>
         </gmd:citation>
         <gmd:abstract xsi:type="gmd:PT_FreeText_PropertyType">
            <gco:CharacterString>Für die Berechnung der Daten "AIS Vessel Density" wurden die Daten des Schiffsidentifikationssystems (Universal Shipborne Automatic Identification System - AIS) hinsichtlich verschiedener Parameter und Schiffstypen unter stochastischen Gesichtspunkten ausgewertet. Die Daten werden einmal jährlich für das vergangene Jahr bei der European Maritime Safety Agency (EMSA) angefordert. Die Informationen werden u. a. für die Sicherung des Seeverkehrs gewonnen und vorgehalten sowie für die Herstellung der für die Navigation erzeugten Produkte des Bundesamtes für Seeschifffahrt und Hydrographie (BSH) genutzt. Die Daten "AIS Vessel Density" stellen die mittlere räumliche Dichteverteilung der Schiffe dar. Unter mittlerer räumlicher Schiffsdichte ist die momentane Anzahl der Schiffe zu verstehen, die in einem definierten Gebiet (Rasterzelle) zu einem beliebigen Zeitpunkt eines betrachteten Referenzzeitraums erwartet werden konnte. Bei der Zählung wird nach fünf Schiffstypen Fischereischiffe, Cargoschiffe, Tankschiffe, Passagierschiff und alle Schiffe unterschieden.
Weitere Informationen finden Sie unter:
https://gdidev.bsh.de/de/data/Schiffsdichte_Dokumentation_Schiffsdichte_DE.pdf
https://gdidev.bsh.de/de/data/Schiffsdichte_Dokumentation_Schiffsdichte_DE_TEST.pdf</gco:CharacterString>
            <gmd:PT_FreeText>
               <gmd:textGroup>
                  <gmd:LocalisedCharacterString locale="#EN">For the calculation of the data "AIS Vessel Density", the data of the Universal Shipborne Automatic Identification System (AIS) were evaluated with regard to various parameters and ship types under stochastic aspects. The data are requested once a year for the past year from the European Maritime Safety Agency (EMSA). Among others, the information is collected and stored for the purpose of securing maritime traffic and is used for the manufacture of products produced for navigation by the Federal Maritime and Hydrographic Agency (BSH). The data "AIS Vessel Density" represent the mean spatial density distribution of the ships. The mean spatial ship density is the current number of ships that could be expected in a defined area (grid cell) at any time during a reference period under consideration. The counting distinguishes between five types of vessels: fishing vessels, cargo vessels, tankers, passenger vessels and all vessels.
For more information, please visit:
https://gdidev.bsh.de/en/data/Vessel-Density_Dokumentation_Schiffsdichte_DE.pdf
https://gdidev.bsh.de/en/data/Vessel-Density_Dokumentation_Schiffsdichte_DE_TEST.pdf</gmd:LocalisedCharacterString>
               </gmd:textGroup>
               <gmd:textGroup>
                  <gmd:LocalisedCharacterString locale="#GE">Für die Berechnung der Daten "AIS Vessel Density" wurden die Daten des Schiffsidentifikationssystems (Universal Shipborne Automatic Identification System - AIS) hinsichtlich verschiedener Parameter und Schiffstypen unter stochastischen Gesichtspunkten ausgewertet. Die Daten werden einmal jährlich für das vergangene Jahr bei der European Maritime Safety Agency (EMSA) angefordert. Die Informationen werden u. a. für die Sicherung des Seeverkehrs gewonnen und vorgehalten sowie für die Herstellung der für die Navigation erzeugten Produkte des Bundesamtes für Seeschifffahrt und Hydrographie (BSH) genutzt. Die Daten "AIS Vessel Density" stellen die mittlere räumliche Dichteverteilung der Schiffe dar. Unter mittlerer räumlicher Schiffsdichte ist die momentane Anzahl der Schiffe zu verstehen, die in einem definierten Gebiet (Rasterzelle) zu einem beliebigen Zeitpunkt eines betrachteten Referenzzeitraums erwartet werden konnte. Bei der Zählung wird nach fünf Schiffstypen Fischereischiffe, Cargoschiffe, Tankschiffe, Passagierschiff und alle Schiffe unterschieden.
Weitere Informationen finden Sie unter:
https://gdidev.bsh.de/de/data/Schiffsdichte_Dokumentation_Schiffsdichte_DE.pdf
https://gdidev.bsh.de/de/data/Schiffsdichte_Dokumentation_Schiffsdichte_DE_TEST.pdf</gmd:LocalisedCharacterString>
               </gmd:textGroup>
            </gmd:PT_FreeText>
         </gmd:abstract>
         <gmd:purpose>
            <gco:CharacterString/>
         </gmd:purpose>
         <gmd:pointOfContact>
            <gmd:CI_ResponsibleParty>
               <gmd:individualName>
                  <gco:CharacterString>Johannes Melles</gco:CharacterString>
               </gmd:individualName>
               <gmd:organisationName xsi:type="gmd:PT_FreeText_PropertyType">
                  <gco:CharacterString>Bundesamt für Seeschifffahrt und Hydrographie (BSH)</gco:CharacterString>
                  <gmd:PT_FreeText>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#GE">Bundesamt für Seeschifffahrt und Hydrographie (BSH)</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#EN">The Federal Maritime and Hydrographic Agency (BSH)</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                  </gmd:PT_FreeText>
               </gmd:organisationName>
               <gmd:positionName>
                  <gco:CharacterString>M42</gco:CharacterString>
               </gmd:positionName>
               <gmd:contactInfo>
                  <gmd:CI_Contact>
                     <gmd:phone>
                        <gmd:CI_Telephone>
                           <gmd:voice>
                              <gco:CharacterString>+49 40 3190-3420</gco:CharacterString>
                           </gmd:voice>
                           <gmd:facsimile>
                              <gco:CharacterString>+49 40 3190-5000</gco:CharacterString>
                           </gmd:facsimile>
                        </gmd:CI_Telephone>
                     </gmd:phone>
                     <gmd:address>
                        <gmd:CI_Address>
                           <gmd:deliveryPoint>
                              <gco:CharacterString>Bernhard-Nocht-Str. 78</gco:CharacterString>
                           </gmd:deliveryPoint>
                           <gmd:city>
                              <gco:CharacterString>Hamburg</gco:CharacterString>
                           </gmd:city>
                           <gmd:administrativeArea>
                              <gco:CharacterString>Hamburg</gco:CharacterString>
                           </gmd:administrativeArea>
                           <gmd:postalCode>
                              <gco:CharacterString>20359</gco:CharacterString>
                           </gmd:postalCode>
                           <gmd:country xsi:type="gmd:PT_FreeText_PropertyType">
                              <gco:CharacterString>Deutschland</gco:CharacterString>
                              <gmd:PT_FreeText>
                                 <gmd:textGroup>
                                    <gmd:LocalisedCharacterString locale="#GE">Deutschland</gmd:LocalisedCharacterString>
                                 </gmd:textGroup>
                                 <gmd:textGroup>
                                    <gmd:LocalisedCharacterString locale="#EN">Germany</gmd:LocalisedCharacterString>
                                 </gmd:textGroup>
                              </gmd:PT_FreeText>
                           </gmd:country>
                           <gmd:electronicMailAddress>
                              <gco:CharacterString>Johannes.Melles@bsh.de</gco:CharacterString>
                           </gmd:electronicMailAddress>
                        </gmd:CI_Address>
                     </gmd:address>
                  </gmd:CI_Contact>
               </gmd:contactInfo>
               <gmd:role>
                  <gmd:CI_RoleCode codeListValue="pointOfContact"
                                   codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_RoleCode"/>
               </gmd:role>
            </gmd:CI_ResponsibleParty>
         </gmd:pointOfContact>
         <gmd:pointOfContact>
            <gmd:CI_ResponsibleParty>
               <gmd:individualName>
                  <gco:CharacterString>Johannes Melles</gco:CharacterString>
               </gmd:individualName>
               <gmd:organisationName xsi:type="gmd:PT_FreeText_PropertyType">
                  <gco:CharacterString>Bundesamt für Seeschifffahrt und Hydrographie (BSH)</gco:CharacterString>
                  <gmd:PT_FreeText>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#GE">Bundesamt für Seeschifffahrt und Hydrographie (BSH)</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#EN">The Federal Maritime and Hydrographic Agency (BSH)</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                  </gmd:PT_FreeText>
               </gmd:organisationName>
               <gmd:positionName>
                  <gco:CharacterString>M42</gco:CharacterString>
               </gmd:positionName>
               <gmd:contactInfo>
                  <gmd:CI_Contact>
                     <gmd:phone>
                        <gmd:CI_Telephone>
                           <gmd:voice>
                              <gco:CharacterString>+49 40 3190-3420</gco:CharacterString>
                           </gmd:voice>
                           <gmd:facsimile>
                              <gco:CharacterString>+49 40 3190-5000</gco:CharacterString>
                           </gmd:facsimile>
                        </gmd:CI_Telephone>
                     </gmd:phone>
                     <gmd:address>
                        <gmd:CI_Address>
                           <gmd:deliveryPoint>
                              <gco:CharacterString>Bernhard-Nocht-Str. 78</gco:CharacterString>
                           </gmd:deliveryPoint>
                           <gmd:city>
                              <gco:CharacterString>Hamburg</gco:CharacterString>
                           </gmd:city>
                           <gmd:administrativeArea>
                              <gco:CharacterString>Hamburg</gco:CharacterString>
                           </gmd:administrativeArea>
                           <gmd:postalCode>
                              <gco:CharacterString>20359</gco:CharacterString>
                           </gmd:postalCode>
                           <gmd:country xsi:type="gmd:PT_FreeText_PropertyType">
                              <gco:CharacterString>Deutschland</gco:CharacterString>
                              <gmd:PT_FreeText>
                                 <gmd:textGroup>
                                    <gmd:LocalisedCharacterString locale="#GE">Deutschland</gmd:LocalisedCharacterString>
                                 </gmd:textGroup>
                                 <gmd:textGroup>
                                    <gmd:LocalisedCharacterString locale="#EN">Germany</gmd:LocalisedCharacterString>
                                 </gmd:textGroup>
                              </gmd:PT_FreeText>
                           </gmd:country>
                           <gmd:electronicMailAddress>
                              <gco:CharacterString>Johannes.Melles@bsh.de</gco:CharacterString>
                           </gmd:electronicMailAddress>
                        </gmd:CI_Address>
                     </gmd:address>
                  </gmd:CI_Contact>
               </gmd:contactInfo>
               <gmd:role>
                  <gmd:CI_RoleCode codeListValue="pointOfContact"
                                   codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_RoleCode"/>
               </gmd:role>
            </gmd:CI_ResponsibleParty>
         </gmd:pointOfContact>
         <gmd:graphicOverview>
            <gmd:MD_BrowseGraphic>
               <gmd:fileName>
                  <gco:CharacterString>https://gdidev.bsh.de/de/preview/Schiffsdichte-2015-WMS.png</gco:CharacterString>
               </gmd:fileName>
               <gmd:fileDescription>
                  <gco:CharacterString/>
               </gmd:fileDescription>
            </gmd:MD_BrowseGraphic>
         </gmd:graphicOverview>
         <gmd:descriptiveKeywords>
            <gmd:MD_Keywords>
               <gmd:keyword>
                  <gco:CharacterString>National</gco:CharacterString>
               </gmd:keyword>
               <gmd:thesaurusName>
                  <gmd:CI_Citation>
                     <gmd:title>
                        <gco:CharacterString>Spatial scope</gco:CharacterString>
                     </gmd:title>
                     <gmd:date>
                        <gmd:CI_Date>
                           <gmd:date>
                              <gco:Date>2019-05-22</gco:Date>
                           </gmd:date>
                           <gmd:dateType>
                              <gmd:CI_DateTypeCode codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_DateTypeCode"
                                                   codeListValue="publication"/>
                           </gmd:dateType>
                        </gmd:CI_Date>
                     </gmd:date>
                  </gmd:CI_Citation>
               </gmd:thesaurusName>
            </gmd:MD_Keywords>
         </gmd:descriptiveKeywords>
         <gmd:descriptiveKeywords>
            <gmd:MD_Keywords>
               <gmd:keyword xsi:type="gmd:PT_FreeText_PropertyType">
                  <gco:CharacterString>Bundesamt für Seeschifffahrt und Hydrographie</gco:CharacterString>
                  <gmd:PT_FreeText>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#EN">The Federal Maritime and Hydrographic Agency</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#GE">Bundesamt für Seeschifffahrt und Hydrographie</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                  </gmd:PT_FreeText>
               </gmd:keyword>
               <gmd:keyword xsi:type="gmd:PT_FreeText_PropertyType">
                  <gco:CharacterString>AIS</gco:CharacterString>
                  <gmd:PT_FreeText>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#EN">AIS</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#GE">AIS</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                  </gmd:PT_FreeText>
               </gmd:keyword>
               <gmd:keyword xsi:type="gmd:PT_FreeText_PropertyType">
                  <gco:CharacterString>EMSA</gco:CharacterString>
                  <gmd:PT_FreeText>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#EN">EMSA</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#GE">EMSA</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                  </gmd:PT_FreeText>
               </gmd:keyword>
               <gmd:keyword xsi:type="gmd:PT_FreeText_PropertyType">
                  <gco:CharacterString>Schiffsverkehr</gco:CharacterString>
                  <gmd:PT_FreeText>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#EN">vessel traffic</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#GE">Schiffsverkehr</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                  </gmd:PT_FreeText>
               </gmd:keyword>
               <gmd:keyword xsi:type="gmd:PT_FreeText_PropertyType">
                  <gco:CharacterString>BSH</gco:CharacterString>
                  <gmd:PT_FreeText>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#EN">BSH</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#GE">BSH</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                  </gmd:PT_FreeText>
               </gmd:keyword>
               <gmd:keyword xsi:type="gmd:PT_FreeText_PropertyType">
                  <gco:CharacterString>mcloud_category_waters</gco:CharacterString>
                  <gmd:PT_FreeText>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#EN">mcloud_category_waters</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#GE">mcloud_category_waters</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                  </gmd:PT_FreeText>
               </gmd:keyword>
               <gmd:keyword xsi:type="gmd:PT_FreeText_PropertyType">
                  <gco:CharacterString>AIS</gco:CharacterString>
                  <gmd:PT_FreeText>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#EN">AIS</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#GE">AIS</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                  </gmd:PT_FreeText>
               </gmd:keyword>
               <gmd:keyword xsi:type="gmd:PT_FreeText_PropertyType">
                  <gco:CharacterString>EMSA</gco:CharacterString>
                  <gmd:PT_FreeText>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#EN">EMSA</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#GE">EMSA</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                  </gmd:PT_FreeText>
               </gmd:keyword>
               <gmd:keyword xsi:type="gmd:PT_FreeText_PropertyType">
                  <gco:CharacterString>Schiffsverkehr</gco:CharacterString>
                  <gmd:PT_FreeText>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#EN">vessel traffic</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#GE">Schiffsverkehr</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                  </gmd:PT_FreeText>
               </gmd:keyword>
               <gmd:keyword xsi:type="gmd:PT_FreeText_PropertyType">
                  <gco:CharacterString>BSH</gco:CharacterString>
                  <gmd:PT_FreeText>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#EN">BSH</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#GE">BSH</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                  </gmd:PT_FreeText>
               </gmd:keyword>
               <gmd:keyword xsi:type="gmd:PT_FreeText_PropertyType">
                  <gco:CharacterString>Bundesamt für Seeschifffahrt und Hydrographie</gco:CharacterString>
                  <gmd:PT_FreeText>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#EN">The Federal Maritime and Hydrographic Agency</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#GE">Bundesamt für Seeschifffahrt und Hydrographie</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                  </gmd:PT_FreeText>
               </gmd:keyword>
               <gmd:keyword xsi:type="gmd:PT_FreeText_PropertyType">
                  <gco:CharacterString>mcloud_category_waters</gco:CharacterString>
                  <gmd:PT_FreeText>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#EN">mcloud_category_waters</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#GE">mcloud_category_waters</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                  </gmd:PT_FreeText>
               </gmd:keyword>
               <gmd:type>
                  <gmd:MD_KeywordTypeCode codeListValue="theme"
                                          codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_KeywordTypeCode"/>
               </gmd:type>
            </gmd:MD_Keywords>
         </gmd:descriptiveKeywords>
         <gmd:resourceConstraints>
            <gmd:MD_SecurityConstraints>
               <gmd:classification>
                  <gmd:MD_ClassificationCode codeListValue="unclassified"
                                             codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_ClassificationCode"/>
               </gmd:classification>
            </gmd:MD_SecurityConstraints>
         </gmd:resourceConstraints>
         <gmd:resourceConstraints>
            <gmd:MD_LegalConstraints>
               <gmd:useConstraints>
                  <gmd:MD_RestrictionCode codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_RestrictionCode"
                                          codeListValue="otherRestrictions"/>
               </gmd:useConstraints>
               <gmd:otherConstraints>
                  <gco:CharacterString>Dieser Datensatz kann gemäß der "Nutzungsbestimmungen für die Bereitstellung von Geodaten des Bundes" (http://www.gesetze-im-internet.de/geonutzv/GeoNutzV.pdf) genutzt werden.</gco:CharacterString>
               </gmd:otherConstraints>
               <gmd:otherConstraints>
                  <gco:CharacterString>{"id":" geoNutz/20130319","name":"Nutzungsbestimmungen für die Bereitstellung von Geodaten des Bundes","url":"http://www.gesetze-im-internet.de/geonutzv/GeoNutzV.pdf","quelle":"Quelle: © BSH 2020"}</gco:CharacterString>
               </gmd:otherConstraints>
            </gmd:MD_LegalConstraints>
         </gmd:resourceConstraints>
         <gmd:resourceConstraints>
            <gmd:MD_LegalConstraints>
               <gmd:accessConstraints>
                  <gmd:MD_RestrictionCode codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_RestrictionCode"
                                          codeListValue="otherRestrictions"/>
               </gmd:accessConstraints>
               <gmd:otherConstraints>
                  <gco:CharacterString>Es gelten keine Zugriffsbeschränkungen</gco:CharacterString>
               </gmd:otherConstraints>
            </gmd:MD_LegalConstraints>
         </gmd:resourceConstraints>
         <srv:serviceType>
            <gco:LocalName codeSpace="http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType">view</gco:LocalName>
         </srv:serviceType>
         <srv:serviceTypeVersion>
            <gco:CharacterString>OGC:WMS 1.3.0</gco:CharacterString>
         </srv:serviceTypeVersion>
         <srv:extent>
            <gmd:EX_Extent>
               <gmd:geographicElement>
                  <gmd:EX_GeographicBoundingBox>
                     <gmd:westBoundLongitude>
                        <gco:Decimal>3</gco:Decimal>
                     </gmd:westBoundLongitude>
                     <gmd:eastBoundLongitude>
                        <gco:Decimal>15</gco:Decimal>
                     </gmd:eastBoundLongitude>
                     <gmd:southBoundLatitude>
                        <gco:Decimal>53</gco:Decimal>
                     </gmd:southBoundLatitude>
                     <gmd:northBoundLatitude>
                        <gco:Decimal>60</gco:Decimal>
                     </gmd:northBoundLatitude>
                  </gmd:EX_GeographicBoundingBox>
               </gmd:geographicElement>
            </gmd:EX_Extent>
         </srv:extent>
         <srv:extent>
            <gmd:EX_Extent>
               <gmd:geographicElement>
                  <gmd:EX_GeographicDescription>
                     <gmd:geographicIdentifier>
                        <gmd:MD_Identifier>
                           <gmd:code>
                              <gco:CharacterString>000000000000</gco:CharacterString>
                           </gmd:code>
                        </gmd:MD_Identifier>
                     </gmd:geographicIdentifier>
                  </gmd:EX_GeographicDescription>
               </gmd:geographicElement>
            </gmd:EX_Extent>
         </srv:extent>
         <srv:coupledResource>
            <srv:SV_CoupledResource>
               <srv:operationName>
                  <gco:CharacterString/>
               </srv:operationName>
               <srv:identifier>
                  <gco:CharacterString>https://gdidev.bsh.de/de/metadata/Schiffsdichte-2015.xml</gco:CharacterString>
               </srv:identifier>
            </srv:SV_CoupledResource>
         </srv:coupledResource>
         <srv:couplingType>
            <srv:SV_CouplingType codeList="https://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#SV_CouplingType"
                                 codeListValue="tight"/>
         </srv:couplingType>
         <srv:containsOperations>
            <srv:SV_OperationMetadata>
               <srv:operationName>
                  <gco:CharacterString>GetCapabilities</gco:CharacterString>
               </srv:operationName>
               <srv:DCP>
                  <srv:DCPList codeList="https://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#DCPList"
                               codeListValue="WebServices"/>
               </srv:DCP>
               <srv:connectPoint>
                  <gmd:CI_OnlineResource>
                     <gmd:linkage>
                        <gmd:URL>https://gdidev.bsh.de/en/mapservice/Vessel-Density-2015-WMS?SERVICE=WMS&amp;REQUEST=GetCapabilities&amp;VERSION=1.3.0</gmd:URL>
                     </gmd:linkage>
                     <gmd:protocol>
                        <gco:CharacterString>OGC:WMS-1.3.0-http-get-capabilities</gco:CharacterString>
                     </gmd:protocol>
                  </gmd:CI_OnlineResource>
               </srv:connectPoint>
            </srv:SV_OperationMetadata>
         </srv:containsOperations>
         <srv:operatesOn uuidref="d2a4a88b-5d8f-447f-811e-99f691c4393f"
                         xlink:href="https://gdidev.bsh.de/de/metadata/Schiffsdichte-2015.xml"/>
      </srv:SV_ServiceIdentification>
  </gmd:identificationInfo>
  <gmd:distributionInfo>
      <gmd:MD_Distribution>
         <gmd:distributor>
            <gmd:MD_Distributor>
               <gmd:distributorContact>
                  <gmd:CI_ResponsibleParty>
                     <gmd:individualName>
                        <gco:CharacterString>Johannes Melles</gco:CharacterString>
                     </gmd:individualName>
                     <gmd:organisationName xsi:type="gmd:PT_FreeText_PropertyType">
                        <gco:CharacterString>Bundesamt für Seeschifffahrt und Hydrographie (BSH)</gco:CharacterString>
                        <gmd:PT_FreeText>
                           <gmd:textGroup>
                              <gmd:LocalisedCharacterString locale="#GE">Bundesamt für Seeschifffahrt und Hydrographie (BSH)</gmd:LocalisedCharacterString>
                           </gmd:textGroup>
                           <gmd:textGroup>
                              <gmd:LocalisedCharacterString locale="#EN">The Federal Maritime and Hydrographic Agency (BSH)</gmd:LocalisedCharacterString>
                           </gmd:textGroup>
                        </gmd:PT_FreeText>
                     </gmd:organisationName>
                     <gmd:positionName>
                        <gco:CharacterString>M42</gco:CharacterString>
                     </gmd:positionName>
                     <gmd:contactInfo>
                        <gmd:CI_Contact>
                           <gmd:phone>
                              <gmd:CI_Telephone>
                                 <gmd:voice>
                                    <gco:CharacterString>+49 40 3190-3420</gco:CharacterString>
                                 </gmd:voice>
                                 <gmd:facsimile>
                                    <gco:CharacterString>+49 40 3190-5000</gco:CharacterString>
                                 </gmd:facsimile>
                              </gmd:CI_Telephone>
                           </gmd:phone>
                           <gmd:address>
                              <gmd:CI_Address>
                                 <gmd:deliveryPoint>
                                    <gco:CharacterString>Bernhard-Nocht-Str. 78</gco:CharacterString>
                                 </gmd:deliveryPoint>
                                 <gmd:city>
                                    <gco:CharacterString>Hamburg</gco:CharacterString>
                                 </gmd:city>
                                 <gmd:administrativeArea>
                                    <gco:CharacterString>Hamburg</gco:CharacterString>
                                 </gmd:administrativeArea>
                                 <gmd:postalCode>
                                    <gco:CharacterString>20359</gco:CharacterString>
                                 </gmd:postalCode>
                                 <gmd:country xsi:type="gmd:PT_FreeText_PropertyType">
                                    <gco:CharacterString>Deutschland</gco:CharacterString>
                                    <gmd:PT_FreeText>
                                       <gmd:textGroup>
                                          <gmd:LocalisedCharacterString locale="#GE">Deutschland</gmd:LocalisedCharacterString>
                                       </gmd:textGroup>
                                       <gmd:textGroup>
                                          <gmd:LocalisedCharacterString locale="#EN">Germany</gmd:LocalisedCharacterString>
                                       </gmd:textGroup>
                                    </gmd:PT_FreeText>
                                 </gmd:country>
                                 <gmd:electronicMailAddress>
                                    <gco:CharacterString>Johannes.Melles@bsh.de</gco:CharacterString>
                                 </gmd:electronicMailAddress>
                              </gmd:CI_Address>
                           </gmd:address>
                        </gmd:CI_Contact>
                     </gmd:contactInfo>
                     <gmd:role>
                        <gmd:CI_RoleCode codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_RoleCode"
                                         codeListValue="pointOfContact"/>
                     </gmd:role>
                  </gmd:CI_ResponsibleParty>
               </gmd:distributorContact>
            </gmd:MD_Distributor>
         </gmd:distributor>
         <gmd:distributor>
            <gmd:MD_Distributor>
               <gmd:distributorContact>
                  <gmd:CI_ResponsibleParty>
                     <gmd:individualName>
                        <gco:CharacterString>Johannes Melles</gco:CharacterString>
                     </gmd:individualName>
                     <gmd:organisationName xsi:type="gmd:PT_FreeText_PropertyType">
                        <gco:CharacterString>Bundesamt für Seeschifffahrt und Hydrographie (BSH)</gco:CharacterString>
                        <gmd:PT_FreeText>
                           <gmd:textGroup>
                              <gmd:LocalisedCharacterString locale="#GE">Bundesamt für Seeschifffahrt und Hydrographie (BSH)</gmd:LocalisedCharacterString>
                           </gmd:textGroup>
                           <gmd:textGroup>
                              <gmd:LocalisedCharacterString locale="#EN">The Federal Maritime and Hydrographic Agency (BSH)</gmd:LocalisedCharacterString>
                           </gmd:textGroup>
                        </gmd:PT_FreeText>
                     </gmd:organisationName>
                     <gmd:positionName>
                        <gco:CharacterString>M42</gco:CharacterString>
                     </gmd:positionName>
                     <gmd:contactInfo>
                        <gmd:CI_Contact>
                           <gmd:phone>
                              <gmd:CI_Telephone>
                                 <gmd:voice>
                                    <gco:CharacterString>+49 40 3190-3420</gco:CharacterString>
                                 </gmd:voice>
                                 <gmd:facsimile>
                                    <gco:CharacterString>+49 40 3190-5000</gco:CharacterString>
                                 </gmd:facsimile>
                              </gmd:CI_Telephone>
                           </gmd:phone>
                           <gmd:address>
                              <gmd:CI_Address>
                                 <gmd:deliveryPoint>
                                    <gco:CharacterString>Bernhard-Nocht-Str. 78</gco:CharacterString>
                                 </gmd:deliveryPoint>
                                 <gmd:city>
                                    <gco:CharacterString>Hamburg</gco:CharacterString>
                                 </gmd:city>
                                 <gmd:administrativeArea>
                                    <gco:CharacterString>Hamburg</gco:CharacterString>
                                 </gmd:administrativeArea>
                                 <gmd:postalCode>
                                    <gco:CharacterString>20359</gco:CharacterString>
                                 </gmd:postalCode>
                                 <gmd:country xsi:type="gmd:PT_FreeText_PropertyType">
                                    <gco:CharacterString>Deutschland</gco:CharacterString>
                                    <gmd:PT_FreeText>
                                       <gmd:textGroup>
                                          <gmd:LocalisedCharacterString locale="#GE">Deutschland</gmd:LocalisedCharacterString>
                                       </gmd:textGroup>
                                       <gmd:textGroup>
                                          <gmd:LocalisedCharacterString locale="#EN">Germany</gmd:LocalisedCharacterString>
                                       </gmd:textGroup>
                                    </gmd:PT_FreeText>
                                 </gmd:country>
                                 <gmd:electronicMailAddress>
                                    <gco:CharacterString>Johannes.Melles@bsh.de</gco:CharacterString>
                                 </gmd:electronicMailAddress>
                              </gmd:CI_Address>
                           </gmd:address>
                        </gmd:CI_Contact>
                     </gmd:contactInfo>
                     <gmd:role>
                        <gmd:CI_RoleCode codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_RoleCode"
                                         codeListValue="pointOfContact"/>
                     </gmd:role>
                  </gmd:CI_ResponsibleParty>
               </gmd:distributorContact>
            </gmd:MD_Distributor>
         </gmd:distributor>
         <gmd:transferOptions>
            <gmd:MD_DigitalTransferOptions>
               <gmd:onLine>
                  <gmd:CI_OnlineResource>
                     <gmd:linkage>
                        <gmd:URL>https://gdidev.bsh.de/en/mapservice/Vessel-Density-2015-WMS?SERVICE=WMS&amp;REQUEST=GetCapabilities&amp;VERSION=1.3.0</gmd:URL>
                     </gmd:linkage>
                     <gmd:protocol>
                        <gco:CharacterString>OGC:WMS-1.3.0-http-get-capabilities</gco:CharacterString>
                     </gmd:protocol>
                     <gmd:name>
                        <gco:CharacterString>GetCapabilities request for the Vessel Density 2015 - WMS service</gco:CharacterString>
                     </gmd:name>
                     <gmd:description>
                        <gmx:Anchor xlink:href="http://inspire.ec.europa.eu/metadata-codelist/OnLineDescriptionCode/accessPoint">accessPoint</gmx:Anchor>
                     </gmd:description>
                     <gmd:function>
                        <gmd:CI_OnLineFunctionCode codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_OnLineFunctionCode"
                                                   codeListValue="information"/>
                     </gmd:function>
                  </gmd:CI_OnlineResource>
               </gmd:onLine>
            </gmd:MD_DigitalTransferOptions>
         </gmd:transferOptions>
      </gmd:MD_Distribution>
  </gmd:distributionInfo>
  <gmd:dataQualityInfo>
      <gmd:DQ_DataQuality>
         <gmd:scope>
            <gmd:DQ_Scope>
               <gmd:level>
                  <gmd:MD_ScopeCode codeListValue="service"
                                    codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_ScopeCode"/>
               </gmd:level>
               <gmd:levelDescription>
                  <gmd:MD_ScopeDescription>
                     <gmd:other>
                        <gco:CharacterString>service</gco:CharacterString>
                     </gmd:other>
                  </gmd:MD_ScopeDescription>
               </gmd:levelDescription>
            </gmd:DQ_Scope>
         </gmd:scope>
         <gmd:lineage>
            <gmd:LI_Lineage>
               <gmd:statement xsi:type="gmd:PT_FreeText_PropertyType">
                  <gco:CharacterString>Bundesamt für Seeschifffahrt und Hydrographie (BSH)</gco:CharacterString>
                  <gmd:PT_FreeText>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#GE">Bundesamt für Seeschifffahrt und Hydrographie (BSH)</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                     <gmd:textGroup>
                        <gmd:LocalisedCharacterString locale="#EN">The Federal Maritime and Hydrographic Agency (BSH)</gmd:LocalisedCharacterString>
                     </gmd:textGroup>
                  </gmd:PT_FreeText>
               </gmd:statement>
            </gmd:LI_Lineage>
         </gmd:lineage>
      </gmd:DQ_DataQuality>
  </gmd:dataQualityInfo>
</gmd:MD_Metadata>'

       );

COMMIT;

Configure mapping in etc/mappings.py

MD_CORE_MODEL = { 'typename': 'http://www.isotc211.org/2005/gmd', 'outputschema': 'http://pycsw.org/metadata', 'mappings': { 'pycsw:Identifier': 'id', 'pycsw:Typename': 'gmd:MD_Metadata', 'pycsw:Schema': 'http://www.isotc211.org/2005/gmd', 'pycsw:MdSource': 'data_iso', 'pycsw:InsertDate': '2023-02-22', 'pycsw:XML':'data_iso', 'pycsw:AnyText': 'data_iso', 'pycsw:Language': 'language', 'pycsw:Title': 'title', 'pycsw:Abstract': 'abstract', 'pycsw:Keywords': 'keywords', 'pycsw:KeywordType': 'keywordstype', 'pycsw:Format': 'format', 'pycsw:Source': 'source', 'pycsw:Date': 'date', 'pycsw:Modified': 'date_modified', 'pycsw:Type': 'type', 'pycsw:BoundingBox': 'id', 'pycsw:CRS': 'crs', 'pycsw:AlternateTitle': 'title_alternate', 'pycsw:RevisionDate': 'date_revision', 'pycsw:CreationDate': 'date_creation', 'pycsw:PublicationDate': 'date_publication', 'pycsw:OrganizationName': 'organization', 'pycsw:SecurityConstraints': 'securityconstraints', 'pycsw:ParentIdentifier': 'parentidentifier', 'pycsw:TopicCategory': 'topicategory', 'pycsw:ResourceLanguage': 'resourcelanguage', 'pycsw:GeographicDescriptionCode': 'geodescode', 'pycsw:Denominator': 'denominator', 'pycsw:DistanceValue': 'distancevalue', 'pycsw:DistanceUOM': 'distanceuom', 'pycsw:TempExtent_begin': 'time_begin', 'pycsw:TempExtent_end': 'time_end', 'pycsw:ServiceType': 'servicetype', 'pycsw:ServiceTypeVersion': 'servicetypeversion', 'pycsw:Operation': 'operation', 'pycsw:CouplingType': 'couplingtype', 'pycsw:OperatesOn': 'operateson', 'pycsw:OperatesOnIdentifier': 'operatesonidentifier', 'pycsw:OperatesOnName': 'operatesoname', 'pycsw:Degree': 'degree', 'pycsw:AccessConstraints': 'accessconstraints', 'pycsw:OtherConstraints': 'otherconstraints', 'pycsw:Classification': 'classification', 'pycsw:ConditionApplyingToAccessAndUse': 'conditionapplyingtoaccessanduse', 'pycsw:Lineage': 'lineage', 'pycsw:ResponsiblePartyRole': 'responsiblepartyrole', 'pycsw:SpecificationTitle': 'specificationtitle', 'pycsw:SpecificationDate': 'specificationdate', 'pycsw:SpecificationDateType': 'specificationdatetype', 'pycsw:Creator': 'creator', 'pycsw:Publisher': 'publisher', 'pycsw:Contributor': 'contributor', 'pycsw:Relation': 'relation', 'pycsw:Links': 'links', } }

Start pycsw service

python3 pycsw/wsgi.py

Run Get-Requests

GetCapabilities-Request is working: ?SERVICE=CSW&request=GetCapabilities&VERSION=2.0.2 GetRecords also: ?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecords&typeNames=gmd:MD_Metadata&constraintLanguage=CQL_TEXT&ElementSetName=full&resultType=hits But GetRecordById not completly: ?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&id=3d84970f-99dc-4f63-b631-08ff838f8808&outputSchema=http://www.isotc211.org/2005/gmd

Wrong Output of GetRecordById:

3d84970f-99dc-4f63-b631-08ff838f8808 ISO19115 2003/Cor.1:2006 # Additional Information
tomkralidis commented 1 year ago

Please post questions to the pycsw mailing list. pycsw GitHub issues are for software bugs/enhancements and related tasks.

Having said this, also see the documentation at https://docs.pycsw.org/en/latest/administration.html#existing-repository-requirements