<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'>
My raster file have 3 Bands:<br><br>Band 1 Block=7541x6753 Type=Byte, ColorInterp=Undefined<br>&nbsp; NoData Value=0<br>&nbsp; Overviews: arbitrary<br>Band 2 Block=7541x6753 Type=Byte, ColorInterp=Undefined<br>&nbsp; NoData Value=0<br>&nbsp; Overviews: arbitrary<br>Band 3 Block=7541x6753 Type=Byte, ColorInterp=Undefined<br>&nbsp; NoData Value=0<br>&nbsp; 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&nbsp; <br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Tue, 27 Nov 2012 07:42:30 -0700<br>From: bfraser@geoanalytic.com<br>To: zpsantos1@hotmail.com<br>CC: ms4w-users@lists.maptools.org<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?&nbsp; What is the result of <br>
      <br>
      gdalinfo&nbsp; "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>
        &nbsp; NAME "near white"<br>
        &nbsp; EXPRESSION ([red] &gt; 25 AND [green] &gt; 25 AND [blue] &gt;
        25)<br>
        &nbsp; STYLE<br>
        &nbsp;&nbsp;&nbsp; COLOR 0 0 255<br>
        END # end parameter style<br>
        END # end parameter class<br>
        <br>
        CLASS<br>
        &nbsp;NAME "white1"<br>
        &nbsp;EXPRESSION ([red] &gt; 200 AND [green] &gt; 200 AND [blue] &gt;
        200)<br>
        &nbsp;STYLE<br>
        &nbsp;&nbsp; COLOR 0 255 0<br>
        END # end parameter style<br>
        END # end parameter class<br>
        <br>
        CLASS<br>
        &nbsp;NAME "white2"<br>
        &nbsp;EXPRESSION ([red] &gt; 200 AND [green] &gt; 200 AND [blue] &gt;
        200)<br>
        &nbsp;STYLE<br>
        &nbsp;&nbsp; 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 class="ecxmoz-txt-link-abbreviated" href="mailto:bfraser@geoanalytic.com">bfraser@geoanalytic.com</a><br>
          To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:zpsantos1@hotmail.com">zpsantos1@hotmail.com</a><br>
          CC: <a 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>
              &lt;ServiceExceptionReport
              version="1.1.1"&gt;&lt;ServiceException&gt;<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>
              &lt;/ServiceException&gt;&lt;/ServiceExceptionReport&gt;<br>
              <br>
              <b>With this link</b>:
              <a class="ecxmoz-txt-link-freetext" href="http://localhost/cgi-bin/mapserv?map=/var/www/africarastercrt.map&amp;VERSION=1.1.1&amp;Request=GetMap&amp;LAYERS=fapartest&amp;STYLES=&amp;SRS=EPSG:4326&amp;BBOX=-26.0057%2c-34.8229%2c60.0032%2c38.0053&amp;WIDTH=700&amp;HEIGHT=500&amp;FORMAT=image/png%3bmode=24bit" target="_blank">http://localhost/cgi-bin/mapserv?map=/var/www/africarastercrt.map&amp;VERSION=1.1.1&amp;Request=GetMap&amp;LAYERS=fapartest&amp;STYLES=&amp;SRS=EPSG:4326&amp;BBOX=-26.0057,-34.8229,60.0032,38.0053&amp;WIDTH=700&amp;HEIGHT=500&amp;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>
              &nbsp;NAME png24<br>
              &nbsp;DRIVER "AGG/PNG"<br>
              &nbsp;MIMETYPE "image/png;mode=24bit"<br>
              &nbsp;EXTENSION PNG<br>
              &nbsp;IMAGEMODE RGB<br>
              END # end of parameter Output<br>
              <br>
              <br>
              CLASS<br>
              &nbsp; NAME "near white"<br>
              &nbsp; EXPRESSION ([red] &gt; 200 AND [green] &gt; 200 AND
              [blue] &gt; 200)<br>
              &nbsp; STYLE<br>
              &nbsp;&nbsp;&nbsp; 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>&gt; Date: Fri, 23 Nov 2012 15:43:24 -0400<br>
                &gt; From: <a class="ecxmoz-txt-link-abbreviated" href="mailto:jmckenna@gatewaygeomatics.com">jmckenna@gatewaygeomatics.com</a><br>
                &gt; To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:ms4w-users@lists.maptools.org">ms4w-users@lists.maptools.org</a><br>
                &gt; Subject: Re: [MS4W-Users] Image 24 Bit<br>
                &gt; <br>
                &gt; Jose, see response below from Mike.<br>
                &gt; <br>
                &gt; (I also regularly use AGG/PNG for 24bit, as that
                was my first response<br>
                &gt; earlier...sorry just trying to debug for Jose..hard
                for me without the<br>
                &gt; data in my hands)<br>
                &gt; <br>
                &gt; -jeff<br>
                &gt; <br>
                &gt; <br>
                &gt; <br>
                &gt; On 12-11-23 3:37 PM, Smith, Michael
                ERDC-RDE-CRREL-NH wrote:<br>
                &gt; &gt; Jeff,<br>
                &gt; &gt; <br>
                &gt; &gt; That¹s only for reading imagery.<br>
                &gt; &gt; <br>
                &gt; &gt; AGG/PNG renderer will certainly do 24 bit
                output. I use (in cgi mode)<br>
                &gt; &gt; map_imagetype=png24,<br>
                &gt; &gt; <br>
                &gt; &gt; For a wms image request, one should use
                format=image/png;mode=24bit<br>
                &gt; &gt; <br>
                &gt; &gt; Mike<br>
                &gt; &gt; <br>
                &gt; <br>
                &gt; <br>
                &gt; <br>
                &gt; -- <br>
                &gt; Jeff McKenna<br>
                &gt; MapServer Consulting and Training Services<br>
                &gt; <a class="ecxmoz-txt-link-freetext" href="http://www.gatewaygeomatics.com/" target="_blank">http://www.gatewaygeomatics.com/</a><br>
                &gt; <br>
                &gt; <br>
                &gt; _______________________________________________<br>
                &gt; MS4W-Users mailing list<br>
                &gt; <a class="ecxmoz-txt-link-abbreviated" href="mailto:MS4W-Users@lists.maptools.org">MS4W-Users@lists.maptools.org</a><br>
                &gt; <a 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 class="ecxmoz-txt-link-abbreviated" href="mailto:MS4W-Users@lists.maptools.org">MS4W-Users@lists.maptools.org</a>
<a 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 class="ecxmoz-txt-link-abbreviated" href="mailto:MS4W-Users@lists.maptools.org">MS4W-Users@lists.maptools.org</a>
<a 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></body>
</html>