<div>Thanks again for the idea of using multiple classes but I can&#39;t seem to get it to work.  Has anyone else had success with this method?  It seems as though it&#39;s applying only the first defined COLORRANGE to full range of the values in the dataset.  </div>
<div><br></div><div>I&#39;ve tried using the below syntax (only COLORRANGE and DATARANGE in each CLASS) as well as the (proposed?) block syntax as defined at <a href="http://mapserver.org/development/rfc/ms-rfc-6.html">http://mapserver.org/development/rfc/ms-rfc-6.html</a>  (which gives me errors for RANGEITEM and invalid hex color for MINCOLOR.)  </div>
<div><br></div><div>I am using MapServer 6.0.1 as part of MSW 3.0.3.</div><div><br></div><div>Incorrect image being displayed: <a href="http://i44.tinypic.com/2hdwuuu.jpg">http://i44.tinypic.com/2hdwuuu.jpg</a></div><div>
<br></div><div>Correct image, created through QGIS: <a href="http://i42.tinypic.com/21d2x5h.jpg">http://i42.tinypic.com/21d2x5h.jpg</a></div><div><br></div><div><br></div><div>Here is the LAYER portion of my map file. Is there anything obvious I should change?   Thanks for any suggestions.</div>
<div><br></div><div>***********</div><div>  LAYER</div><div>    NAME &#39;de_dem2m&#39;</div><div>    TYPE RASTER</div><div>    DATA &#39;C:\data\delaware2m.img&#39;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>PROCESSING &quot;CLOSE_CONNECTION=DEFER&quot;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>EXTENT 166773.496 49314.974 233217.496 204730.974</div><div>    METADATA</div><div>      &#39;ows_title&#39; &#39;Delaware DEM&#39;</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>  INCLUDE &quot;ogc_projections.map&quot;</div>
<div>      &#39;wms_include_items&#39;   &#39;all&#39;</div><div>    END</div><div>    STATUS ON</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>DUMP TRUE</div><div>    TRANSPARENCY 100</div><div>    PROJECTION</div>
<div>      &quot;init=epsg:26957&quot;</div><div>    END</div><div><br></div><div>  CLASS</div><div>   STYLE</div><div>      COLORRANGE 170 230 209 255 255 179</div><div>      DATARANGE 0.0 7.0</div><div>   END</div><div>
  END</div><div><br></div><div>  CLASS</div><div>   STYLE</div><div>      COLORRANGE 255 255 179 0 128 64</div><div>      DATARANGE 7.01 11.0</div><div>   END</div><div>  END</div><div><br></div><div>  CLASS</div><div>   STYLE</div>
<div>      COLORRANGE 0 128 64 252 186 3</div><div>      DATARANGE 11.01 14.0</div><div>   END</div><div>  END</div><div><br></div><div>  CLASS</div><div>   STYLE</div><div>     COLORRANGE 252 186 3 199 15 2</div><div>     DATARANGE 14.01 20.0</div>
<div>   END</div><div>  END</div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div>  CLASS</div><div>   STYLE</div><div>      COLORRANGE 199 15 2 105 48 13</div><div>      DATARANGE 20.01 40.0</div>
<div>   END</div><div>  END</div><div>  </div><div>  CLASS</div><div>   STYLE</div><div>      COLORRANGE 105 48 13 171 171 171</div><div>      DATARANGE 40.01 100.0</div><div>   END</div><div>  END</div><div>  </div><div>
  CLASS</div><div>   STYLE</div><div>      COLORRANGE 171 171 171 232 230 232</div><div>      DATARANGE 100.01 140.0</div><div>   END</div><div>  END</div><div>  </div><div>  END</div><div>*********************  </div><div>
<br></div><div>- John</div><div><br></div>***********************************************<br>John Callahan, Research Scientist<br>Delaware Geological Survey, University of Delaware<br>URL: <a href="http://www.dgs.udel.edu" target="_blank">http://www.dgs.udel.edu</a><br>
*************************************************<br><br>
<br><br><div class="gmail_quote">On Mon, Oct 17, 2011 at 3:05 PM, Smith, Michael ERDC-CRREL-NH <span dir="ltr">&lt;<a href="mailto:Michael.Smith@usace.army.mil">Michael.Smith@usace.army.mil</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">




