<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<br><br><div><div id="SkyDrivePlaceholder"></div>> Date: Tue, 6 Nov 2012 11:59:51 -0400<br>> From: jmckenna@gatewaygeomatics.com<br>> To: ms4w-users@lists.maptools.org<br>> Subject: Re: [MS4W-Users] Attempt to classify 24bit image<br>> <br>> On 12-11-06 11:37 AM, José Pedro Santos wrote:<br>> > Dear all,<br>> > <br>> > I'm trying to visualize one image of 24bit image as WMS service but when<br>> > I try to use the function get map with output PNG I have this error:<br>> > <br>> > <ServiceExceptionReport version="1.1.1"><ServiceException><br>> > msDrawMap(): Image handling error. Failed to draw layer named<br>> > 'africa_012003'.<br>> > drawGDAL(): Unable to access file. Attempt to classify 24bit image, this<br>> > is unsupported.<br>> > </ServiceException></ServiceExceptionReport><br>> > <br>> > So, I change the mapfile "Imagetype" to png24 and the error was the same<br>> > mostly because I have to put IMAGEMODE PC256 because with RGB don't work.<br>> > <br>> > I already try to change to JPEG but when I do that said:<br>> > loadOutputFormat(): General error message. OUTPUTFORMAT clause<br>> > references driver GD/JPEG, but this driver isn't configured.<br>> > <br>> > Some ideas?<br>> <br>> Hello José,<br>> <br>> Are you configuring your different output formats with the OUTPUTFORMAT<br>> object? Many examples live at:<br>> http://www.mapserver.org/mapfile/outputformat.html Maybe you could<br>> paste your outputformat objects from your mapfile here for the mailing<br>> list to look at.<br>> <br>> -jeff<br>> <br>> <br>> <br>> -- <br>> Jeff McKenna<br>> MapServer Consulting and Training Services<br>> http://www.gatewaygeomatics.com/<br>> <br><br><br>Many thanks for your reply Jeff, <br><br>I only have one layer so I just put only one Output (I don' t know if is correct like that). The mapfile worked fine with one raster image with 8bit and 1 band. This new file have 3 bands and is a 24bit image<br><br><br>MAP # Start of Mapfile<br> NAME "africa_012003"<br> STATUS ON<br> SIZE 600 400<br> EXTENT -31.269 -54.464 63.503 39.727<br> UNITS METERS<br> IMAGECOLOR 10 10 15<br> IMAGETYPE "png"<br><br>PROJECTION # parameter projection<br> "init=epsg:4326"<br>END # End of parameter projection<br><br>WEB # Parameter WEB<br> METADATA<br> "WMS_TITLE" "WMS Layers"<br> "WMS_ABSTRACT" "Service WMS for all layers inside PostgreSQL DB"<br> "WMS_ONLINERESOURCE" "http://localhost/cgi-bin/mapserv?map=var/www/africaraster2.map&"<br> "WMS_SRS" "EPSG:4326"<br> "WMS_ENABLE_REQUEST" "* !GetFeatureInfo"<br> "WMS_KEYWORDLIST" "Africa, Environment Models"<br> "WMS_CONTACTPERSON" "Santos"<br>END # End parameter Metadata<br>END # End parameter WEB<br><br>OUTPUTFORMAT # Parameter Outputformat<br> NAME "png"<br> DRIVER AGG/PNG<br> MIMETYPE "image/png"<br> IMAGEMODE RGB<br> EXTENSION "png"<br>END # End parameter Outputformat<br><br>....... On the LAYER.....<br><br>PROCESSING "NODATA=0"<br> PROCESSING "SCALE=AUTO"<br> PROCESSING "BANDS=1,2,3"<br> PROCESSING "DITHER=YES"<br><br><br><br><br>The OUTPUT when I choose GD/PNG said that is not supported but with AGG/PNG that error message disappear. <br><br>Best Regards<br>José Santos <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>> <br>> _______________________________________________<br>> MS4W-Users mailing list<br>> MS4W-Users@lists.maptools.org<br>> http://lists.maptools.org/mailman/listinfo/ms4w-users<br></div>                                            </div></body>
</html>