On Sat, Mar 12, 2011 at 1:45 PM, Michael Braudaway <[email protected]> wrote: > I have some 16-bit rasters (MrSID) that I want displayed in Geoserver 2.0.2 > but they are displaying as all black. If I create a new style similar to the > default raster.sld but with graychannel element the images display > correctly. My question: Is there a way to modify the default raster.sld so > that it handles BOTH RGB and grayscale images (8 and 16-bit)?
Not that I know of unfortunately > The images are being uploaded via REST and the user doesn't know the > bit-depth or channel composition of the images beforehand. If there is a > mechanism to inspect the image and alter the style after upload I might be > able to go that route as well. I believe you can use WCS DescribeCoverage to get some information about the structure of the coverage, such as the number of bands, though off the top of my head I don't remember if one can get the data type of each band 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 mob: +39 333 8128928 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 ------------------------------------------------------- ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
