[Mapbender-commits] r10023 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jan 8 14:13:25 PST 2019


Author: armin11
Date: 2019-01-08 14:13:25 -0800 (Tue, 08 Jan 2019)
New Revision: 10023

Modified:
   trunk/mapbender/http/php/mod_interfaceWms4Kml.php
Log:
Fix for wrong preg_replace and set higher resolution for getmap images

Modified: trunk/mapbender/http/php/mod_interfaceWms4Kml.php
===================================================================
--- trunk/mapbender/http/php/mod_interfaceWms4Kml.php	2018-12-18 13:46:38 UTC (rev 10022)
+++ trunk/mapbender/http/php/mod_interfaceWms4Kml.php	2019-01-08 22:13:25 UTC (rev 10023)
@@ -42,7 +42,7 @@
 }
 $admin = new administration();
 $getmapurl = $admin->checkURL($rowKML['wms_getmap']);
-$getmapurl = preg_replace("&","&", $getmapurl);
+$getmapurl = str_replace("&","&", $getmapurl);
 //exchange normal url with owsproxyurl
 $sessionId = session_id();
 if ($rowKML['wms_owsproxy'] <> '' && $rowKML['wms_owsproxy'] <> NULL) {
@@ -57,7 +57,7 @@
 $kml.="<GroundOverlay>".chr(13).chr(10);
 $kml.="<name>".$rowKML['layer_title']."</name>".chr(13).chr(10);
 $kml.="<Icon>".chr(13).chr(10);
-$kml.="<href>".$getmapurl."VERSION=".$rowKML['wms_version']."&REQUEST=GetMap&SRS=EPSG:4326&WIDTH=512&HEIGHT=512&LAYERS=".$rowKML['layer_name']."&STYLES=&TRANSPARENT=TRUE&BGCOLOR=0xffffff&FORMAT=image/png&</href>".chr(13).chr(10);
+$kml.="<href>".$getmapurl."VERSION=".$rowKML['wms_version']."&REQUEST=GetMap&SRS=EPSG:4326&WIDTH=2048&HEIGHT=2048&LAYERS=".$rowKML['layer_name']."&STYLES=&TRANSPARENT=TRUE&BGCOLOR=0xffffff&FORMAT=image/png&</href>".chr(13).chr(10);
 $kml.="<RefreshMode>onExpire</RefreshMode>".chr(13).chr(10);
 $kml.="<viewRefreshMode>onStop</viewRefreshMode>".chr(13).chr(10);
 $kml.="<viewRefreshTime>1</viewRefreshTime>".chr(13).chr(10);



More information about the Mapbender_commits mailing list