Ciao Marco,
can you share a small sample of the data for us to test?
That said, can you also paste here the content of the mosaic.properties file?
Regards,
Simone Giannecchini
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
Ing. Simone Giannecchini
@simogeo
Founder/Director
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate.
Il loro utilizzo è consentito esclusivamente al destinatario del
messaggio, per le finalità indicate nel messaggio stesso. Qualora
riceviate questo messaggio senza esserne il destinatario, Vi preghiamo
cortesemente di darcene notizia via e-mail e di procedere alla
distruzione del messaggio stesso, cancellandolo dal Vostro sistema.
Conservare il messaggio stesso, divulgarlo anche in parte,
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità
diverse, costituisce comportamento contrario ai principi dettati dal
D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely
for the attention and use of the named addressee(s) and may be
confidential or proprietary in nature or covered by the provisions of
privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New
Data Protection Code).Any use not in accord with its purpose, any
disclosure, reproduction, copying, distribution, or either
dissemination, either whole or partial, is strictly forbidden except
previous formal approval of the named addressee(s). If you are not the
intended recipient, please contact immediately the sender by
telephone, fax or e-mail and delete the information in this message
that has been received in error. The sender does not give any warranty
or accept liability as the content, accuracy or completeness of sent
messages and accepts no responsibility for changes made after they
were sent or for other risks which arise as a result of e-mail
transmission, viruses, etc.
On Tue, Jun 9, 2015 at 2:15 PM, Marco Colasurdo <m.colasu86@anonymised.com> wrote:
Hi all,
I'm using GeoServer 2.6.0, and I've correctly published a 3-band raster, on
which I have applied a style with coninuous values to view only the first
band.
The problem is that when I open the Layer Preview, I see the raster with
only one color, but zooming I'm able to see the correct style with all
colors that I've applied.
Does anyone knows why?
Geoserver version : 2.6.0
SLD used is:
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="
http://www.opengis.net/sld StyledLayerDescriptor.xsd" 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">;
<NamedLayer>
<Name> Name </Name>
<UserStyle>
<Title> Title </Title>
<FeatureTypeStyle>
<Rule>
<RasterSymbolizer>
<ChannelSelection>
<GrayChannel>
<SourceChannelName>1</SourceChannelName>
</GrayChannel>
</ChannelSelection>
<ColorMap>
<ColorMapEntry color="#000000" quantity="-9999" opacity="0.0"
label="No data"/>
<ColorMapEntry color="#FFBEFF" quantity="0" label="0"/>
<ColorMapEntry color="#FF96FF" quantity="0.0285714" label=""/>
<ColorMapEntry color="#FF64FF" quantity="0.0571429" label=""/>
<ColorMapEntry color="#FF00FF" quantity="0.0857143" label=""/>
<ColorMapEntry color="#E100FF" quantity="0.114286" label=""/>
<ColorMapEntry color="#BE00FF" quantity="0.142857" label=""/>
<ColorMapEntry color="#9600FF" quantity="0.171429" label=""/>
<ColorMapEntry color="#6E00FF" quantity="0.2" label="20"/>
<ColorMapEntry color="#4600FF" quantity="0.228571" label=""/>
<ColorMapEntry color="#0000FF" quantity="0.257143" label=""/>
<ColorMapEntry color="#0032FF" quantity="0.285714" label=""/>
<ColorMapEntry color="#0064FF" quantity="0.314286" label=""/>
<ColorMapEntry color="#0096FF" quantity="0.342857" label=""/>
<ColorMapEntry color="#00AFFF" quantity="0.371429" label=""/>
<ColorMapEntry color="#00C8FF" quantity="0.4" label="40"/>
<ColorMapEntry color="#00E3FF" quantity="0.428571" label=""/>
<ColorMapEntry color="#00FFFF" quantity="0.457143" label=""/>
<ColorMapEntry color="#00FFC8" quantity="0.485714" label=""/>
<ColorMapEntry color="#00FF96" quantity="0.514286" label=""/>
<ColorMapEntry color="#00FF64" quantity="0.542857" label=""/>
<ColorMapEntry color="#00FF00" quantity="0.571429" label=""/>
<ColorMapEntry color="#64FF00" quantity="0.6" label="60"/>
<ColorMapEntry color="#96FF00" quantity="0.628571" label=""/>
<ColorMapEntry color="#C8FF00" quantity="0.657143" label=""/>
<ColorMapEntry color="#EBFF00" quantity="0.685714" label=""/>
<ColorMapEntry color="#FFFF00" quantity="0.714286" label=""/>
<ColorMapEntry color="#FFDC00" quantity="0.742857" label=""/>
<ColorMapEntry color="#FFBE00" quantity="0.771429" label=""/>
<ColorMapEntry color="#FFAA00" quantity="0.8" label="80"/>
<ColorMapEntry color="#FF9600" quantity="0.828571" label=""/>
<ColorMapEntry color="#FF7D00" quantity="0.857143" label=""/>
<ColorMapEntry color="#FF6400" quantity="0.885714" label=""/>
<ColorMapEntry color="#FF4100" quantity="0.914286" label=""/>
<ColorMapEntry color="#FF0000" quantity="0.942857" label=""/>
<ColorMapEntry color="#EB0000" quantity="0.971429" label=""/>
<ColorMapEntry color="#D90000" quantity="1" label="100"/>
</ColorMap>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Gdalinfo output:
Size is 831, 698
Coordinate System is:
GEOGCS["ETRS89",
DATUM["European_Terrestrial_Reference_System_1989",
SPHEROID["GRS 1980",6378137,298.2572221010002,
AUTHORITY["EPSG","7019"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6258"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433],
AUTHORITY["EPSG","4258"]]
Origin = (-17.000000000000000,80.000000000000000)
Pixel Size = (0.067388688327316,-0.067335243553009)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( -17.0000000, 80.0000000) ( 17d 0' 0.00"W, 80d 0' 0.00"N)
Lower Left ( -17.0000000, 33.0000000) ( 17d 0' 0.00"W, 33d 0' 0.00"N)
Upper Right ( 39.0000000, 80.0000000) ( 39d 0' 0.00"E, 80d 0' 0.00"N)
Lower Right ( 39.0000000, 33.0000000) ( 39d 0' 0.00"E, 33d 0' 0.00"N)
Center ( 11.0000000, 56.5000000) ( 11d 0' 0.00"E, 56d30' 0.00"N)
Band 1 Block=831x1 Type=Float32, ColorInterp=Gray
Min=0.000 Max=0.950
Minimum=0.000, Maximum=0.950, Mean=0.389, StdDev=0.214
NoData Value=-9999
Metadata:
STATISTICS_MAXIMUM=0.94999998807907
STATISTICS_MEAN=0.38901697872035
STATISTICS_MINIMUM=0
STATISTICS_STDDEV=0.21422942111317
Band 2 Block=831x1 Type=Float32, ColorInterp=Undefined
Min=20.000 Max=372.000
Minimum=20.000, Maximum=372.000, Mean=63.815, StdDev=94.819
NoData Value=-9999
Metadata:
STATISTICS_MAXIMUM=372
STATISTICS_MEAN=63.815256912478
STATISTICS_MINIMUM=20
STATISTICS_STDDEV=94.81900812511
Band 3 Block=831x1 Type=Float32, ColorInterp=Undefined
Min=-0.004 Max=0.330
Minimum=-0.004, Maximum=0.330, Mean=0.055, StdDev=0.065
NoData Value=-9999
Metadata:
STATISTICS_MAXIMUM=0.32969999313354
STATISTICS_MEAN=0.055351323014081
STATISTICS_MINIMUM=-0.0040000001899898
STATISTICS_STDDEV=0.064768450167203
The plugin used is ImageMosaic.
Thank you for your help
Best regards,
Marco
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users