[Mapbender-commits] r2387 - branches/2.5/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Apr 16 06:04:11 EDT 2008
Author: greq
Date: 2008-04-16 06:04:11 -0400 (Wed, 16 Apr 2008)
New Revision: 2387
Modified:
branches/2.5/http/classes/class_weldMaps2Image.php
Log:
bug fixed by geotiff export
Modified: branches/2.5/http/classes/class_weldMaps2Image.php
===================================================================
--- branches/2.5/http/classes/class_weldMaps2Image.php 2008-04-15 09:59:30 UTC (rev 2386)
+++ branches/2.5/http/classes/class_weldMaps2Image.php 2008-04-16 10:04:11 UTC (rev 2387)
@@ -118,12 +118,15 @@
$wms_bbox = str_replace(',', ' ', $wms_bbox);
$filename_tif = str_replace($wms_format, 'tif', $filenameOnly);
- $tmp_dir = $this->array_file['dir'];
+ $tmp_dir = $this->array_file['dir']."/";
+
+ $array_bbox = explode(" ", $wms_bbox);
+ $wms_bbox = $array_bbox[0]." ".$array_bbox[3]." ".$array_bbox[2]." ".$array_bbox[1];
+
$cmd = "gdal_translate -a_srs ".$wms_srs." -a_ullr ".$wms_bbox." ".$tmp_dir.$filenameOnly." ".$tmp_dir.$filename_tif;
exec($cmd);
- echo "<br>";
- $this->downloadLink($filenameOnly);
+ $this->downloadLink($filename_tif);
}else {
More information about the Mapbender_commits
mailing list