<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Remove all your PROCESSING directives
for the layer (see my previous email for details).<br>
<pre class="moz-signature" cols="72">Best Regards,
Brent Fraser</pre>
On 11/26/2012 8:55 AM, José Pedro Santos wrote:<br>
</div>
<blockquote cite="mid:BLU162-W522B405B8557FB9618E9AE05F0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<div dir="ltr">
Dear all,<br>
<br>
I try do change like Jeff propose but I can't succeed..I get
always the following error: <br>
<br>
<ServiceExceptionReport
version="1.1.1"><ServiceException><br>
msDrawMap(): Image handling error. Failed to draw layer named
'fapartest'.<br>
drawGDAL(): Unable to access file. Attempt to classify 24bit
image, this is unsupported.<br>
</ServiceException></ServiceExceptionReport><br>
<br>
<b>With this link</b>:
<a class="moz-txt-link-freetext" href="http://localhost/cgi-bin/mapserv?map=/var/www/africarastercrt.map&VERSION=1.1.1&Request=GetMap&LAYERS=fapartest&STYLES=&SRS=EPSG:4326&BBOX=-26.0057,-34.8229,60.0032,38.0053&WIDTH=700&HEIGHT=500&FORMAT=image/png;mode=24bit">http://localhost/cgi-bin/mapserv?map=/var/www/africarastercrt.map&VERSION=1.1.1&Request=GetMap&LAYERS=fapartest&STYLES=&SRS=EPSG:4326&BBOX=-26.0057,-34.8229,60.0032,38.0053&WIDTH=700&HEIGHT=500&FORMAT=image/png;mode=24bit</a><br>
<br>
But I make some tests and I don't think that is OUTPUTFORMAT
that have the error. I have on the LAYER section this parameter:
PROCESSING "BANDS=1,2,3 <br>
because my image is a RGB image (0 - 255) but when I put only
one band or two bands the result is the color from the first
band (like explain on the raster data access) but only the color
and not the layer. I have the outformat and the class parameter
like this: <br>
<br>
OUTPUTFORMAT # Parameter Output<br>
NAME png24<br>
DRIVER "AGG/PNG"<br>
MIMETYPE "image/png;mode=24bit"<br>
EXTENSION PNG<br>
IMAGEMODE RGB<br>
END # end of parameter Output<br>
<br>
<br>
CLASS<br>
NAME "near white"<br>
EXPRESSION ([red] > 200 AND [green] > 200 AND [blue]
> 200)<br>
STYLE<br>
COLOR 0 0 255<br>
END # end parameter style<br>
END # end parameter class<br>
<br>
I working with this since a long time and I don't understand
why.. Also I have another raster image with just one band and
works fine...any ideas/suggestions??<br>
<br>
Best Regards and thanks,<br>
José Santos<br>
<br>
<br>
<div>> Date: Fri, 23 Nov 2012 15:43:24 -0400<br>
> From: <a class="moz-txt-link-abbreviated" href="mailto:jmckenna@gatewaygeomatics.com">jmckenna@gatewaygeomatics.com</a><br>
> To: <a class="moz-txt-link-abbreviated" href="mailto:ms4w-users@lists.maptools.org">ms4w-users@lists.maptools.org</a><br>
> Subject: Re: [MS4W-Users] Image 24 Bit<br>
> <br>
> Jose, see response below from Mike.<br>
> <br>
> (I also regularly use AGG/PNG for 24bit, as that was my
first response<br>
> earlier...sorry just trying to debug for Jose..hard for
me without the<br>
> data in my hands)<br>
> <br>
> -jeff<br>
> <br>
> <br>
> <br>
> On 12-11-23 3:37 PM, Smith, Michael ERDC-RDE-CRREL-NH
wrote:<br>
> > Jeff,<br>
> > <br>
> > That¹s only for reading imagery.<br>
> > <br>
> > AGG/PNG renderer will certainly do 24 bit output. I
use (in cgi mode)<br>
> > map_imagetype=png24,<br>
> > <br>
> > For a wms image request, one should use
format=image/png;mode=24bit<br>
> > <br>
> > Mike<br>
> > <br>
> <br>
> <br>
> <br>
> -- <br>
> Jeff McKenna<br>
> MapServer Consulting and Training Services<br>
> <a class="moz-txt-link-freetext" href="http://www.gatewaygeomatics.com/">http://www.gatewaygeomatics.com/</a><br>
> <br>
> <br>
> _______________________________________________<br>
> MS4W-Users mailing list<br>
> <a class="moz-txt-link-abbreviated" href="mailto:MS4W-Users@lists.maptools.org">MS4W-Users@lists.maptools.org</a><br>
> <a class="moz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/ms4w-users">http://lists.maptools.org/mailman/listinfo/ms4w-users</a><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
MS4W-Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:MS4W-Users@lists.maptools.org">MS4W-Users@lists.maptools.org</a>
<a class="moz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/ms4w-users">http://lists.maptools.org/mailman/listinfo/ms4w-users</a>
</pre>
</blockquote>
<br>
</body>
</html>