index.rst 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. .. _tutorial_metadata:
  2. INSPIRE metadata configuration using metadata and CSW
  3. -----------------------------------------------------
  4. The INSPIRE directive requires exposure of fairly complex metadata schemes based on the ISO Metadata Profile.
  5. This exposure is supported by the built-in :ref:`csw` service (can be harvested by GeoNetwork), while the :ref:`community_metadata` community module allows adding any amount of customized metadata fields to layers that may be required for your particular case.
  6. Creating all the needed configuration files in both modules can be a tedious task. Therefore we have added this example configuration.
  7. Metadata configuration
  8. ^^^^^^^^^^^^^^^^^^^^^^
  9. Place the following files in the ``metadata`` folder:
  10. UI configuration :download:`metadata-ui.yaml <files/metadata-ui.yaml>`
  11. Translate keys to labels :download:`metadata.properties <files/metadata.properties>`
  12. Translate keys to Dutch labels :download:`metadata_nl.properties <files/metadata_nl.properties>`
  13. Content for gemet-concept dropdown :download:`keyword-gemet-concept.csv <files/keyword-gemet-concept.csv>`
  14. Content for reference-system requirebox :download:`keyword-gemet-concept.csv <files/reference-systems-epsg.csv>`
  15. Content for inspire-theme-label & inspire-theme-ref :download:`keyword-inspire-theme.csv <files/keyword-inspire-theme.csv>`
  16. Geonetwork mapping :download:`metadata-mapping.yaml <files/metadata-mapping.yaml>`
  17. Namespaces for geonetwork mapping :download:`metadata-mapping.yaml <files/metadata-namespaces.yaml>`
  18. Geonetwork endpoints :download:`metadata-geonetwork.yaml <files/metadata-geonetwork.yaml>`
  19. Synchronize native fields :download:`metadata-native-mapping.yaml <files/metadata-native-mapping.yaml>`
  20. Open any layer: navigate to :menuselection:`Layers --> Choose the layer --> Metadata tab`.
  21. The metadata fields are available in the panel :guilabel:`Metadata fields`.
  22. You may now add custom metadata to your layers.
  23. CSW configuration
  24. ^^^^^^^^^^^^^^^^^
  25. Map metadata attributes to xml :download:`MD_Metadata.properties <files/MD_Metadata.properties>`
  26. Map Feature Catalogue attributes to xml :download:`FC_FeatureCatalogue.properties <files/FC_FeatureCatalogue.properties>`
  27. Map Record attributes to xml :download:`Record.properties <files/Record.properties>`
  28. You may now see your custom metadata exposed by the built-in CSW service:
  29. e.g. `https://my.host/geoserver/csw?service=CSW&version=2.0.2&request=GetRecords&typeNames=gmd:MD_Metadata&resultType=results&elementSetName=full&outputSchema=http://www.isotc211.org/2005/gmd`.
  30. GeoNetwork configuration
  31. ^^^^^^^^^^^^^^^^^^^^^^^^
  32. Create a GeoNetwork CSW harvester that points to your to Geoserver's CSW endpoint:
  33. e.g. `https://my.host/geoserver/csw?Service=CSW&Request=Getcapabilities`.
  34. You may now start harvesting!