[Geoserver-users] GeoTIFF raster SLD - histogram element supported in 1.5.3?

Hello,

I'm having trouble getting a single band GeoTiff image (a four MB world
population density map) to display properly in the Openlayers map preview
example after loading the image as a coverage data store in GeoServer 1.5.3.
I'm attempting to modify the default raster.sld provided with GeoServer to
use the RasterSymbolizer - ContrastEnhancement - Histogram SLD element
described by OGC and in geoTools documentation online. Is this supported in
GeoServer 1.5.3?

When I view the raster GeoTiff file in the open layers preview example, I
think it is being displayed with the default raster.sld using it's colormap
values. I've attached the SLD file I'm attempting to use. I loaded it as a
style in GeoServer without incident and applied it as the default style for
the GeoTiff. I was expecting the GeoTiff to be rendered with a grayscale
histogram stretch. Maybe my SLD is bad? I'm a novice at this stuff at this
point.

<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xmlns:xlink="http://www.w3.org/1999/xlink&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xsi:schemaLocation="http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd&quot;
version="1.0.0">
<UserLayer>
  <Name>pop_dens</Name>
        <LayerFeatureConstraints>
            <FeatureTypeConstraint/>
        </LayerFeatureConstraints>
  <UserStyle>
    <Name>pop_dens</Name>
    <Title>Histogram Stretch</Title>
    <Abstract>Population Density Histogram Stretch</Abstract>
    <FeatureTypeStyle>
          <FeatureTypeName>Feature</FeatureTypeName>
      <Rule>
        <RasterSymbolizer>
            <Opacity>1.0</Opacity>
            <OverlapBehavior>
               <AVERAGE/>
            </OverlapBehavior>
          <ContrastEnhancement>
          <Histogram/>
          </ContrastEnhancement>
          </RasterSymbolizer>
      </Rule>
    </FeatureTypeStyle>
  </UserStyle>
</UserLayer>
</StyledLayerDescriptor>

Thanks for helping out!
Andrew Murdoch
--
View this message in context: http://www.nabble.com/GeoTIFF-raster-SLD---histogram-element-supported-in-1.5.3--tf4368756.html#a12452035
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Andrew!

I tries the same recently, and could not get it working either. I think the SLD implementation for rasters is still basic and does not support all the capabilities yet. I did not have chance to work on it further, but if somebody can help us, i would be really happy as well.

Gersh

On 02/09/07, ahm126 <a_murdoch@anonymised.com> wrote:

Hello,

I’m having trouble getting a single band GeoTiff image (a four MB world
population density map) to display properly in the Openlayers map preview
example after loading the image as a coverage data store in GeoServer 1.5.3.
I’m attempting to modify the default raster.sld provided with GeoServer to
use the RasterSymbolizer - ContrastEnhancement - Histogram SLD element
described by OGC and in geoTools documentation online. Is this supported in
GeoServer 1.5.3?

When I view the raster GeoTiff file in the open layers preview example, I
think it is being displayed with the default raster.sld using it’s colormap
values. I’ve attached the SLD file I’m attempting to use. I loaded it as a
style in GeoServer without incident and applied it as the default style for
the GeoTiff. I was expecting the GeoTiff to be rendered with a grayscale
histogram stretch. Maybe my SLD is bad? I’m a novice at this stuff at this
point.

<?xml version="1.0" encoding="UTF-8"?>



pop_dens




pop_dens

Histogram Stretch Population Density Histogram Stretch Feature 1.0

Thanks for helping out!
Andrew Murdoch

View this message in context: http://www.nabble.com/GeoTIFF-raster-SLD—histogram-element-supported-in-1.5.3–tf4368756.html#a12452035
Sent from the GeoServer - User mailing list archive at Nabble.com.


This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/


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

Hi,
the actual geotools RasterSymbolizer implementation does not handles the contrast enhancements parameters … soon a new one should be published.

On 9/2/07, ahm126 <a_murdoch@anonymised.com> wrote:

Hello,

I’m having trouble getting a single band GeoTiff image (a four MB world
population density map) to display properly in the Openlayers map preview
example after loading the image as a coverage data store in GeoServer 1.5.3.
I’m attempting to modify the default raster.sld provided with GeoServer to
use the RasterSymbolizer - ContrastEnhancement - Histogram SLD element
described by OGC and in geoTools documentation online. Is this supported in
GeoServer 1.5.3?

When I view the raster GeoTiff file in the open layers preview example, I
think it is being displayed with the default raster.sld using it’s colormap
values. I’ve attached the SLD file I’m attempting to use. I loaded it as a
style in GeoServer without incident and applied it as the default style for
the GeoTiff. I was expecting the GeoTiff to be rendered with a grayscale
histogram stretch. Maybe my SLD is bad? I’m a novice at this stuff at this
point.

<?xml version="1.0" encoding="UTF-8"?>



pop_dens




pop_dens

Histogram Stretch Population Density Histogram Stretch Feature 1.0

Thanks for helping out!
Andrew Murdoch

View this message in context: http://www.nabble.com/GeoTIFF-raster-SLD—histogram-element-supported-in-1.5.3–tf4368756.html#a12452035
Sent from the GeoServer - User mailing list archive at Nabble.com.


This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/


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

Eng. Alessio Fabiani
Vice-President /CTO GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 349 8227000

