[Geoserver-users] Colormap on Float64 raster

Hello,

I'm trying to user GeoServer to publish rasters stored in Float64 type.
For the data to be visually understandable, I put in place an SLD file
(using uDig).

Rendering these rasters with uDig and even QGis works well, but when it
comes to rendering with geoserver, all i get is an empty image.

Here are the screenshots :
Rendering in QGIS directly from file and created SLD file
<http://osgeo-org.1560.x6.nabble.com/file/n5195778/from-file-with-sld.png&gt;
Result of getmap request : all white
<http://osgeo-org.1560.x6.nabble.com/file/n5195778/with-wms.png&gt;

Just to be sure, I tried using WCS to get the raw data and everything seems
fine
<http://osgeo-org.1560.x6.nabble.com/file/n5195778/with-wcs.png&gt;

Here is the SLD used :

<?xml version="1.0" encoding="UTF-8"?><sld:StyledLayerDescriptor
xmlns="http://www.opengis.net/sld&quot; xmlns:sld="http://www.opengis.net/sld&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xmlns:gml="http://www.opengis.net/gml&quot; version="1.0.0">
    <sld:UserLayer>
        <sld:LayerFeatureConstraints>
            <sld:FeatureTypeConstraint/>
        </sld:LayerFeatureConstraints>
        <sld:UserStyle>
            <sld:Name>1</sld:Name>
            <sld:Title>Default Raster</sld:Title>
            <sld:Abstract>A sample style that draws a raster, good for
displaying imagery</sld:Abstract>
            <sld:FeatureTypeStyle>
                <sld:Name>name</sld:Name>
                <sld:FeatureTypeName>Feature</sld:FeatureTypeName>
                <sld:Rule>
                    <sld:Name>rule1</sld:Name>
                    <sld:Title>Opaque Raster</sld:Title>
                    <sld:Abstract>A raster with 100% opacity</sld:Abstract>
                    <sld:RasterSymbolizer>
                        <sld:Geometry>
                            <ogc:PropertyName>geom</ogc:PropertyName>
                        </sld:Geometry>
                        <sld:ColorMap>
                            <sld:ColorMapEntry color="#D7191C" opacity="1"
quantity="0" label="1"/>
                            <sld:ColorMapEntry color="#FDAE61" opacity="1"
quantity="0.002383" label="2"/>
                            <sld:ColorMapEntry color="#FFFFBF" opacity="1"
quantity="0.004766" label="3"/>
                            <sld:ColorMapEntry color="#ABDDA4" opacity="1"
quantity="0.007149" label="4"/>
                            <sld:ColorMapEntry color="#2B83BA" opacity="1"
quantity="0.009532" label="5"/>
                        </sld:ColorMap>
                    </sld:RasterSymbolizer>
                </sld:Rule>
            </sld:FeatureTypeStyle>
        </sld:UserStyle>
    </sld:UserLayer>
</sld:StyledLayerDescriptor>

Here is the raw raster used :
1.tif <http://osgeo-org.1560.x6.nabble.com/file/n5195778/1.tif&gt;

Cyril

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Colormap-on-Float64-raster-tp5195778.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Dear Cyril,
I have opened a bug report for this:

https://osgeo-org.atlassian.net/browse/GEOS-7048

We will look into this in the upcoming weeks during our community time slots.

Regards,
Simone Giannecchini

Meet us at the INSPIRE Conference in Lisbon 25-29 May 2015! Visit
http://goo.gl/WHKDXT 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 Fri, Mar 27, 2015 at 3:48 PM, CGA <cgallay.artal@anonymised.com> wrote:

Hello,

I'm trying to user GeoServer to publish rasters stored in Float64 type.
For the data to be visually understandable, I put in place an SLD file
(using uDig).

Rendering these rasters with uDig and even QGis works well, but when it
comes to rendering with geoserver, all i get is an empty image.

Here are the screenshots :
Rendering in QGIS directly from file and created SLD file
<http://osgeo-org.1560.x6.nabble.com/file/n5195778/from-file-with-sld.png&gt;
Result of getmap request : all white
<http://osgeo-org.1560.x6.nabble.com/file/n5195778/with-wms.png&gt;

Just to be sure, I tried using WCS to get the raw data and everything seems
fine
<http://osgeo-org.1560.x6.nabble.com/file/n5195778/with-wcs.png&gt;

