In MapServer 6.0, the GD driver can only produce 8-bit output so your output format is invalid. Try commenting it out and see what happens. I believe you can leave "IMAGETYPE png" in place and you'll get AGG-based, 8-bit output. Should look much nicer.<br>
<br>Steve<br><br><div class="gmail_quote">On Sun, Jul 24, 2011 at 11:14 PM, Mihaela Caluian <span dir="ltr"><<a href="mailto:mihaela.caluian@gmail.com">mihaela.caluian@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>Hello everybody,</div>
<div> </div>
<div>I am very new to MapServer and I have a lots of problem that I cannot find answer.</div>
<div> </div>
<div>Currently I am having trouble to figure out what is wrong with my .map files. I am getting this error when I try to click the button to load the map file:</div>
<div> </div>
<div>loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 49) msOutputFormatValidate(): General error message. OUTPUTFORMAT png has IMAGEMODE RGB/RGBA, which is not supported for GD drivers. </div>
<div> </div>
<div>When I installed for the first time MapServer everything works, but I had to reinstall it and I cannot even see my work now. </div>
<div> </div>
<div>I am using Windows Vista and MapServer MS4W - MapServer 4 Windows - version 3.0.3: (This is my first time when I am working with MapServer, actually I am learning it.)</div>
<div> </div>
<div>The map file that I tried to open is:</div>
<div> </div>
<div>MAP<br> NAME "Rail"<br> # Map image size<br> SIZE 600 400<br> UNITS meters</div>
<div> EXTENT -132.193287 28.711430 -50.854471 74.207982<br> FONTSET 'c:/wwwroot/fonts/fontset.txt'<br> SYMBOLSET 'c:/wwwroot/symbols/symbols.txt'<br> PROJECTION<br> 'proj=longlat'<br> 'ellps=WGS84'<br>
'towgs84=0,0,0,0,0,0,0'<br> 'no_defs'<br> END</div>
<div> # Background color for the map canvas -- change as desired<br> IMAGECOLOR 255 255 255<br> IMAGEQUALITY 95<br> IMAGETYPE png</div>
<div> OUTPUTFORMAT<br> NAME png<br> DRIVER 'GD/PNG'<br> MIMETYPE 'image/png'<br> IMAGEMODE RGBA<br> EXTENSION 'png'<br> END<br> # Legend<br> LEGEND<br> IMAGECOLOR 255 255 255<br>
STATUS ON<br> KEYSIZE 18 12<br> LABEL<br> TYPE BITMAP<br> SIZE MEDIUM<br> COLOR 0 0 89<br> END<br> END</div>
<div> # Web interface definition. Only the template parameter<br> # is required to display a map. See MapServer documentation<br> WEB<br> # Set IMAGEPATH to the path where MapServer should<br> # write its output.<br>
IMAGEPATH "\ms4w\tmp\ms_tmp\"</div>
<div> # Set IMAGEURL to the url that points to IMAGEPATH<br> # as defined in your web server configuration<br> IMAGEURL "/ms_tmp/"</div>
<div> # WMS server settings<br> METADATA<br> 'ows_title' 'Rail'<br> 'ows_onlineresource' '<a href="http://localhost/cgi-bin/mapserv.exe?map=C:/wwwroot/assignment3/rail.map" target="_blank">http://localhost/cgi-bin/mapserv.exe?map=C:/wwwroot/assignment3/rail.map</a>'<br>
'ows_srs' 'EPSG:4326'<br> END</div>
<div> #Scale range at which web interface will operate<br> # Template and header/footer settings<br> # Only the template parameter is required to display a map. See MapServer documentation<br> TEMPLATE 'rail.html'<br>
END</div>
<div> LAYER<br> NAME 'Rails'<br> TYPE LINE<br> DUMP true<br> TEMPLATE fooOnlyForWMSGetFeatureInfo<br> EXTENT -132.193287 28.711430 -50.854471 74.207982<br> DATA 'C:\wwwroot\assignment3\rails.shp'<br>
METADATA<br> 'ows_title' 'Rails'<br> END<br> STATUS DEFAULT<br> TRANSPARENCY 100<br> PROJECTION<br> 'proj=longlat'<br> 'ellps=WGS84'<br> 'towgs84=0,0,0,0,0,0,0'<br>
'no_defs'<br> END<br> CLASS<br> NAME 'Rails' <br> STYLE<br> WIDTH 2 <br> COLOR 146 154 155<br> END<br> END<br> END</div>
<div>END</div>
<div> </div>
<div>Please, if somebody can help me I will really appreciate. I tried so many times and now I really don't know what to do more.</div>
<div> </div>
<div>Thanks.</div>
<div> </div>
<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br>