Mapserv Cgi use Stdout instead product picture
Benjamin Ferlicot
bfe at IXSEA.COM
Thu Mar 1 02:33:25 PST 2007
Hi,
I Have installed FW-tools(the last release) on Windows 2003 / IIS6.0
System, and I have problems to serves Image.
Enviromement variable looks good because all Tools Work in command lines.
Data looks good two shp2Img Works Well
But When I use Mapserv as CGI (With Worldwind) a get this kind of output
GTiff: Opened 444x528 overview. GTiff: Opened 222x264 overview. GTiff:
Opened 111x132 overview. GDAL: GDALOpen
(C:\Inetpub\wwwroot\Content\Plots_fev07\STBD\bigRT0.tif) succeeds as
GTiff. GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose() GDAL:
GDALClose() GDAL: GDALClose(C:\Inetpub\wwwroot\Content\Plots_fev07
\STBD\bigRT0.tif) GTiff: Opened 888x1080 overview. GTiff: Opened 444x540
overview. GTiff: Opened 222x270 overview. GTiff: Opened 111x135 overview.
GDAL: GDALOpen(C:\Inetpub\wwwroot\Content\Plots_fev07\STBD\bigRT1.tif)
succeeds as GTiff. GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose()
GDAL: GDALClose() GDAL: GDALClose
(C:\Inetpub\wwwroot\Content\Plots_fev07\STBD\bigRT1.tif) GTiff: Opened
864x1080 overview. GTiff: Opened 432x540 overview. GTiff: Opened 216x270
overview. GTiff: Opened 108x135 overview. GDAL: GDALOpen
(C:\Inetpub\wwwroot\Content\Plots_fev07\STBD\bigRT2.tif) succeeds as
GTiff. GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose() GDAL:
GDALClose() GDAL: GDALClose(C:\Inetpub\wwwroot\Content\Plots_fev07
\STBD\bigRT2.tif) GTiff: Opened 912x1080 overview. GTiff: Opened 456x540
overview. GTiff: Opened 228x270 overview. GTiff: Opened 114x135 overview.
GDAL: GDALOpen(C:\Inetpub\wwwroot\Content\Plots_fev07\PORT\bigRT1.tif)
succeeds as GTiff. GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose()
GDAL: GDALClose() GDAL: GDALClose
(C:\Inetpub\wwwroot\Content\Plots_fev07\PORT\bigRT1.tif) GTiff: Opened
936x1056 overview. GTiff: Opened 468x528 overview. GTiff: Opened 234x264
overview. GTiff: Opened 117x132 overview. GDAL: GDALOpen
(C:\Inetpub\wwwroot\Content\Plots_fev07\PORT\bigRT2.tif) succeeds as
GTiff. GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose() GDAL:
GDALClose() GDAL: GDALClose(C:\Inetpub\wwwroot\Content\Plots_fev07
\PORT\bigRT2.tif) GTiff: Opened 864x1080 overview. GTiff: Opened 432x540
overview. GTiff: Opened 216x270 overview. GTiff: Opened 108x135 overview.
GDAL: GDALOpen(C:\Inetpub\wwwroot\Content\Plots_fev07\PORT\bigRT0.tif)
succeeds as GTiff. GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose()
GDAL: GDALClose() GDAL: GDALClose
(C:\Inetpub\wwwroot\Content\Plots_fev07\PORT\bigRT0.tif) Content-type:
image/gif GIF89a[1][1]Æÿÿÿ[1][1][1]
________________________________________
________________________________________
________________________________________
"""$$$&&&
(((***,,,...000222444666888:::<<<>>>@@@BBBDDDFFFHHHJJJLLLNNNPPPRRR
TTTVVVXXXZZZ\\\^^^```bbbdddfffhhhjjjlllnnnppprrrtttvvvxxxzzz|||~~~
¢¢¢
¤¤¤¦¦¦¨¨¨ªªª¬¬¬®®®°°°
²²²´´´¶¶¶¸¸¸ººº¼¼¼¾¾¾ÀÀÀÂÂÂÄÄÄÆÆÆÈÈÈÊÊÊÌÌÌÎÎÎÐÐÐÒÒÒÔÔÔÖÖÖØØ
ØÚÚÚÜÜÜÞÞÞàààâââäääæææèèèêêêìììîîîðððòòòôôôöööøøøúúúüüüþþþ!ù
________________________________________
,[1][1]
þQOOLSDRLKB>EJGLCGORPFADCDEDKFEFLLXNYFWvde^VJKSWOM8D63
¹º»¼½¾¾
________________________________________
BMMJCHLHAJAGDAEEC>Å>QXWW]
ÙZbgeb`ah_^ckcoai`edleionvrstkmªqyuppm`Ô)óå-VÀ°Ù 4b~IH±¢
Å3jÜȱ£Ç C y $G y[1]DI$I"õ[1]dI³%Aôø %HlYòd (hÒË (X&é
ÂÃG HHJ
Who Is the same as shp2Img when I forgot the o parameters.
it seems that the stdout is used by mapserv
and OUTPUTFORMAT and IMAGETYPE Tag can't change anything ..
I cant find anything relevant on google
. Can anybody help?
Best Regards
Map file
MAP # Start of ixsea.map file
NAME "Test"
#DEBUG ON
CONFIG "PROJ_LIB" "C:\Inetpub\wwwroot\Cgi\proj_lib\"
STATUS ON
EXTENT 5.6582322 43.1659403 5.6717302 43.171794
SIZE 512 512
SHAPEPATH "C:\Inetpub\wwwroot\Content\Plots_fev07\"
#SYMBOLSET "./etc/symbols.sym"
#FONTSET "./etc/fonts.txt"
IMAGETYPE GIF
IMAGECOLOR 255 255 255
UNITS METERS
PROJECTION
"init=epsg:4326" # epsg projection
END
WEB
IMAGEPATH "c:/ms_tmp/"
IMAGEURL "http://localhost/ms_tmp/"
METADATA
"wms_title" "web"
"wms_srs" "epsg:4326"
"wms_onlineresource" "http://localhost/Default.aspx"
END
END
LAYER
NAME "plot"
STATUS ON
TILEINDEX "index.shp"
TILEITEM "location"
TYPE RASTER
UNITS METERS
METADATA
"wms_title" "plot"
"wms_srs" "epsg:32631"
"wms_onlineresource" "http://localhost/Default.aspx"
END
PROJECTION
"init=epsg:32631" # epsg projection
END
OFFSITE 0 0 0
END
END
More information about the MapServer-users
mailing list