Hi and thanks again for your response. I have tried various SLD's to no avail. The problem occurs with the standard "raster" SLD that comes with GeoServer.
In a separate email to your personal account, I have sent the GeoTIFF data file that reproduces the problem. It is about 4 MB so I hope it goes through. Please let me know if you do not receive it. When you do, thanks so much for loading it into GeoServer and taking a look at the behavior. Best, Scott -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Andrea Aime Sent: Thursday, August 11, 2011 1:02 PM To: Scott Ellis Cc: [email protected] Subject: Re: [Geoserver-users] problem with WMS raster display On Thu, Aug 11, 2011 at 8:52 PM, Scott Ellis <[email protected]> wrote: > Hi and thanks for your response. > > > > No I'm not using contrast stretching in the raster symbolizer although I did > try that and it did not solve the problem. So are you saying the way > GeoServer WMS is working in this case is by design? I'm pretty sure the > screenshot I posted would be unacceptable to most users. Or is it assumed > that raster data is always preprocessed to fit nicely in the 0 to 255 range > across the file before using GeoServer WMS on it? > > > > Using MapServer WMS I was able to solve the problem by using the following > processing directive in the mapfile: > > > > PROCESSING "SCALE=52,2047" > > > > While the default setting of: > > > > PROCESSING "SCALE=AUTO" > > > > produces the same result as GeoServer. > > > > Is there anything equivalent to that setting in GeoServer? Do you think I > could maybe fix this in the GeoServer java code? If so, can you point me to > the particular java classes that cause this behavior so I can try to fix it? Well, the thing is, GeoServer should display the raster exactly as is, without any contrast stretching, unless you specify one. Please also share the sld you're using along with the layer. Can you share a sample of your data? I've never seen the behavior you report, but then again, I mostly work with one byte gray and rbg images. Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
