[mapguide-trac] #1392: OGC WMS 1.3.0 Support

MapGuide Open Source trac_mapguide at osgeo.org
Sat Aug 7 07:49:14 EDT 2010


#1392: OGC WMS 1.3.0 Support
-----------------------------+----------------------------------------------
   Reporter:  liuar          |       Owner:  liuar   
       Type:  enhancement    |      Status:  new     
   Priority:  medium         |   Milestone:          
  Component:  WMS Interface  |     Version:          
   Severity:  trivial        |    Keywords:  WMS CITE
External_id:                 |  
-----------------------------+----------------------------------------------

Comment(by liuar):

 In order to pass the OGC certification, the following implementation of
 MapGuide web map service should be updated
 [[BR]]
 [[BR]]

 1. The server must contain the test dataset in layers that are subsetable
 and resizable and support CRS:84. [[BR]]

 So, it is necessary to add a CRS:84 translate in SRS.WKT.map[[BR]]

 {{{
 <translate
 from="CRS:84">GEOGCS["LL84",DATUM["WGS84",SPHEROID["WGS84",6378137.000,298.25722293]],PRIMEM["Greenwich",0],UNIT["Degree",0.01745329251994]]</translate>
 }}}


 2. The exception format must be text/xml if the format is specified as
 XML.
 The exception schema is upgrade to 1.3.0[[BR]]
 {{{
 <Response request="Exception" content-type="text/xml">
 <ServiceExceptionReport version="&TemplateVersion;"
    xmlns="http://www.opengis.net/ogc"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.opengis.net/ogc
 http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd">
  <ServiceException code="&Exception.Type;">
   &Exception.message;
  </ServiceException>
 </ServiceExceptionReport>
 </Response>
 }}}

 3. In !GetFeatureInfo operation, if user specify an invalid info_format
 request parameter. The server should generate an exception with error code
 "!InvalidFormat"[[BR]]

 {{{

 CPSZ pszSupportedFormats = this->Definition(_("Formats.GetFeatureInfo"));

 bool bSupport = false;

 if(pszSupportedFormats != NULL)
 {
     MgXmlParser SupportedFormats(pszSupportedFormats);

     while(SupportedFormats.Next())
     {
         MgXmlNode& node = SupportedFormats.Current();
         if(node.Contents() == pszFormat)
         {
             bSupport = true;
             break;
         }
     }
 }

 if(!bSupport)
 {
 ServiceExceptionReportResponse(MgOgcWmsException(MgOgcWmsException::kpszInvalidFormat,
 kpszExceptionMessageInvalidInfoFormat));
     bValid = false;
 }
 }}}

 '''NONE: CS-Map does't support CRS:84 currently. So I ignore the
 !ProcessBoundingBoxAxes for CRS:84 to avoid !MgCoordinateSystem
 exceptions.'''

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1392#comment:12>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list