[fusion-commits] r2212 - trunk/widgets/QuickPlot
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Tue Aug 31 06:26:37 EDT 2010
Author: liuar
Date: 2010-08-31 10:26:37 +0000 (Tue, 31 Aug 2010)
New Revision: 2212
Modified:
trunk/widgets/QuickPlot/GeneratePicture.php
Log:
Submit on behalf of Mars Wu for Quick Plot
Use 127.0.0.1 specificly as the host of map agent
Modified: trunk/widgets/QuickPlot/GeneratePicture.php
===================================================================
--- trunk/widgets/QuickPlot/GeneratePicture.php 2010-08-31 10:09:46 UTC (rev 2211)
+++ trunk/widgets/QuickPlot/GeneratePicture.php 2010-08-31 10:26:37 UTC (rev 2212)
@@ -100,7 +100,7 @@
$mapAgent .= "s";
}
// Get the correct port number
- $mapAgent .= "://" . $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"];
+ $mapAgent .= "://127.0.0.1:" . $_SERVER["SERVER_PORT"];
// Get the correct virtual directory
$mapAgent .= substr($_SERVER["REQUEST_URI"], 0, strpos($_SERVER["REQUEST_URI"], "/", 1));
$mapAgent .="/mapagent/mapagent.fcgi?VERSION=1.0.0&OPERATION=GETMAPIMAGE" .
@@ -114,6 +114,7 @@
"&SETDISPLAYWIDTH=$toSize->width" .
"&SETDISPLAYHEIGHT=$toSize->height" .
"&CLIP=0";
+
$image = imagecreatefrompng($mapAgent);
// Rotate the picture back to be normalized
$normalizedImg = imagerotate($image, -$rotation, 0);
More information about the fusion-commits
mailing list