Here is the SLD used :

<?xml version="1.0" encoding="UTF-8"?><sld:StyledLayerDescriptor
xmlns="http://www.opengis.net/sld&quot; xmlns:sld="http://www.opengis.net/sld&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xmlns:gml="http://www.opengis.net/gml&quot; version="1.0.0">
    <sld:UserLayer>
        <sld:LayerFeatureConstraints>
            <sld:FeatureTypeConstraint/>
        </sld:LayerFeatureConstraints>
        <sld:UserStyle>
            <sld:Name>1</sld:Name>
            <sld:Title>Default Raster</sld:Title>
            <sld:Abstract>A sample style that draws a raster, good for
displaying imagery</sld:Abstract>
            <sld:FeatureTypeStyle>
                <sld:Name>name</sld:Name>
                <sld:FeatureTypeName>Feature</sld:FeatureTypeName>
                <sld:Rule>
                    <sld:Name>rule1</sld:Name>
                    <sld:Title>Opaque Raster</sld:Title>
                    <sld:Abstract>A raster with 100% opacity</sld:Abstract>
                    <sld:RasterSymbolizer>
                        <sld:Geometry>
                            <ogc:PropertyName>geom</ogc:PropertyName>
                        </sld:Geometry>
                        <sld:ColorMap>
                            <sld:ColorMapEntry color="#D7191C" opacity="1"
quantity="0" label="1"/>
                            <sld:ColorMapEntry color="#FDAE61" opacity="1"
quantity="0.002383" label="2"/>
                            <sld:ColorMapEntry color="#FFFFBF" opacity="1"
quantity="0.004766" label="3"/>
                            <sld:ColorMapEntry color="#ABDDA4" opacity="1"
quantity="0.007149" label="4"/>
                            <sld:ColorMapEntry color="#2B83BA" opacity="1"
quantity="0.009532" label="5"/>
                        </sld:ColorMap>
                    </sld:RasterSymbolizer>
                </sld:Rule>
            </sld:FeatureTypeStyle>
        </sld:UserStyle>
    </sld:UserLayer>
</sld:StyledLayerDescriptor>

Here is the raw raster used :
1.tif <http://osgeo-org.1560.x6.nabble.com/file/n5195778/1.tif&gt;

Cyril

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Colormap-on-Float64-raster-tp5195778.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Dear Simone,

On my side I solved the problem by using the ImageMosaic plugin which does
not seem to be affected by this problem.

Hope this help,

Cyril

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Colormap-on-Float64-raster-tp5195778p5210486.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Dear Cyril,
thanks for reporting, we'll hit this report anyway in the next weeks.
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 Thu, Jun 11, 2015 at 9:55 PM, CGA <cgallay.artal@anonymised.com> wrote:

Dear Simone,

On my side I solved the problem by using the ImageMosaic plugin which does
not seem to be affected by this problem.

Hope this help,

Cyril

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Colormap-on-Float64-raster-tp5195778p5210486.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi,
I believe I’ve found a fix for this problem (https://osgeo-org.atlassian.net/browse/GEOS-7048) but
I need to write a test, and the features of this tiff files are … unique.
Can I use that file (a reduced resolution version of it) to write an automated test back in GeoTools
(which means, the file will become part of the GeoTools source code, and redistributed along with it).

Cheers
Andrea

···

On Thu, Jun 11, 2015 at 9:55 PM, CGA <cgallay.artal@anonymised.com> wrote:

Dear Simone,

On my side I solved the problem by using the ImageMosaic plugin which does
not seem to be affected by this problem.

Hope this help,

Cyril


View this message in context: http://osgeo-org.1560.x6.nabble.com/Colormap-on-Float64-raster-tp5195778p5210486.html
Sent from the GeoServer - User mailing list archive at Nabble.com.



Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

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.


Andrea,

Now that you mentionned it, I did have a bug with the Y axis that I fixed
later.
But I already moved to the ImageMosaic plugin at that time so I did not
retry with the default driver.
You can off course use the given test files. FYI I used gdal + python to
generate this raster, and mixed up some parameters in the geotransform until
I realized it.

Cyril

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Colormap-on-Float64-raster-tp5195778p5212034.html
Sent from the GeoServer - User mailing list archive at Nabble.com.