<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">Then it sounds like a bug in
Mapserver: WMS + Mapserver-with-CLASS + 24bit-raster-in-PostGIS =
error<br>
<br>
You need to file it with Mapserver (not here at MS4W which is just
a packaging of Mapserver, GDAL, apache, etc)<br>
<pre class="moz-signature" cols="72">Best Regards,
Brent Fraser</pre>
On 11/27/2012 9:04 AM, José Pedro Santos wrote:<br>
</div>
<blockquote cite="mid:BLU162-W297A5C0472CE86AAF7CDAE05E0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<div dir="ltr">
My raster file have 3 Bands:<br>
<br>
Band 1 Block=7541x6753 Type=Byte, ColorInterp=Undefined<br>
NoData Value=0<br>
Overviews: arbitrary<br>
Band 2 Block=7541x6753 Type=Byte, ColorInterp=Undefined<br>
NoData Value=0<br>
Overviews: arbitrary<br>
Band 3 Block=7541x6753 Type=Byte, ColorInterp=Undefined<br>
NoData Value=0<br>
Overviews: arbitrary<br>
<br>
I manage to see other raster with just one band. <br>
<br>
Any sugestion to this one? <br>
<br>
Thanks for your help.<br>
<br>
Best Regards,<br>
José Santos <br>
<br>
<div>
<hr id="stopSpelling">Date: Tue, 27 Nov 2012 07:42:30 -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">And how many bands does GDAL
think the raster has? What is the result of <br>
<br>
gdalinfo "PG:host=localhost port=5432
dbname='Environment_Models' user='postgres'
password='postgres' schema='public'
table='africarastercerto' mode='2'"<br>
<br>
<pre class="ecxmoz-signature">Best Regards,
Brent Fraser</pre>
On 11/27/2012 3:26 AM, José Pedro Santos wrote:<br>
</div>
<blockquote
cite="mid:BLU162-W526D8906E466F1328237CDE05E0@phx.gbl">
<style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
--></style>
<div dir="ltr"> Hi Brent,<br>
<br>
Thanks for your reply. <br>
<br>
I did that but don't work. When I remove PROCESSING
"BANDS=1,2,3" MapServer assumes that is only one band so
he retrieve the result of just one. <br>
I have the class parameters like this:<br>
<br>
CLASS<br>
NAME "near white"<br>
EXPRESSION ([red] > 25 AND [green] > 25 AND [blue]
> 25)<br>
STYLE<br>
COLOR 0 0 255<br>
END # end parameter style<br>
END # end parameter class<br>
<br>
CLASS<br>
NAME "white1"<br>
EXPRESSION ([red] > 200 AND [green] > 200 AND
[blue] > 200)<br>
STYLE<br>
COLOR 0 255 0<br>
END # end parameter style<br>
END # end parameter class<br>
<br>
CLASS<br>
NAME "white2"<br>
EXPRESSION ([red] > 200 AND [green] > 200 AND
[blue] > 200)<br>
STYLE<br>
COLOR 255 0 0<br>
END # end parameter style<br>
END # end parameter class<br>
<br>
I already did that with 1 CLASS, 2 and finally 3. None of
this works. <br>
<br>
Any suggestion?<br>
<br>
Best Regards,<br>
José Santos <br>
<br>
<div>
<hr id="ecxstopSpelling">Date: Mon, 26 Nov 2012 09:08:40
-0700<br>
From: <a moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:bfraser@geoanalytic.com">bfraser@geoanalytic.com</a><br>
To: <a moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:zpsantos1@hotmail.com">zpsantos1@hotmail.com</a><br>
CC: <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>
<div class="ecxmoz-cite-prefix">Remove all your
PROCESSING directives for the layer (see my previous
email for details).<br>
<pre class="ecxmoz-signature">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">
<style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{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 moz-do-not-send="true"
class="ecxmoz-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%2c-34.8229%2c60.0032%2c38.0053&WIDTH=700&HEIGHT=500&FORMAT=image/png%3bmode=24bit"
target="_blank">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 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>
> 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 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>
>
_______________________________________________<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="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>