Hello Brito,
I'm not sure if it helps as I don't have a real recipe for getting rid of that error, but I had the same issue during the last days.
It was actually related to styles having ColorMapEntry-Entries.
Once I assigned the default raster-style or SLDs without ColorMapEntries (e.g. contrast enhancement), the data was displayed, with the ColorMapEntries the behavior was ecactly as you described.
In the logs was an exception:
RasterClassifier - Parameter value`s class
(it.geosolutions.jaiext.classifier.LinearColorMap) is not an instance of the parameter class
(it.geosolutions.jaiext.classifier.ColorMapTransform) for parameter "Domain1D".
But I couldn't find anything related to it.
I ended up cleaning our geoserver, i.e. remove layers which were not needed anymore (we're in development right now) and restarting geoserver. The cleaning did not help directly, but after the restart everything was OK again. Unfortunatly, I did not restart before the cleaning, so maybe that would have helped already alone.
If wanted, I could provide some sample data, but it is probably better when you share some data.
I'm using geoserver 2.10.2.
Regards
Torsten
--------------------------------------------------------------------------
DEUTSCHE TELEKOM IT GMBH
Technology Solutions
Torsten Drey
Geo-Consultant
Oberkasseler Strasse 2, 53227 Bonn, Germany
+49 228 181-49621 (Phone)
E-Mail: ***@t-systems.com
Internet: www.telekom.com
PegaProducts: http://www.pegaware.com/
LIFE IS FOR SHARING.
You can find the obligatory information on www.telekom.com/compulsory-statement-dtit
Big changes start small - conserve resources by not printing every e-mail.
Notice: This transmittal and/or attachments may be privileged or confidential. It is intended solely for the addressee named above. Any dissemination, or copying is strictly prohibited. If you received this transmittal in error, please notify us immediately by reply and immediately delete this message and all its attachments. Thank you.
-----Ursprüngliche Nachricht-----
Von: geoserver-users-***@lists.sourceforge.net [mailto:geoserver-users-***@lists.sourceforge.net]
Gesendet: Freitag, 7. Juli 2017 07:00
An: geoserver-***@lists.sourceforge.net
Betreff: Geoserver-users Digest, Vol 134, Issue 26
Send Geoserver-users mailing list submissions to
geoserver-***@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/geoserver-users
or, via email, send a message with subject or body 'help' to
geoserver-users-***@lists.sourceforge.net
You can reach the person managing the list at
geoserver-users-***@lists.sourceforge.net
When replying, please edit your Subject line so it is more specific than "Re: Contents of Geoserver-users digest..."
Today's Topics:
1. Re: Problem with raster visualization (Brad Hards)
2. Re: Problem with raster visualization (?caro Brito)
3. Re: Problem with raster visualization (Brad Hards)
4. Re: Problem with raster visualization (Leonardo Dobles)
----------------------------------------------------------------------
Message: 1
Date: Fri, 7 Jul 2017 09:10:01 +1000
From: "Brad Hards" <***@frogmouth.net>
To: <***@gmail.com>, <geoserver-***@lists.sourceforge.net>
Subject: Re: [Geoserver-users] Problem with raster visualization
Message-ID: <033901d2f6ac$ff52ccf0$fdf866d0$@frogmouth.net>
Does it work without the M?dio label (e.g. as Medio)? I'm just guessing, but perhaps an encoding bug.
Brad
-----Original Message-----
Sent: Friday, 7 July 2017 08:51
Subject: [Geoserver-users] Problem with raster visualization
Hello Everyone,
I'm trying to publish some raster files in my project. These files are
aloccated in "data_dir\coverages\projetos" folder. It works fine with
the default raster style, but when i try to apply my personal styles
(sld), the images are no longer displayed in the geoserver's layer
viewer. However, if I click where the image suppose be, it returns the
pixel values. I mean, the raster is there, but it is not displayed
correctly (As if it were white or transparent). I've checked the SLD
file and it's correct. The same SLD works on my local server
(geoserver 2.9), but it doesn't work on my virtual server (Geoserver
2.11). Any ideas, guys?
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor 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"
version="1.0.0">
<UserLayer>
<Name>Cenario2</Name>
<UserStyle>
<Name>raster</Name>
<FeatureTypeStyle>
<FeatureTypeName>Feature</FeatureTypeName>
<Rule>
<RasterSymbolizer>
<ColorMap>
<ColorMapEntry color="#FF2600" quantity="16"
label="Muito baixo" />
<ColorMapEntry color="#FFBB00" quantity="20"
label="Baixo"/>
<ColorMapEntry color="#A4C400" quantity="24"
label="M?dio"/>
<ColorMapEntry color="#006100" quantity="34"
label="Alto"/>
</ColorMap>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</UserLayer>
</StyledLayerDescriptor>
Sorry about my english and thanks.
--
?caro Brito
------------------------------
Message: 2
Date: Thu, 6 Jul 2017 20:22:51 -0300
From: ?caro Brito <***@gmail.com>
To: Brad Hards <***@frogmouth.net>
Cc: geoserver-***@lists.sourceforge.net
Subject: Re: [Geoserver-users] Problem with raster visualization
Message-ID:
<CAJ2SkPnVvHTqKJEvr9_niN6tk=***@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hy Brad,
I removed the special character from the "m?dio" label and it didn't work.
I'm using utf-8 as encoding, it should not be a problem. Curious is that it works on geoserver 9.2 and does not work on 2.11, with the same settings.
Thank's anyway!
Does it work without the M?dio label (e.g. as Medio)? I'm just
guessing, but perhaps an encoding bug.
Brad
-----Original Message-----
Sent: Friday, 7 July 2017 08:51
Subject: [Geoserver-users] Problem with raster visualization
Hello Everyone,
I'm trying to publish some raster files in my project. These files
are aloccated in "data_dir\coverages\projetos" folder. It works fine
with the default
raster
style,
but when i try to apply my personal styles (sld), the images are no
longer
displayed in the geoserver's layer viewer. However, if I click where
the image suppose be, it returns the pixel values. I mean, the
raster is there,
but it
is not
displayed correctly (As if it were white or transparent). I've
checked
the
SLD file
and it's correct. The same SLD works on my local server (geoserver
2.9),
but
it
doesn't work on my virtual server (Geoserver 2.11). Any ideas, guys?
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor 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"
version="1.0.0">
<UserLayer>
<Name>Cenario2</Name>
<UserStyle>
<Name>raster</Name>
<FeatureTypeStyle>
<FeatureTypeName>Feature</FeatureTypeName>
<Rule>
<RasterSymbolizer>
<ColorMap>
<ColorMapEntry color="#FF2600"
quantity="16"
label="Muito baixo" />
<ColorMapEntry color="#FFBB00"
quantity="20"
label="Baixo"/>
<ColorMapEntry color="#A4C400"
quantity="24"
label="M?dio"/>
<ColorMapEntry color="#006100"
quantity="34"
label="Alto"/>
</ColorMap>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</UserLayer>
</StyledLayerDescriptor>
Sorry about my english and thanks.
--
?caro Brito
--
Atenciosamente,
?caro Brito
Antes de Reciclar, reduza!
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 3
Date: Fri, 7 Jul 2017 10:31:54 +1000
From: "Brad Hards" <***@frogmouth.net>
To: <***@gmail.com>
Cc: <geoserver-***@lists.sourceforge.net>
Subject: Re: [Geoserver-users] Problem with raster visualization
Sent: Friday, 7 July 2017 09:23
Subject: Re: [Geoserver-users] Problem with raster visualization
Hy Brad,
I removed the special character from the "m?dio" label and it didn't work.
I'm
using utf-8 as encoding, it should not be a problem. Curious is that
it works on geoserver 9.2 and does not work on 2.11, with the same
settings.
I'm still thinking possibly something invalid about the SLD.
Did it validate OK? Anything related in the geoserver logs?
Brad
------------------------------
Message: 4
Date: Thu, 6 Jul 2017 22:59:16 -0600
From: Leonardo Dobles <***@gmail.com>
To: ?caro Brito <***@gmail.com>
Cc: Brad Hards <***@frogmouth.net>,
geoserver-***@lists.sourceforge.net
Subject: Re: [Geoserver-users] Problem with raster visualization
Message-ID:
<CAEa8-qyV71c6rY4K4Ddp6deyfUu6yNAt5kNbKUA_5yF=-***@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
I would like to help, if you want to, you can send me a sample of the data.
Leonardo Dobles.
Consultor en SIG
Hy Brad,
I removed the special character from the "m?dio" label and it didn't work.
I'm using utf-8 as encoding, it should not be a problem. Curious is
that it works on geoserver 9.2 and does not work on 2.11, with the same settings.
Thank's anyway!
Does it work without the M?dio label (e.g. as Medio)? I'm just
guessing, but perhaps an encoding bug.
Brad
-----Original Message-----
Sent: Friday, 7 July 2017 08:51
Subject: [Geoserver-users] Problem with raster visualization
Hello Everyone,
I'm trying to publish some raster files in my project. These files
are aloccated in "data_dir\coverages\projetos" folder. It works
fine with the default
raster
style,
but when i try to apply my personal styles (sld), the images are no
longer
displayed in the geoserver's layer viewer. However, if I click
where the image suppose be, it returns the pixel values. I mean,
the raster is there,
but it
is not
displayed correctly (As if it were white or transparent). I've
checked
the
SLD file
and it's correct. The same SLD works on my local server (geoserver
2.9), but
it
doesn't work on my virtual server (Geoserver 2.11). Any ideas, guys?
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor 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"
version="1.0.0">
<UserLayer>
<Name>Cenario2</Name>
<UserStyle>
<Name>raster</Name>
<FeatureTypeStyle>
<FeatureTypeName>Feature</FeatureTypeName>
<Rule>
<RasterSymbolizer>
<ColorMap>
<ColorMapEntry color="#FF2600"
quantity="16"
label="Muito baixo" />
<ColorMapEntry color="#FFBB00"
quantity="20"
label="Baixo"/>
<ColorMapEntry color="#A4C400"
quantity="24"
label="M?dio"/>
<ColorMapEntry color="#006100"
quantity="34"
label="Alto"/>
</ColorMap>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</UserLayer>
</StyledLayerDescriptor>
Sorry about my english and thanks.
--
?caro Brito
--
Atenciosamente,
?caro Brito
Antes de Reciclar, reduza!
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting
http://www.ianturton.com/talks/foss4g.html#/
http://geoserver.org/comm/ userlist-guidelines.html
https://lists.sourceforge.net/lists/listinfo/geoserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
------------------------------
Subject: Digest Footer
_______________________________________________
Geoserver-users mailing list
Geoserver-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------
End of Geoserver-users Digest, Vol 134, Issue 26
************************************************
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html
Geoserver-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users