[Mapbender-commits] r1735 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Oct 18 07:28:23 EDT 2007
Author: christoph
Date: 2007-10-18 07:28:22 -0400 (Thu, 18 Oct 2007)
New Revision: 1735
Modified:
trunk/mapbender/http/classes/class_wms.php
Log:
avoided duplicate entries in table wms_srs
Modified: trunk/mapbender/http/classes/class_wms.php
===================================================================
--- trunk/mapbender/http/classes/class_wms.php 2007-10-16 07:54:26 UTC (rev 1734)
+++ trunk/mapbender/http/classes/class_wms.php 2007-10-18 11:28:22 UTC (rev 1735)
@@ -435,7 +435,8 @@
if(mb_strtoupper($element[tag]) == "SRS"){
$this->objLayer[$cnt_layer]->wms_srs1 = $element[value];
- $this->wms_srs = explode (" ", $this->objLayer[0]->wms_srs1);
+ // unique srs only, see http://www.mapbender.org/index.php/Arrays_with_unique_entries
+ $this->wms_srs = array_keys(array_flip(explode(" ", $this->objLayer[0]->wms_srs1)));
}
if(mb_strtoupper($element[tag]) == "LATLONBOUNDINGBOX"){
$cnt_epsg++;
More information about the Mapbender_commits
mailing list