[Mapbender-dev] Re: [Mapbender] #123: Parsing WMS Capabilities Doc with duplicate SRS entries fails

Mapbender info at osgeo.org
Thu Oct 18 08:34:10 EDT 2007


#123: Parsing WMS Capabilities Doc with duplicate SRS entries fails
------------------------+---------------------------------------------------
  Reporter:  christoph  |       Owner:  mapbender_dev at lists.osgeo.org
      Type:  defect     |      Status:  closed                       
  Priority:  major      |   Milestone:  2.5 release                  
 Component:  wms        |     Version:  2.4.2                        
Resolution:  fixed      |    Keywords:  srs, epsg, wms               
------------------------+---------------------------------------------------
Changes (by christoph):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 in /classes/class_wms.php change the function createObjFromXML (in
 revision 1719 line 438)

 $this->wms_srs = explode (" ", $this->objLayer[0]->wms_srs1);

 replace by

 $this->wms_srs = array_keys( array_flip(explode (" ",
 $this->objLayer[0]->wms_srs1)));

 a patch will follow

-- 
Ticket URL: <http://trac.osgeo.org/mapbender/ticket/123#comment:1>
Mapbender <http://www.mapbender.org/>
Mapbender


More information about the Mapbender_dev mailing list