[Geoserver-users] GeoServer color ramp doesn't work for Geotiff

Hello GeoServer List,

I am using GeoServer 2.4-SNAPSHOT on Ubuntu 12.10. I am trying to correctly
render a Geotiff in Geoserver. When I do a layer preview, the data is
rendered as grey scale. I have an SLD with the appropriate color definitions
as:

<RasterSymbolizer>
          <ColorMap type="ramp">
              <ColorMapEntry color="#000000" quantity="0.0" opacity="0.0"/>
              <ColorMapEntry color="#0000FA" quantity="1.0" opacity="0.1"/>
              <ColorMapEntry color="#FA0035" quantity="30.0" opacity="0.1"/>
          </ColorMap>
</RasterSymbolizer>

Transparency for the NoData Value of 0 works well, but I do not get the blue
to red color ramp that I expect. The gdalinfo output for the GeoTiff is:

Driver: GTiff/GeoTIFF
Files: pm_final_byte.tif
Size is 3600, 1800
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
Origin = (-180.000000000000000,90.000000000000000)
Pixel Size = (0.100000000000000,-0.100000000000000)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left (-180.0000000, 90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"N)
Lower Left (-180.0000000, -90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"S)
Upper Right ( 180.0000000, 90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"N)
Lower Right ( 180.0000000, -90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"S)
Center ( 0.0000000, 0.0000000) ( 0d 0' 0.01"E, 0d 0' 0.01"N)
Band 1 Block=3600x2 Type=Byte, ColorInterp=Gray
  Min=3.393 Max=99.520
  Minimum=3.393, Maximum=99.520, Mean=16.095, StdDev=8.735
  NoData Value=0
  Metadata:
    STATISTICS_MAXIMUM=99.520126342773
    STATISTICS_MEAN=16.095298841161
    STATISTICS_MINIMUM=3.39302277565
    STATISTICS_STDDEV=8.7346241966425

I don't know what I doing incorrectly (why I don't get my colors)

Thanks, W

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-color-ramp-doesn-t-work-for-Geotiff-tp5150350.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Dear W,
stupid question, did you select the style you mention as the default
style in the "publishing" tab for this geotiff's layer?

If so, can you share (even privately) a sample of the geotiff as well
as the sld?

Regards,
Simone Giannecchini

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

-------------------------------------------------------

On Wed, Jul 9, 2014 at 7:39 PM, VictoriaH <bhudspeth@anonymised.com> wrote:

Hello GeoServer List,

I am using GeoServer 2.4-SNAPSHOT on Ubuntu 12.10. I am trying to correctly
render a Geotiff in Geoserver. When I do a layer preview, the data is
rendered as grey scale. I have an SLD with the appropriate color definitions
as:

<RasterSymbolizer>
          <ColorMap type="ramp">
              <ColorMapEntry color="#000000" quantity="0.0" opacity="0.0"/>
              <ColorMapEntry color="#0000FA" quantity="1.0" opacity="0.1"/>
              <ColorMapEntry color="#FA0035" quantity="30.0" opacity="0.1"/>
          </ColorMap>
</RasterSymbolizer>

Transparency for the NoData Value of 0 works well, but I do not get the blue
to red color ramp that I expect. The gdalinfo output for the GeoTiff is:

Driver: GTiff/GeoTIFF
Files: pm_final_byte.tif
Size is 3600, 1800
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
Origin = (-180.000000000000000,90.000000000000000)
Pixel Size = (0.100000000000000,-0.100000000000000)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left (-180.0000000, 90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"N)
Lower Left (-180.0000000, -90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"S)
Upper Right ( 180.0000000, 90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"N)
Lower Right ( 180.0000000, -90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"S)
Center ( 0.0000000, 0.0000000) ( 0d 0' 0.01"E, 0d 0' 0.01"N)
Band 1 Block=3600x2 Type=Byte, ColorInterp=Gray
  Min=3.393 Max=99.520
  Minimum=3.393, Maximum=99.520, Mean=16.095, StdDev=8.735
  NoData Value=0
  Metadata:
    STATISTICS_MAXIMUM=99.520126342773
    STATISTICS_MEAN=16.095298841161
    STATISTICS_MINIMUM=3.39302277565
    STATISTICS_STDDEV=8.7346241966425

I don't know what I doing incorrectly (why I don't get my colors)

Thanks, W

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-color-ramp-doesn-t-work-for-Geotiff-tp5150350.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Dear William,
I tested the (privately) sent sample data and it worked.

I suspect that you are previewing the data without specifing the correct style.
Either you set your style as the default one or you explicitly call it
using the style dropdown. If you don't specify your style as the
default one
the "raster" style will kick-in and it does very little that is:
- select a band, usually number 1
- stretch to 256 bits

The experience you are describing is compatible with this situation.

Let me know how it goes.
Regards,
Simone Giannecchini

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

-------------------------------------------------------

On Sun, Jul 13, 2014 at 7:53 PM, Simone Giannecchini
<simone.giannecchini@anonymised.com> wrote:

Dear W,
stupid question, did you select the style you mention as the default
style in the "publishing" tab for this geotiff's layer?

If so, can you share (even privately) a sample of the geotiff as well
as the sld?

Regards,
Simone Giannecchini

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

-------------------------------------------------------

On Wed, Jul 9, 2014 at 7:39 PM, VictoriaH <bhudspeth@anonymised.com> wrote:

Hello GeoServer List,

I am using GeoServer 2.4-SNAPSHOT on Ubuntu 12.10. I am trying to correctly
render a Geotiff in Geoserver. When I do a layer preview, the data is
rendered as grey scale. I have an SLD with the appropriate color definitions
as:

<RasterSymbolizer>
          <ColorMap type="ramp">
              <ColorMapEntry color="#000000" quantity="0.0" opacity="0.0"/>
              <ColorMapEntry color="#0000FA" quantity="1.0" opacity="0.1"/>
              <ColorMapEntry color="#FA0035" quantity="30.0" opacity="0.1"/>
          </ColorMap>
</RasterSymbolizer>

Transparency for the NoData Value of 0 works well, but I do not get the blue
to red color ramp that I expect. The gdalinfo output for the GeoTiff is:

Driver: GTiff/GeoTIFF
Files: pm_final_byte.tif
Size is 3600, 1800
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
Origin = (-180.000000000000000,90.000000000000000)
Pixel Size = (0.100000000000000,-0.100000000000000)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left (-180.0000000, 90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"N)
Lower Left (-180.0000000, -90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"S)
Upper Right ( 180.0000000, 90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"N)
Lower Right ( 180.0000000, -90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"S)
Center ( 0.0000000, 0.0000000) ( 0d 0' 0.01"E, 0d 0' 0.01"N)
Band 1 Block=3600x2 Type=Byte, ColorInterp=Gray
  Min=3.393 Max=99.520
  Minimum=3.393, Maximum=99.520, Mean=16.095, StdDev=8.735
  NoData Value=0
  Metadata:
    STATISTICS_MAXIMUM=99.520126342773
    STATISTICS_MEAN=16.095298841161
    STATISTICS_MINIMUM=3.39302277565
    STATISTICS_STDDEV=8.7346241966425

I don't know what I doing incorrectly (why I don't get my colors)

Thanks, W

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-color-ramp-doesn-t-work-for-Geotiff-tp5150350.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thank you for your assistance Simone,

For the appropriate layer, under the 'Publishing' tab, and for the 'WMS Settings' -> 'Default Style' setting, I have selected 'PM2.5', which is the name of the SLD style I am referring the layer to (see below for code).
The small graphic under the 'Default Style' selection drop down correctly shows the red-to-blue color range, but a preview of the layer fails to show the correct styling that you sent me.

<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0" 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;&gt;
<NamedLayer>
<Name>PM 2.5 Geotiffs</Name>
<UserStyle>
<Name>PM 2.5 Geotiff Color Ramp</Name>
<Title>PM 2.5 Color Classification</Title>
<FeatureTypeStyle>
<Rule>
<RasterSymbolizer>
<ColorMap type="ramp">
<ColorMapEntry color="#000000" quantity="0.0" opacity="0.0"/>
<ColorMapEntry color="#0000FA" quantity="1.0" opacity="1.0"/>
<ColorMapEntry color="#FA0035" quantity="30.0" opacity="1.0"/>
</ColorMap>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>

On 07/14/2014 04:35 PM, Simone Giannecchini wrote:

Dear William,
I tested the (privately) sent sample data and it worked.

I suspect that you are previewing the data without specifing the correct style.
Either you set your style as the default one or you explicitly call it
using the style dropdown. If you don't specify your style as the
default one
the "raster" style will kick-in and it does very little that is:
- select a band, usually number 1
- stretch to 256 bits

The experience you are describing is compatible with this situation.

Let me know how it goes.
Regards,
Simone Giannecchini

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

-------------------------------------------------------

On Sun, Jul 13, 2014 at 7:53 PM, Simone Giannecchini
<simone.giannecchini@anonymised.com> wrote:

Dear W,
stupid question, did you select the style you mention as the default
style in the "publishing" tab for this geotiff's layer?

If so, can you share (even privately) a sample of the geotiff as well
as the sld?

Regards,
Simone Giannecchini

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

-------------------------------------------------------

On Wed, Jul 9, 2014 at 7:39 PM, VictoriaH <bhudspeth@anonymised.com> wrote:

Hello GeoServer List,

I am using GeoServer 2.4-SNAPSHOT on Ubuntu 12.10. I am trying to correctly
render a Geotiff in Geoserver. When I do a layer preview, the data is
rendered as grey scale. I have an SLD with the appropriate color definitions
as:

<RasterSymbolizer>
           <ColorMap type="ramp">
               <ColorMapEntry color="#000000" quantity="0.0" opacity="0.0"/>
               <ColorMapEntry color="#0000FA" quantity="1.0" opacity="0.1"/>
               <ColorMapEntry color="#FA0035" quantity="30.0" opacity="0.1"/>
           </ColorMap>
</RasterSymbolizer>

Transparency for the NoData Value of 0 works well, but I do not get the blue
to red color ramp that I expect. The gdalinfo output for the GeoTiff is:

Driver: GTiff/GeoTIFF
Files: pm_final_byte.tif
Size is 3600, 1800
Coordinate System is:
GEOGCS["WGS 84",
     DATUM["WGS_1984",
         SPHEROID["WGS 84",6378137,298.257223563,
             AUTHORITY["EPSG","7030"]],
         AUTHORITY["EPSG","6326"]],
     PRIMEM["Greenwich",0],
     UNIT["degree",0.0174532925199433],
     AUTHORITY["EPSG","4326"]]
Origin = (-180.000000000000000,90.000000000000000)
Pixel Size = (0.100000000000000,-0.100000000000000)
Metadata:
   AREA_OR_POINT=Area
Image Structure Metadata:
   INTERLEAVE=BAND
Corner Coordinates:
Upper Left (-180.0000000, 90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"N)
Lower Left (-180.0000000, -90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"S)
Upper Right ( 180.0000000, 90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"N)
Lower Right ( 180.0000000, -90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"S)
Center ( 0.0000000, 0.0000000) ( 0d 0' 0.01"E, 0d 0' 0.01"N)
Band 1 Block=3600x2 Type=Byte, ColorInterp=Gray
   Min=3.393 Max=99.520
   Minimum=3.393, Maximum=99.520, Mean=16.095, StdDev=8.735
   NoData Value=0
   Metadata:
     STATISTICS_MAXIMUM=99.520126342773
     STATISTICS_MEAN=16.095298841161
     STATISTICS_MINIMUM=3.39302277565
     STATISTICS_STDDEV=8.7346241966425

I don't know what I doing incorrectly (why I don't get my colors)

Thanks, W

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-color-ramp-doesn-t-work-for-Geotiff-tp5150350.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Ciao Williams,
can you change the log level to verbose send a request and then send
me the logs?

That said, can you tell me which platform you are working on and the
paster here also the exact information
about the geoserver version (look under "About GeoServer")?

Regards,
Simone Giannecchini

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

-------------------------------------------------------

On Tue, Jul 15, 2014 at 5:22 PM, William Hudspeth
<bhudspeth@anonymised.com> wrote:

Thank you for your assistance Simone,

For the appropriate layer, under the 'Publishing' tab, and for the 'WMS
Settings' -> 'Default Style' setting, I have selected 'PM2.5', which is the
name of the SLD style I am referring the layer to (see below for code).
The small graphic under the 'Default Style' selection drop down correctly
shows the red-to-blue color range, but a preview of the layer fails to show
the correct styling that you sent me.

<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0" 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;&gt;
<NamedLayer>
<Name>PM 2.5 Geotiffs</Name>
<UserStyle>
<Name>PM 2.5 Geotiff Color Ramp</Name>
<Title>PM 2.5 Color Classification</Title>
<FeatureTypeStyle>
<Rule>

<RasterSymbolizer>
<ColorMap type="ramp">
<ColorMapEntry color="#000000" quantity="0.0" opacity="0.0"/>
<ColorMapEntry color="#0000FA" quantity="1.0" opacity="1.0"/>
<ColorMapEntry color="#FA0035" quantity="30.0" opacity="1.0"/>
</ColorMap>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>

On 07/14/2014 04:35 PM, Simone Giannecchini wrote:

Dear William,
I tested the (privately) sent sample data and it worked.

I suspect that you are previewing the data without specifing the correct
style.
Either you set your style as the default one or you explicitly call it
using the style dropdown. If you don't specify your style as the
default one
the "raster" style will kick-in and it does very little that is:
- select a band, usually number 1
- stretch to 256 bits

The experience you are describing is compatible with this situation.

Let me know how it goes.
Regards,
Simone Giannecchini

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

-------------------------------------------------------

On Sun, Jul 13, 2014 at 7:53 PM, Simone Giannecchini
<simone.giannecchini@anonymised.com> wrote:

Dear W,
stupid question, did you select the style you mention as the default
style in the "publishing" tab for this geotiff's layer?

If so, can you share (even privately) a sample of the geotiff as well
as the sld?

Regards,
Simone Giannecchini

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

-------------------------------------------------------

On Wed, Jul 9, 2014 at 7:39 PM, VictoriaH <bhudspeth@anonymised.com> wrote:

Hello GeoServer List,

I am using GeoServer 2.4-SNAPSHOT on Ubuntu 12.10. I am trying to
correctly
render a Geotiff in Geoserver. When I do a layer preview, the data is
rendered as grey scale. I have an SLD with the appropriate color
definitions
as:

<RasterSymbolizer>
           <ColorMap type="ramp">
               <ColorMapEntry color="#000000" quantity="0.0"
opacity="0.0"/>
               <ColorMapEntry color="#0000FA" quantity="1.0"
opacity="0.1"/>
               <ColorMapEntry color="#FA0035" quantity="30.0"
opacity="0.1"/>
           </ColorMap>
</RasterSymbolizer>

Transparency for the NoData Value of 0 works well, but I do not get the
blue
to red color ramp that I expect. The gdalinfo output for the GeoTiff is:

Driver: GTiff/GeoTIFF
Files: pm_final_byte.tif
Size is 3600, 1800
Coordinate System is:
GEOGCS["WGS 84",
     DATUM["WGS_1984",
         SPHEROID["WGS 84",6378137,298.257223563,
             AUTHORITY["EPSG","7030"]],
         AUTHORITY["EPSG","6326"]],
     PRIMEM["Greenwich",0],
     UNIT["degree",0.0174532925199433],
     AUTHORITY["EPSG","4326"]]
Origin = (-180.000000000000000,90.000000000000000)
Pixel Size = (0.100000000000000,-0.100000000000000)
Metadata:
   AREA_OR_POINT=Area
Image Structure Metadata:
   INTERLEAVE=BAND
Corner Coordinates:
Upper Left (-180.0000000, 90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"N)
Lower Left (-180.0000000, -90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"S)
Upper Right ( 180.0000000, 90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"N)
Lower Right ( 180.0000000, -90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"S)
Center ( 0.0000000, 0.0000000) ( 0d 0' 0.01"E, 0d 0' 0.01"N)
Band 1 Block=3600x2 Type=Byte, ColorInterp=Gray
   Min=3.393 Max=99.520
   Minimum=3.393, Maximum=99.520, Mean=16.095, StdDev=8.735
   NoData Value=0
   Metadata:
     STATISTICS_MAXIMUM=99.520126342773
     STATISTICS_MEAN=16.095298841161
     STATISTICS_MINIMUM=3.39302277565
     STATISTICS_STDDEV=8.7346241966425

I don't know what I doing incorrectly (why I don't get my colors)

Thanks, W

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/GeoServer-color-ramp-doesn-t-work-for-Geotiff-tp5150350.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community
Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Dear William,
I loaded the sample data + the style (not as default but as additional
style) in a standlone binary for geoserver
2.4.7 and ti worked for me.

You can find it at this link (in a few mins...):

http://demo.geo-solutions.it/share/temp/geoserver-2.4.7.zip

Let me know if this helps.

Regards,
Simone Giannecchini

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

-------------------------------------------------------

On Wed, Jul 16, 2014 at 1:01 AM, Simone Giannecchini
<simone.giannecchini@anonymised.com> wrote:

Ciao Williams,
can you change the log level to verbose send a request and then send
me the logs?

That said, can you tell me which platform you are working on and the
paster here also the exact information
about the geoserver version (look under "About GeoServer")?

Regards,
Simone Giannecchini

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

-------------------------------------------------------

On Tue, Jul 15, 2014 at 5:22 PM, William Hudspeth
<bhudspeth@anonymised.com> wrote:

Thank you for your assistance Simone,

For the appropriate layer, under the 'Publishing' tab, and for the 'WMS
Settings' -> 'Default Style' setting, I have selected 'PM2.5', which is the
name of the SLD style I am referring the layer to (see below for code).
The small graphic under the 'Default Style' selection drop down correctly
shows the red-to-blue color range, but a preview of the layer fails to show
the correct styling that you sent me.

<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0" 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;&gt;
<NamedLayer>
<Name>PM 2.5 Geotiffs</Name>
<UserStyle>
<Name>PM 2.5 Geotiff Color Ramp</Name>
<Title>PM 2.5 Color Classification</Title>
<FeatureTypeStyle>
<Rule>

<RasterSymbolizer>
<ColorMap type="ramp">
<ColorMapEntry color="#000000" quantity="0.0" opacity="0.0"/>
<ColorMapEntry color="#0000FA" quantity="1.0" opacity="1.0"/>
<ColorMapEntry color="#FA0035" quantity="30.0" opacity="1.0"/>
</ColorMap>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>

On 07/14/2014 04:35 PM, Simone Giannecchini wrote:

Dear William,
I tested the (privately) sent sample data and it worked.

I suspect that you are previewing the data without specifing the correct
style.
Either you set your style as the default one or you explicitly call it
using the style dropdown. If you don't specify your style as the
default one
the "raster" style will kick-in and it does very little that is:
- select a band, usually number 1
- stretch to 256 bits

The experience you are describing is compatible with this situation.

Let me know how it goes.
Regards,
Simone Giannecchini

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

-------------------------------------------------------

On Sun, Jul 13, 2014 at 7:53 PM, Simone Giannecchini
<simone.giannecchini@anonymised.com> wrote:

Dear W,
stupid question, did you select the style you mention as the default
style in the "publishing" tab for this geotiff's layer?

If so, can you share (even privately) a sample of the geotiff as well
as the sld?

Regards,
Simone Giannecchini

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

-------------------------------------------------------

On Wed, Jul 9, 2014 at 7:39 PM, VictoriaH <bhudspeth@anonymised.com> wrote:

Hello GeoServer List,

I am using GeoServer 2.4-SNAPSHOT on Ubuntu 12.10. I am trying to
correctly
render a Geotiff in Geoserver. When I do a layer preview, the data is
rendered as grey scale. I have an SLD with the appropriate color
definitions
as:

<RasterSymbolizer>
           <ColorMap type="ramp">
               <ColorMapEntry color="#000000" quantity="0.0"
opacity="0.0"/>
               <ColorMapEntry color="#0000FA" quantity="1.0"
opacity="0.1"/>
               <ColorMapEntry color="#FA0035" quantity="30.0"
opacity="0.1"/>
           </ColorMap>
</RasterSymbolizer>

Transparency for the NoData Value of 0 works well, but I do not get the
blue
to red color ramp that I expect. The gdalinfo output for the GeoTiff is:

Driver: GTiff/GeoTIFF
Files: pm_final_byte.tif
Size is 3600, 1800
Coordinate System is:
GEOGCS["WGS 84",
     DATUM["WGS_1984",
         SPHEROID["WGS 84",6378137,298.257223563,
             AUTHORITY["EPSG","7030"]],
         AUTHORITY["EPSG","6326"]],
     PRIMEM["Greenwich",0],
     UNIT["degree",0.0174532925199433],
     AUTHORITY["EPSG","4326"]]
Origin = (-180.000000000000000,90.000000000000000)
Pixel Size = (0.100000000000000,-0.100000000000000)
Metadata:
   AREA_OR_POINT=Area
Image Structure Metadata:
   INTERLEAVE=BAND
Corner Coordinates:
Upper Left (-180.0000000, 90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"N)
Lower Left (-180.0000000, -90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"S)
Upper Right ( 180.0000000, 90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"N)
Lower Right ( 180.0000000, -90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"S)
Center ( 0.0000000, 0.0000000) ( 0d 0' 0.01"E, 0d 0' 0.01"N)
Band 1 Block=3600x2 Type=Byte, ColorInterp=Gray
   Min=3.393 Max=99.520
   Minimum=3.393, Maximum=99.520, Mean=16.095, StdDev=8.735
   NoData Value=0
   Metadata:
     STATISTICS_MAXIMUM=99.520126342773
     STATISTICS_MEAN=16.095298841161
     STATISTICS_MINIMUM=3.39302277565
     STATISTICS_STDDEV=8.7346241966425

I don't know what I doing incorrectly (why I don't get my colors)

Thanks, W

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/GeoServer-color-ramp-doesn-t-work-for-Geotiff-tp5150350.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community
Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Simone,

Thank you for all your help on this. I discovered that I had set the null values in the raster to transparent both in the SLD file and in the layer settings page (i.e. InputTransparentColor). Once I removed the setting in InputTransparentColor, then I successfully achieved the desired effect.

W

On 07/15/2014 05:38 PM, Simone Giannecchini wrote:

Dear William,
I loaded the sample data + the style (not as default but as additional
style) in a standlone binary for geoserver
2.4.7 and ti worked for me.

You can find it at this link (in a few mins...):

http://demo.geo-solutions.it/share/temp/geoserver-2.4.7.zip

Let me know if this helps.

Regards,
Simone Giannecchini

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

-------------------------------------------------------

On Wed, Jul 16, 2014 at 1:01 AM, Simone Giannecchini
<simone.giannecchini@anonymised.com> wrote:

Ciao Williams,
can you change the log level to verbose send a request and then send
me the logs?

That said, can you tell me which platform you are working on and the
paster here also the exact information
about the geoserver version (look under "About GeoServer")?

Regards,
Simone Giannecchini

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

-------------------------------------------------------

On Tue, Jul 15, 2014 at 5:22 PM, William Hudspeth
<bhudspeth@anonymised.com> wrote:

Thank you for your assistance Simone,

For the appropriate layer, under the 'Publishing' tab, and for the 'WMS
Settings' -> 'Default Style' setting, I have selected 'PM2.5', which is the
name of the SLD style I am referring the layer to (see below for code).
The small graphic under the 'Default Style' selection drop down correctly
shows the red-to-blue color range, but a preview of the layer fails to show
the correct styling that you sent me.

<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0" 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;&gt;
<NamedLayer>
<Name>PM 2.5 Geotiffs</Name>
<UserStyle>
<Name>PM 2.5 Geotiff Color Ramp</Name>
<Title>PM 2.5 Color Classification</Title>
<FeatureTypeStyle>
<Rule>

<RasterSymbolizer>
<ColorMap type="ramp">
<ColorMapEntry color="#000000" quantity="0.0" opacity="0.0"/>
<ColorMapEntry color="#0000FA" quantity="1.0" opacity="1.0"/>
<ColorMapEntry color="#FA0035" quantity="30.0" opacity="1.0"/>
</ColorMap>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>

On 07/14/2014 04:35 PM, Simone Giannecchini wrote:

Dear William,
I tested the (privately) sent sample data and it worked.

I suspect that you are previewing the data without specifing the correct
style.
Either you set your style as the default one or you explicitly call it
using the style dropdown. If you don't specify your style as the
default one
the "raster" style will kick-in and it does very little that is:
- select a band, usually number 1
- stretch to 256 bits

The experience you are describing is compatible with this situation.

Let me know how it goes.
Regards,
Simone Giannecchini

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

-------------------------------------------------------

On Sun, Jul 13, 2014 at 7:53 PM, Simone Giannecchini
<simone.giannecchini@anonymised.com> wrote:

Dear W,
stupid question, did you select the style you mention as the default
style in the "publishing" tab for this geotiff's layer?

If so, can you share (even privately) a sample of the geotiff as well
as the sld?

Regards,
Simone Giannecchini

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

-------------------------------------------------------

On Wed, Jul 9, 2014 at 7:39 PM, VictoriaH <bhudspeth@anonymised.com> wrote:

Hello GeoServer List,

I am using GeoServer 2.4-SNAPSHOT on Ubuntu 12.10. I am trying to
correctly
render a Geotiff in Geoserver. When I do a layer preview, the data is
rendered as grey scale. I have an SLD with the appropriate color
definitions
as:

<RasterSymbolizer>
            <ColorMap type="ramp">
                <ColorMapEntry color="#000000" quantity="0.0"
opacity="0.0"/>
                <ColorMapEntry color="#0000FA" quantity="1.0"
opacity="0.1"/>
                <ColorMapEntry color="#FA0035" quantity="30.0"
opacity="0.1"/>
            </ColorMap>
</RasterSymbolizer>

Transparency for the NoData Value of 0 works well, but I do not get the
blue
to red color ramp that I expect. The gdalinfo output for the GeoTiff is:

Driver: GTiff/GeoTIFF
Files: pm_final_byte.tif
Size is 3600, 1800
Coordinate System is:
GEOGCS["WGS 84",
      DATUM["WGS_1984",
          SPHEROID["WGS 84",6378137,298.257223563,
              AUTHORITY["EPSG","7030"]],
          AUTHORITY["EPSG","6326"]],
      PRIMEM["Greenwich",0],
      UNIT["degree",0.0174532925199433],
      AUTHORITY["EPSG","4326"]]
Origin = (-180.000000000000000,90.000000000000000)
Pixel Size = (0.100000000000000,-0.100000000000000)
Metadata:
    AREA_OR_POINT=Area
Image Structure Metadata:
    INTERLEAVE=BAND
Corner Coordinates:
Upper Left (-180.0000000, 90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"N)
Lower Left (-180.0000000, -90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"S)
Upper Right ( 180.0000000, 90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"N)
Lower Right ( 180.0000000, -90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"S)
Center ( 0.0000000, 0.0000000) ( 0d 0' 0.01"E, 0d 0' 0.01"N)
Band 1 Block=3600x2 Type=Byte, ColorInterp=Gray
    Min=3.393 Max=99.520
    Minimum=3.393, Maximum=99.520, Mean=16.095, StdDev=8.735
    NoData Value=0
    Metadata:
      STATISTICS_MAXIMUM=99.520126342773
      STATISTICS_MEAN=16.095298841161
      STATISTICS_MINIMUM=3.39302277565
      STATISTICS_STDDEV=8.7346241966425

I don't know what I doing incorrectly (why I don't get my colors)

Thanks, W

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/GeoServer-color-ramp-doesn-t-work-for-Geotiff-tp5150350.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community
Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users