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 &quot;IMAGETYPE png&quot; in place and you&#39;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">&lt;<a href="mailto:mihaela.caluian@gmail.com">mihaela.caluian@gmail.com</a>&gt;</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 &quot;Rail&quot;<br>  # Map image size<br>  SIZE 600 400<br>  UNITS meters</div>
<div>  EXTENT -132.193287 28.711430 -50.854471 74.207982<br>  FONTSET &#39;c:/wwwroot/fonts/fontset.txt&#39;<br>  SYMBOLSET &#39;c:/wwwroot/symbols/symbols.txt&#39;<br>  PROJECTION<br>    &#39;proj=longlat&#39;<br>    &#39;ellps=WGS84&#39;<br>

    &#39;towgs84=0,0,0,0,0,0,0&#39;<br>    &#39;no_defs&#39;<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 &#39;GD/PNG&#39;<br>    MIMETYPE &#39;image/png&#39;<br>    IMAGEMODE RGBA<br>    EXTENSION &#39;png&#39;<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 &quot;\ms4w\tmp\ms_tmp\&quot;</div>
<div>    # Set IMAGEURL to the url that points to IMAGEPATH<br>    # as defined in your web server configuration<br>    IMAGEURL &quot;/ms_tmp/&quot;</div>
<div>    # WMS server settings<br>    METADATA<br>      &#39;ows_title&#39;           &#39;Rail&#39;<br>      &#39;ows_onlineresource&#39;  &#39;<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>&#39;<br>

      &#39;ows_srs&#39;             &#39;EPSG:4326&#39;<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 &#39;rail.html&#39;<br>

  END</div>
<div>  LAYER<br>    NAME &#39;Rails&#39;<br>    TYPE LINE<br>    DUMP true<br>    TEMPLATE fooOnlyForWMSGetFeatureInfo<br>  EXTENT -132.193287 28.711430 -50.854471 74.207982<br>    DATA &#39;C:\wwwroot\assignment3\rails.shp&#39;<br>

    METADATA<br>      &#39;ows_title&#39; &#39;Rails&#39;<br>    END<br>    STATUS DEFAULT<br>    TRANSPARENCY 100<br>    PROJECTION<br>    &#39;proj=longlat&#39;<br>    &#39;ellps=WGS84&#39;<br>    &#39;towgs84=0,0,0,0,0,0,0&#39;<br>

    &#39;no_defs&#39;<br>    END<br>    CLASS<br>       NAME &#39;Rails&#39; <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&#39;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>