<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; 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 "hillshade"</div>
<div> TYPE raster</div>
<div> TILEINDEX "/benchmarking/wms/2011/data/raster/DEM/bil_16int/dem_bil16int.shp"</div>
<div> PROCESSING "CLOSE_CONNECTION=DEFER"</div>
<div> PROJECTION</div>
<div> "+init=epsg:4326"</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 id="OLK_SRC_BODY_SECTION">
<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 <<a href="mailto:john.callahan@udel.edu">john.callahan@udel.edu</a>><br>
<span style="font-weight:bold">Date: </span>Mon, 17 Oct 2011 14:54:13 -0400<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>" <<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [mapserver-users] gradient display of raster DEM data<br>
</div>
<div><br>
</div>
Thanks for all your responses. I have COLORRANGE / DATARANGE working fine in my map file. Works very well. I'm also looking at using gdaldem for a more custom color scale. Thanks again.
<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>
<br>
<br>
<br>
<div class="gmail_quote">On Fri, Oct 14, 2011 at 5:49 PM, Smith, Michael ERDC-CRREL-NH
<span dir="ltr"><<a href="mailto:Michael.Smith@usace.army.mil">Michael.Smith@usace.army.mil</a>></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 <<a href="mailto:john.callahan@udel.edu" target="_blank">john.callahan@udel.edu</a>><br>
<span style="font-weight:bold">Date: </span>Fri, 14 Oct 2011 16:55:59 -0400
<div class="im"><br>
<span style="font-weight:bold">To: </span><<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>><br>
<span style="font-weight:bold">Subject: </span>[mapserver-users] gradient display of raster DEM data<br>
</div>
</div>
<div>
<div></div>
<div class="h5">
<div><br>
</div>
I know this has been asked before but I thought I'd ask to see if anything changed.
<div><br>
</div>
<div>I'm looking to display a raster digital elevation model in mapserver. My data is in flat files, img and tiff. I'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'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>
<br>
</div>
</div>
</div>
</div>
<div class="im">_______________________________________________ mapserver-users mailing list
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">
http://lists.osgeo.org/mailman/listinfo/mapserver-users</a> </div>
</span></div>
</blockquote>
</div>
<br>
</div>
_______________________________________________ mapserver-users mailing list <a href="mailto:mapserver-users@lists.osgeo.org">
mapserver-users@lists.osgeo.org</a> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">
http://lists.osgeo.org/mailman/listinfo/mapserver-users</a> </span>
</body>
</html>