Skip to content
Thomas Bonfort edited this page Apr 6, 2012 · 2 revisions

[https://svn.osgeo.org/mapserver/sandbox/inspire_soc2011 source code repository]

[http://hma.eox.at/inspire/rfc73.html first draft] of rfc (corresponding [https://svn.osgeo.org/mapserver/sandbox/inspire_soc2011/mapserver/rfc73.rst rst] file)

=== tasks ===
==== multi language support ====

for the different possible options regarding implementation see the overview [http://trac.osgeo.org/mapserver/wiki/gsoc2011/work here] and the corresponding post [http://lists.osgeo.org/pipermail/mapserver-inspire/2011-May/000057.html here]

  • current implementation

(i) use key extensions (e.g. ''wms_abstract_ger'') for language specific metadata values (''title'', ''abstract'') br
(ii) use runtime substitution (e.g. ''shapes/rivers_%language%.shp'') for language dependent reference data br

==== view service metadata ====

(i) service title and abstract are localized (e.g. ''wms_abstract_ger''), fallback to ''wms_abstract'' if parameter ''language=eng'' and ''wms_abstract_eng'' not specified br
(ii) localization also applies to rootlayer (e.g. ''wms_rootlayer_abstract_ger'') and individual layers br
(iii) only one service keyword supported at the moment, needs to be specified explicitly using ''wms_inspire_keyword'' br
(iv) usage of ''group''/''classgroup'' to set name of style to ''inspire_common:DEFAULT'' br

  • scenario 1 - reference to external inspire service metadata

[http://trac.osgeo.org/mapserver/browser/sandbox/inspire_soc2011/msautotest/wxs/wms_inspire_scenario1.map example map file] (also note comments in file)

(i) enabled by ''wms_inspire_capabilities'' set to ''url''

GetCapabilities request with parameter LANGUAGE=ger results in

...                                                                                                                                                                                                                                              
<inspire_vs:ExtendedCapabilities>                                                                                                                                                                                                                
  <inspire_common:MetadataUrl xsi:type="inspire_common:resourceLocatorType">                                                                                                                                                                     
    <inspire_common:URL>http://inspire.service/metadata</inspire_common:URL>                                                                                                                                                                     
    <inspire_common:MediaType>application/vnd.ogc.csw.capabilities.response_xml</inspire_common:MediaType>                                                                                                                                       
  </inspire_common:MetadataUrl>                                                                                                                                                                                                                  
  <inspire_common:SupportedLanguages>                                                                                                                                                                                                            
    <inspire_common:DefaultLanguage>                                                                                                                                                                                                             
      <inspire_common:Language>eng</inspire_common:Language>                                                                                                                                                                                     
    </inspire_common:DefaultLanguage>                                                                                                                                                                                                            
    <inspire_common:SupportedLanguage>                                                                                                                                                                                                           
      <inspire_common:Language>ger</inspire_common:Language>                                                                                                                                                                                     
    </inspire_common:SupportedLanguage>                                                                                                                                                                                                          
  </inspire_common:SupportedLanguages>                                                                                                                                                                                                           
  <inspire_common:ResponseLanguage>                                                                                                                                                                                                              
  <inspire_common:Language>ger</inspire_common:Language>                                                                                                                                                                                         
  </inspire_common:ResponseLanguage>                                                                                                                                                                                                             
</inspire_vs:ExtendedCapabilities>                                                                                                                                                                                                               
...                                                                                                                                                                                                                                              
  • scenario 2 - embedded inspire service metadata

[http://trac.osgeo.org/mapserver/browser/sandbox/inspire_soc2011/msautotest/wxs/wms_inspire_scenario2.map example map file] (also note comments in file)

(i) enabled by ''wms_inspire_capabilities'' set to ''embed'' br
(ii) ''<inspire_common:ResourceType>'' always set to ''service'' br
(iii) ''<inspire_common:SpatialDataServiceType> always set to ''view'' br

GetCapabilities request with parameter LANGUAGE=ger results in

...                                                                                                                                                                                                                                              
<inspire_vs:ExtendedCapabilities>                                                                                                                                                                                                                
  <inspire_common:ResourceType>service</inspire_common:ResourceType>                                                                                                                                                                             
  <inspire_common:TemporalReference>                                                                                                                                                                                                             
  <inspire_common:DateOfLastRevision>2011-09-19</inspire_common:DateOfLastRevision>                                                                                                                                                              
  </inspire_common:TemporalReference>                                                                                                                                                                                                            
  <inspire_common:Conformity>                                                                                                                                                                                                                    
    <inspire_common:Specification>                                                                                                                                                                                                               
      <inspire_common:Title>-</inspire_common:Title>                                                                                                                                                                                             
      <inspire_common:DateOfLastRevision>2011-09-19</inspire_common:DateOfLastRevision>                                                                                                                                                          
    </inspire_common:Specification>                                                                                                                                                                                                              
    <inspire_common:Degree>notEvaluated</inspire_common:Degree>                                                                                                                                                                                  
  </inspire_common:Conformity>                                                                                                                                                                                                                   
  <inspire_common:MetadataPointOfContact>                                                                                                                                                                                                        
    <inspire_common:OrganisationName>mympocname</inspire_common:OrganisationName>                                                                                                                                                                
    <inspire_common:EmailAddress>mympocemail</inspire_common:EmailAddress>                                                                                                                                                                       
  </inspire_common:MetadataPointOfContact>                                                                                                                                                                                                       
  <inspire_common:MetadataDate>2011-09-19</inspire_common:MetadataDate>                                                                                                                                                                          
  <inspire_common:SpatialDataServiceType>view</inspire_common:SpatialDataServiceType>                                                                                                                                                            
  <inspire_common:Keyword xsi:type="inspire_common:classificationOfSpatialDataService">                                                                                                                                                          
    <inspire_common:KeywordValue>infoMapAccessService</inspire_common:KeywordValue>                                                                                                                                                              
  </inspire_common:Keyword>                                                                                                                                                                                                                      
  <inspire_common:SupportedLanguages>                                                                                                                                                                                                            
    <inspire_common:DefaultLanguage>                                                                                                                                                                                                             
      <inspire_common:Language>eng</inspire_common:Language>                                                                                                                                                                                     
    </inspire_common:DefaultLanguage>                                                                                                                                                                                                            
    <inspire_common:SupportedLanguage>                                                                                                                                                                                                           
      <inspire_common:Language>ger</inspire_common:Language>                                                                                                                                                                                     
    </inspire_common:SupportedLanguage>                                                                                                                                                                                                          
  </inspire_common:SupportedLanguages>                                                                                                                                                                                                           
  <inspire_common:ResponseLanguage>                                                                                                                                                                                                              
    <inspire_common:Language>ger</inspire_common:Language>                                                                                                                                                                                       
  </inspire_common:ResponseLanguage>                                                                                                                                                                                                             
</inspire_vs:ExtendedCapabilities>                                                                                                                                                                                                               
...                                                                                                                                                                                                                                              
}}
Clone this wiki locally