Hi all,
I have some problem with making sld file for multiple band raster and need your help.
I have 4 band geotiff file, and I need to create a style file to display the band 1 when request. I created the file as below and register my coverage with this style. But when I go to Demo/Map Preview and try to request. It’s throw an error and a blank image on response:
2009-03-25 11:14:16,513 WARN [geotools.rendering] - 255
java.lang.ArrayIndexOutOfBoundsException: 255
at javax.media.jai.LookupTableJAI.lookup(LookupTableJAI.java:1244)
at javax.media.jai.LookupTableJAI.lookup(LookupTableJAI.java:1016)
………………
This is my style file:
<?xml version="1.0" encoding="ISO-8859-1"?><StyledLayerDescriptor version=“1.0.0” xmlns=“http://www.opengis.net/sld” xmlns:ogc=“http://www.opengis.net/ogc”
xmlns:xlink=“http://www.w3.org/1999/xlink” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=“http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd”>
smean1
smean1
smean1A sample style for rasters, good for displaying imagery
Feature
1.0
1
Regards,
Tuan Son