<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>John,</div>
<div><br>
</div>
<div>I got a larger color range by using multiple classes</div>
<div><br>
</div>
<div>
<div>LAYER</div>
<div>  NAME &quot;hillshade&quot;</div>
<div>  TYPE raster</div>
<div>  TILEINDEX &quot;/benchmarking/wms/2011/data/raster/DEM/bil_16int/dem_bil16int.shp&quot;</div>
<div>  PROCESSING &quot;CLOSE_CONNECTION=DEFER&quot;</div>
<div>  PROJECTION</div>
<div>       &quot;+init=epsg:4326&quot;</div>
<div>  END</div>
<div>  CLASS</div>
<div>    STYLE</div>
<div>      COLORRANGE  46 154 88 251 255 128 </div>
<div>      DATARANGE   1003 1800</div>
<div>    END</div>
<div>  END</div>
<div>  CLASS</div>
<div>    STYLE</div>
<div>      COLORRANGE  251 255 128 224 108 31</div>
<div>      DATARANGE   1800 2800</div>
<div>    END</div>
<div>  END</div>
<div> CLASS</div>
<div>    STYLE</div>
<div>      COLORRANGE   224 108 31  200 55 55</div>
<div>      DATARANGE    2800 3500</div>
<div>    END</div>
<div>  END</div>
<div>  CLASS</div>
<div>    STYLE</div>
<div>      COLORRANGE  200 55 55  215 244 244</div>
<div>      DATARANGE   3500 4397</div>
<div>    END</div>
<div>  END</div>
<div>END</div>
</div>
<div><br>
</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">

<span style="font-weight:bold">From: </span>John Callahan &lt;<a href="mailto:john.callahan@udel.edu" target="_blank">john.callahan@udel.edu</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Mon, 17 Oct 2011 14:54:13 -0400<br>
<span style="font-weight:bold">To: </span>&quot;<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>&quot; &lt;<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>&gt;<br>

<span style="font-weight:bold">Subject: </span>Re: [mapserver-users] gradient display of raster DEM data<br>
</div><div><div></div><div class="h5">
<div><br>
</div>
Thanks for all your responses.  I have COLORRANGE / DATARANGE working fine in my map file. Works very well.  I&#39;m also looking at using gdaldem for a more custom color scale.  Thanks again.
<div><br clear="all">
<div>- John</div>
<br>
<br>
<br>
<div class="gmail_quote">On Fri, Oct 14, 2011 at 5:49 PM, Smith, Michael ERDC-CRREL-NH
<span dir="ltr">&lt;<a href="mailto:Michael.Smith@usace.army.mil" target="_blank">Michael.Smith@usace.army.mil</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>John</div>
<div><br>
</div>
<div>The DATARANGE / COLORRANGE keywords will be fully documented by 6.2 but they have been present in MapServer for years (since 4.6 or so). </div>
<div><br>
</div>
<div>We used DATARANGE / COLORRANGE for dem display in this years FOSS4G WMS Benchmarking effort.</div>
<div><br>
</div>
<div>Mike</div>
<div><br>
</div>
<div>
<div>
<div>
<div>-- </div>
<div>Michael Smith</div>
</div>
<div>US Army Corps</div>
<div>Remote Sensing GIS/Center</div>
</div>
</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;border-bottom:medium none;border-left:medium none;padding-bottom:0in;padding-left:0in;padding-right:0in;border-top:#b5c4df 1pt solid;border-right:medium none;padding-top:3pt">

<span style="font-weight:bold">From: </span>John Callahan &lt;<a href="mailto:john.callahan@udel.edu" target="_blank">john.callahan@udel.edu</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Fri, 14 Oct 2011 16:55:59 -0400
<div><br>
<span style="font-weight:bold">To: </span>&lt;<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>[mapserver-users] gradient display of raster DEM data<br>
</div>
</div>
<div>
<div></div>
<div>
<div><br>
</div>
I know this has been asked before but I thought I&#39;d ask to see if anything changed.
<div><br>
</div>
<div>I&#39;m looking to display a raster digital elevation model in mapserver.  My data is in flat files, img and tiff.  I&#39;d like to display this data as a continuous gradient color range, rather than using CLASS categories/bins for specific colors.  Is it still
 tru ethat this is not possible, easily?</div>
<div><br>
</div>
<div>One method (passed to me on this list) was too generate the colored image I want in another program, using GMT or similar tool, then use that in mapserver.  This seems like the best option but is non-trivial to someone who hasn&#39;t done this before.  (though
 not terribly difficult.)</div>
<div><br>
</div>
<div>I also read about the use of DATARANGE and COLORRANGE in mapserver.  However, these are not in the documentation.  Are these available in trunk only?  A ticket was generated that seems to say this will be included with MS 6.2.  (<a href="http://trac.osgeo.org/mapserver/ticket/1305" target="_blank">http://trac.osgeo.org/mapserver/ticket/1305</a>)
  Any insight on whether this is still the plan?</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks for your help and advice.<br>
<div><br clear="all">
<div>- John</div>
<div><br>
</div>
***********************************************<br>
John Callahan, Research Scientist<br>
Delaware Geological Survey, University of Delaware<br>
URL: <a href="http://www.dgs.udel.edu" target="_blank">http://www.dgs.udel.edu</a><br>
*************************************************<br></div></div></div></div></span></div></blockquote></div></div></div></div></span></div></blockquote></div>