#123: Parsing WMS Capabilities Doc with duplicate SRS entries fails
------------------------+---------------------------------------------------
Reporter: christoph | Owner: mapbender_dev@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
_______________________________________________
Mapbender_dev mailing list
Mapbender_dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapbender_dev