<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">This is the MS4W list so you may want
to ask your question on the Mapserver users list.<br>
<br>
I'd experiment with removing some of the PROCESSING directives.
Take out the DITHER one, it's not useful with the input and output
are 24-bit images. And I'd consider removing the SCALE=AUTO,; it
may be messing with your input data and cause the CLASS
EXPRESSIONS to not be useful.<br>
<br>
And I see that your EXPRESSIONS are operating on [PIXEL] which is
fine for one band input images, but invalid for 3 band images (use
[RED],[GREEN], and [BLUE] for 3-band images). <br>
<pre class="moz-signature" cols="72">Best Regards,
Brent Fraser</pre>
On 11/23/2012 9:28 AM, José Pedro Santos wrote:<br>
</div>
<blockquote cite="mid:BLU162-W24382AC34EB01DA9CF4E57E05A0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<div dir="ltr">
Hi Brent, <br>
<br>
Thanks for the reply. Im no using MS4W. In working on Linux and
using the version 6.2.0<br>
<br>
My mapfile layer is like this:<br>
<br>
LAYER # beginning of the layer parameter<br>
NAME "fapartest"<br>
TYPE RASTER<br>
STATUS ON<br>
DATA "PG:host=localhost port=5432 dbname='Environment_Models'
user='postgres' password='postgres' schema='public'
table='africarastercerto' mode='2'"<br>
PROCESSING "NODATA=0"<br>
PROCESSING "SCALE=AUTO"<br>
PROCESSING "BANDS=1,2,3"<br>
PROCESSING "DITHER=YES"<br>
<br>
CLASS # beginning of the class parameter<br>
NAME "Null"<br>
EXPRESSION "0"<br>
STYLE<br>
COLOR 255 255 255<br>
END # end style for class Null<br>
END # end class for class Null<br>
<br>
CLASS # beginning of the class parameter<br>
NAME "Very Low"<br>
EXPRESSION ([pixel] > 0 AND [pixel] < 47)<br>
STYLE<br>
COLOR 243 231 172<br>
END # end style for class<br>
END # end class for class very Low<br>
<br>
CLASS # beginning of the class parameter<br>
NAME "Low"<br>
EXPRESSION ([pixel] > 47 AND [pixel] < 85)<br>
STYLE<br>
COLOR 132 205 51<br>
END # end style for class<br>
END # end class for class Low<br>
<br>
CLASS # beginning of the class parameter<br>
NAME "Moderate"<br>
EXPRESSION ([pixel] > 85 AND [pixel] < 100)<br>
STYLE<br>
COLOR 95 202 31<br>
END # end style for class<br>
END # end class for class Moderate<br>
<br>
CLASS # beginning of the class parameter<br>
NAME "High"<br>
EXPRESSION ([pixel] > 100 AND [pixel] < 125)<br>
STYLE<br>
COLOR 2 180 0<br>
END # end style for class<br>
END # end class for class high<br>
CLASS # beginning of the class parameter<br>
NAME "Vey High"<br>
EXPRESSION ([pixel] > 125 AND [pixel] < 255)<br>
<br>
<br>
I did the same to another raster file and works (only 1 band).
This have 3 bands and when I change the parameter PROCESSING
"BANDS=1,2,3" to PROCESSING "BANDS=1,2" I have result but is a
blank image. <br>
<br>
Best Regards,<br>
José Santos<br>
<br>
<br>
<div>
<hr id="stopSpelling">Date: Fri, 23 Nov 2012 09:02:37 -0700<br>
From: <a class="moz-txt-link-abbreviated" href="mailto:bfraser@geoanalytic.com">bfraser@geoanalytic.com</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:zpsantos1@hotmail.com">zpsantos1@hotmail.com</a><br>
CC: <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>
<div class="ecxmoz-cite-prefix">Which version of Mapserver (or
MS4W) are you using?<br>
<br>
I think this error has to do with processing the input
imagery in your LAYER, not the generation of the output
image.<br>
How are you trying to classify your input data? What does
your LAYER object definition look like in your map file?<br>
<pre class="ecxmoz-signature">Best Regards,
Brent Fraser</pre>
On 11/23/2012 8:33 AM, José Pedro Santos wrote:<br>
</div>
<blockquote
cite="mid:BLU162-W8D9BEBD48921DED6DBDBFE05A0@phx.gbl">
<style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
--></style>
<div dir="ltr"> <br>
<br>
<div>> Date: Fri, 23 Nov 2012 09:59:43 -0400<br>
> From: <a moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:jmckenna@gatewaygeomatics.com">jmckenna@gatewaygeomatics.com</a><br>
> To: <a moz-do-not-send="true"
class="ecxmoz-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>
> On 12-11-23 9:27 AM, José Pedro Santos wrote:<br>
> > Dear all,<br>
> > <br>
> > I'm attempting to classify images of 24 bits
but I always have the error<br>
> > saying this: ........Unable to access file.
Attempt to classify 24bit<br>
> > image, this is unsupported.<br>
> > <br>
> > My Mapfile is this one:<br>
> > <br>
> > ...........<br>
> > <br>
> > IMAGETYPE "png24"<br>
> > <br>
> > ..........<br>
> > <br>
> > OUTPUTFORMAT # Parameter Output<br>
> > NAME png24<br>
> > DRIVER "GD/PNG"<br>
> > MIMETYPE "image/png"<br>
> > EXTENSION PNG<br>
> > IMAGEMODE RGBA<br>
> > TRANSPARENT ON<br>
> > END # end of parameter Output<br>
> > <br>
> > <br>
> > and in the expression of GetMap I use
FORMAT=image/png<br>
> > <br>
> > In the Layer description I have the special
processing directives to<br>
> > processed the 3 bands. But If put just 2
appear one empty image not the<br>
> > error. I already read some documentation but I
can't succeed.<br>
> > <br>
> > any idea?<br>
> > <br>
> > Many thanks and best regards,<br>
> > <br>
> > José Santos<br>
> <br>
> Hello José,<br>
> <br>
> It is difficult for me to comment without testing
your local file.<br>
> However if I were you I might:<br>
> <br>
> - in your OUTPUTFORMAT object I would:<br>
> - change "GD/PNG" to "AGG/PNG"<br>
> - change "RGBA" to "RGB"<br>
> - remove "TRANSPARENT ON"<br>
> <br>
> <br>
> -jeff<br>
> <br>
> <br>
> <br>
> <br>
> -- <br>
> Jeff McKenna<br>
> MapServer Consulting and Training Services<br>
> <a moz-do-not-send="true"
class="ecxmoz-txt-link-freetext"
href="http://www.gatewaygeomatics.com/"
target="_blank">http://www.gatewaygeomatics.com/</a><br>
> <br>
> <br>
Hi Jeff, <br>
<br>
Thanks again for your reply. I try to change but didn't
work. Do you think that have something to do with the
Format=image/png?? Just PNG don't reply 8 bits images?<br>
<br>
Also I have another raster image but that one works
well. This have 3 bands and values between 0 and 255.
I'm using MapServer version 6.2. <br>
<br>
Another idea? <br>
<br>
Best Regards,<br>
José Santos <br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
> _______________________________________________<br>
> MS4W-Users mailing list<br>
> <a moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:MS4W-Users@lists.maptools.org">MS4W-Users@lists.maptools.org</a><br>
> <a moz-do-not-send="true"
class="ecxmoz-txt-link-freetext"
href="http://lists.maptools.org/mailman/listinfo/ms4w-users"
target="_blank">http://lists.maptools.org/mailman/listinfo/ms4w-users</a><br>
</div>
</div>
<br>
<fieldset class="ecxmimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
MS4W-Users mailing list
<a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated" href="mailto:MS4W-Users@lists.maptools.org">MS4W-Users@lists.maptools.org</a>
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/ms4w-users" target="_blank">http://lists.maptools.org/mailman/listinfo/ms4w-users</a>
</pre>
</blockquote>
<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>