[mapserver-commits] r7966 - trunk/msautotest/pymod
svn at osgeo.org
svn at osgeo.org
Tue Oct 7 09:58:06 EDT 2008
Author: nsavard
Date: 2008-10-07 09:58:05 -0400 (Tue, 07 Oct 2008)
New Revision: 7966
Modified:
trunk/msautotest/pymod/msautotest_viewer.py
Log:
Fixed variable names.
Modified: trunk/msautotest/pymod/msautotest_viewer.py
===================================================================
--- trunk/msautotest/pymod/msautotest_viewer.py 2008-10-06 19:53:58 UTC (rev 7965)
+++ trunk/msautotest/pymod/msautotest_viewer.py 2008-10-07 13:58:05 UTC (rev 7966)
@@ -261,8 +261,10 @@
logging.debug(function_name + 'geotiff')
- expected_PNG_image_URL = tiff2png(parameters_list[3])
- actual_pNG_image_URL = tiff2png(parameters_list[1])
+ #expected_PNG_image_URL = tiff2png(parameters_list[3])
+ #actual_pNG_image_URL = tiff2png(parameters_list[1])
+ expected_PNG_image_URL = parameters_list[4]
+ actual_pNG_image_URL = parameters_list[2]
print "<tr><td><table border=1 width=100%><tr><td>File:" + parameters_list[0] + "</td><td>GeoTiff converted to Png.</td></tr></tr></table></td></tr>"
else:
@@ -360,7 +362,7 @@
basename = os.path.basename(tiff_file)
imagename_list = os.path.splitext(basename)
- filename = imagename[0] + '_msautotest_' + sub_path
+ filename = imagename_list[0] + '_msautotest_' + sub_path
logging.debug(function_name + "filename=" + filename)
PNG_file = tmp_path + filename + '.png'
PNG_URL = tmp_web + filename + '.png'
@@ -384,7 +386,7 @@
logging.debug(function_name + "cmd=" + cmd)
oShellProcess = subprocess.call(cmd, shell=True, stdout=out_fp, stderr=err_fp )
- return(szPngURL)
+ return(PNG_URL)
## Remove temporary PNG images file
def rmTmpPngImages():
More information about the mapserver-commits
mailing list