http://www.geo-solutions.it


Thanks Alessio,

Since it looks like some of the raster display functions are unsupported at this time, I suppose I can categorize my raster data and either create a colormap SLD or convert to vector polygons (which might be better from a performance perspective anyway). Is this a limitation of the RasterSymbolizer implementation in the geoTools java toolkit that GeoServer uses? Do you know if MapServer supports this functionality?

Thanks for the response,
Andrew Murdoch


Date: Mon, 3 Sep 2007 11:33:38 +0200
From: alessio.fabiani@anonymised.com
To: a_murdoch@anonymised.com
Subject: Re: [Geoserver-users] GeoTIFF raster SLD - histogram element supported in 1.5.3?
CC: geoserver-users@anonymised.comforge.net

Hi,
the actual geotools RasterSymbolizer implementation does not handles the contrast enhancements parameters … soon a new one should be published.

On 9/2/07, ahm126 <a_murdoch@anonymised.com> wrote:

Hello,

I’m having trouble getting a single band GeoTiff image (a four MB world
population density map) to display properly in the Openlayers map preview
example after loading the image as a coverage data store in GeoServer 1.5.3.
I’m attempting to modify the default raster.sld provided with GeoServer to
use the RasterSymbolizer - ContrastEnhancement - Histogram SLD element
described by OGC and in geoTools documentation online. Is this supported in
GeoServer 1.5.3?

When I view the raster GeoTiff file in the open layers preview example, I
think it is being displayed with the default raster.sld using it’s colormap
values. I’ve attached the SLD file I’m attempting to use. I loaded it as a
style in GeoServer without incident and applied it as the default style for
the GeoTiff. I was expecting the GeoTiff to be rendered with a grayscale
histogram stretch. Maybe my SLD is bad? I’m a novice at this stuff at this
point.

<?xml version="1.0" encoding="UTF-8"?>



pop_dens




pop_dens

Histogram Stretch Population Density Histogram Stretch Feature 1.0

Thanks for helping out!
Andrew Murdoch

View this message in context: http://www.nabble.com/GeoTIFF-raster-SLD—histogram-element-supported-in-1.5.3–tf4368756.html#a12452035
Sent from the GeoServer - User mailing list archive at Nabble.com.


This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/


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

Eng. Alessio Fabiani
Vice-President /CTO GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 349 8227000

http://www.geo-solutions.it



Explore the seven wonders of the world Learn more!

Actual implementation also ignore color maps for all raster data different from floats, so this won’t work for GeoTIFFs I guess. However here we have almost ready a RasterSymbolizer release which not only works on all data types but also better handles categories and does histograms. Very soon it should be available on geoTools. Simone is the one which are working on that (in cc). Don’t know if MapServer actually supports those functionalities.

On 9/3/07, Andrew Murdoch <a_murdoch@anonymised.com> wrote:

Thanks Alessio,

Since it looks like some of the raster display functions are unsupported at this time, I suppose I can categorize my raster data and either create a colormap SLD or convert to vector polygons (which might be better from a performance perspective anyway). Is this a limitation of the RasterSymbolizer implementation in the geoTools java toolkit that GeoServer uses? Do you know if MapServer supports this functionality?

Thanks for the response,
Andrew Murdoch


Date: Mon, 3 Sep 2007 11:33:38 +0200
From: alessio.fabiani@anonymised.com
To: a_murdoch@anonymised.com
Subject: Re: [Geoserver-users] GeoTIFF raster SLD - histogram element supported in 1.5.3?
CC: geoserver-users@lists.sourceforge.net

Hi,
the actual geotools RasterSymbolizer implementation does not handles the contrast enhancements parameters … soon a new one should be published.

On 9/2/07, ahm126 <a_murdoch@anonymised.com> wrote:

Hello,

I’m having trouble getting a single band GeoTiff image (a four MB world
population density map) to display properly in the Openlayers map preview
example after loading the image as a coverage data store in GeoServer 1.5.3.
I’m attempting to modify the default raster.sld provided with GeoServer to
use the RasterSymbolizer - ContrastEnhancement - Histogram SLD element
described by OGC and in geoTools documentation online. Is this supported in
GeoServer 1.5.3?

When I view the raster GeoTiff file in the open layers preview example, I
think it is being displayed with the default raster.sld using it’s colormap
values. I’ve attached the SLD file I’m attempting to use. I loaded it as a
style in GeoServer without incident and applied it as the default style for
the GeoTiff. I was expecting the GeoTiff to be rendered with a grayscale
histogram stretch. Maybe my SLD is bad? I’m a novice at this stuff at this
point.

<?xml version="1.0" encoding="UTF-8"?>



pop_dens




pop_dens

Histogram Stretch Population Density Histogram Stretch Feature 1.0

Thanks for helping out!
Andrew Murdoch

View this message in context: http://www.nabble.com/GeoTIFF-raster-SLD—histogram-element-supported-in-1.5.3–tf4368756.html#a12452035
Sent from the GeoServer - User mailing list archive at Nabble.com.


This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/


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

Eng. Alessio Fabiani
Vice-President /CTO GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 349 8227000

http://www.geo-solutions.it



Explore the seven wonders of the world Learn more!


This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/


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

Eng. Alessio Fabiani
Vice-President /CTO GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 349 8227000

http://www.geo-solutions.it