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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to