INSPIRE Download Service

Author:Stephan Meissl
Contact:stephan.meissl at eox.at
Author:Even Rouault
Contact:even.rouault at mines-paris.org
Last Updated:2014-01-22

Pengantar

INSPIRE is the name of an European directive, establishing an infrastructure for spatial information in Europe to support Community environmental policies, and policies or activities which may have an impact on the environment.

The INSPIRE Download Service is an implementation of the INSPIRE Technical Guidance Download Services v3.1 on top of the WFS Server, version 2.0, implementation explained in the previous chapter. The INSPIRE schemas contain extensions to OGC WFS schemas.

In order to achieve INSPIRE Download Service compliance, the following enhancements have been implemented in MapServer:

  • Activation of INSPIRE support (two scenarios)
  • Multi-language support for certain capabilities fields
  • Provision of INSPIRE specific metadata

Support for INSPIRE Download Service in MapServer uses a syntax identical to the one used for INSPIRE View Service. Consequently, it is possible to define shared metadata items between Download and View services by using the ows_ prefix instead of wfs_.

Activation of INSPIRE support

INSPIRE specific metadata can either be referenced in an external INSPIRE service metadata document (scenario 1) or can be directly embedded in the capabilities document (scenario 2). MapServer supports both scenarios.

Activation of the corresponding scenario for INSPIRE support takes place in the WEB.METADATA section of the mapfile through wfs_inspire_capabilities. If activated, the corresponding INSPIRE namespace as well as appropriate validation warnings are generated in the capabilities document.

Scenario 1 - activate INSPIRE support using a reference to external service metadata:

WEB
 METADATA
  "wfs_inspire_capabilities" "url"
  ...
 END
END

Scenario 2 - activate INSPIRE support using embedded service metadata:

WEB
 METADATA
  "wfs_inspire_capabilities" "embed"
  ...
 END
END

Multi-language support for certain capabilities fields

INSPIRE requires multi-language support and requests a list of all supported languages as well as the default language in the capabilities document. Based on the language parameter in the GetCapabilities request, certain specific metadata values, namely

  • wfs_title
  • wfs_abstract

need to be provided in the requested language (both at the WEB.METADATA and LAYER.METADATA levels). If the language is not supported (or no language parameter is present), the default language has to be used.

As an extension, also not encouraged by the INSPIRE Download Services technical guidance, MapServer supports language dependent reference data like

  • DATA "road_eng"
  • CONNECTION "db_ger"

All supported languages have to be specified as comma separated list (first language is default) through wfs_languages in the WEB.METADATA section of the mapfile. This language parameter is also added to the OnlineResource in the GetCapabilities output:

WEB
 METADATA
  ...
  "wfs_languages" "eng,ger"       #first default, values according ISO 639-2/B
  ...
 END
END

For language specific metadata values, a key extension method is applied:

WEB
 METADATA
  ...
  "wfs_title.eng" "myservicetitle"
  "wfs_title.ger" "myservicetitleger"
  "wfs_abstract" "mylayerabstract"        #fallback
  "wfs_abstract.ger" "mylayerabstractger"
  ...
 END
END

LAYER
  METADATA
    "wfs_title"         "title: province"
    "wfs_title.fre"     "titre: province"
    "wfs_abstract"      "abstract: province"
    "wfs_abstract.fre"  "resume: province"
    ...
   END
   ...
END

For language dependent reference data, a similar approach like the run-time substitution feature of MapServer has been followed (only DATA and CONNECTION values with %language% are substituted):

...
  LAYER
   NAME TN.RoadTransportNetwork.RoadLink
   DATA "road_%language%"
   ...
  END
...

If the language is not supported (or no language parameter is present), the default language is substituted.

Provision of INSPIRE specific metadata

Depending on the scenario, additional metadata information is required to support the specification. The INSPIRE related fields are provided below.

Scenario 1 - INSPIRE related fields using referenced external service metadata:

WEB
 METADATA
  "wfs_inspire_capabilities" "url"
  "wfs_languages" "eng,ger"               #first default, values according ISO 639-2/B

  "wfs_inspire_metadataurl_href" "http://INSPIRE.service/metadata"
  "wfs_inspire_metadataurl_format" "application/vnd.ogc.csw.capabilities.response_xml"
  "wfs_inspire_dsid_code" "mycode"

  "wfs_keywordlist" "ogc,wfs,gml"
  "wfs_title" "myservicetitle"
  "wfs_abstract" "myabstract"
  "wfs_fees" "conditions unknown"         #value either "no conditions apply"|default "conditions unknown"|<specific conditions>
  "wfs_accessconstraints" "None"          #value according ISO 19115 (MD_RestrictionCode codelist) or default "None"
  "wfs_contactorganization" "MapServer"   #responsible organization
  "wfs_contactposition" "owner"           #responsible organization, value according "INSPIRE Metadata Regulation" (part D6)
  ...
 END
END

Scenario 2 - INSPIRE related fields using embedded service metadata:

WEB
 METADATA
  "wfs_inspire_capabilities" "embed"
  "wfs_languages" "eng,ger"               #first default, values according ISO 639-2/B

  "wfs_inspire_temporal_reference" "2011-09-19"                                 #date of last revision, value according YYYY-MM-DD
  "wfs_inspire_mpoc_name" "mympocname"                                          #point of contact
  "wfs_inspire_mpoc_email" "mympoc@e.mail"                                      #point of contact
  "wfs_inspire_metadatadate" "2011-09-19"
  "wfs_inspire_resourcelocator" "http://myinspireresource"                      #URL for ResourceLocator
  "wfs_inspire_keyword" "infoMapAccessService"                                  #value according "classification of spatial data services"
  "wfs_inspire_dsid_code" "mycode"
  "wfs_inspire_dsid_ns" "http://mycode"

  "wfs_keywordlist" "ogc,wfs,gml"
  "wfs_title" "myservicetitle"
  "wfs_abstract" "myabstract"
  "wfs_fees" "conditions unknown"         #value either "no conditions apply"|default "conditions unknown"|<specific conditions>
  "wfs_accessconstraints" "None"          #value according ISO 19115 (MD_RestrictionCode codelist) or default "None"
  "wfs_contactorganization" "MapServer"   #responsible organization
  "wfs_contactposition" "owner"           #responsible organization, value according "INSPIRE Metadata Regulation" (part D6)
  ...
 END
END

Notes:

  • this mailing list exchange gives a few hints how to fill the wfs_inspire_dsid_code metadata item.
  • regarding scenario 2, <inspire_common:ResourceType> is always set to service and <inspire_common:SpatialDataServiceType> is always set to download, both values can’t be altered through the mapfile
  • conformity is always set to not evaluated, based on the latest INSPIRE Metadata Implementing Rules (page 7), a specification document, the specification date and a specification URI or URL need to be provided for degree conformant/not conformant, which is currently not implemented