Looks great here too... Opening under Internet Explorer 7 and Firefox 3.0.6
________________________________________
From: Simone Giannecchini [simboss1@anonymised.com]
Sent: Wednesday, April 22, 2009 12:08 PM
To: Freeman, Aleda (EEA)
Cc: massgis@anonymised.com; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Trouble symbolizing a float SDE raster
I just tried the link you sent over and it seems to give me a nice
map. I would refresh your broswer cache probably.
Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy
phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928
http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini
-------------------------------------------------------
On Wed, Apr 22, 2009 at 5:42 PM, Freeman, Aleda (EEA)
<Aleda.Freeman@anonymised.com> wrote:
I'm having trouble symbolizing a raster layer in SDE.
(I haven't done many of these SLD for rasters yet, I have one successful one
for a one band, one bit, no colormap)
Perhaps someone out there can spot what I'm doing wrong or point me to an
example.
It's a one band, float, no colormap raster.
It has 32 bit pixel depth, 5 pyramids, stats calculated, min 1.74057 and
max 16.5523
It draws in grayscale fine with the default "raster" style
http://maps.massgis.state.ma.us/geoserver/wms?bbox=-69305.21564636956,669146.1804361595,613294.7843538274,1494146.1804343383&styles=&Format=application/openlayers&request=GetMap&version=1.1.1&layers=massgis:GISDATA.IMG_WIND_SPD30M&width=505&height=550&srs=EPSG:26986
What I want to do is give it 10 colors, breaking the values into ranges, as
in this ArcMap screenshot:
http://maps.massgis.state.ma.us/test_images/img_wind_spd30m_arcmap.gif
I created this SLD and created a style named "IMG_WIND_SPD30M::Default"
I need to put values between, say 4.5 and 5.0 should be a certain color,
values between 5.0 and 5.5 should be another color, etc.
I'm not sure whether this SLD is the way to express this.
<?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>raster_layer</Name>
<LayerFeatureConstraints>
<FeatureTypeConstraint/>
</LayerFeatureConstraints>
<UserStyle>
<Name>raster</Name>
<Title>A boring default style</Title>
<Abstract>A sample style for rasters</Abstract>
<FeatureTypeStyle>
<FeatureTypeName>Feature</FeatureTypeName>
<Rule>
<RasterSymbolizer>
<ColorMap type="ramp" extended="true">
<ColorMapEntry color="#FFFFFF" quantity="4.5" opacity="1.0"/>
<ColorMapEntry color="#D9FFE2" quantity="5.0" opacity="1.0"/>
<ColorMapEntry color="#B1FCB8" quantity="5.5" opacity="1.0"/>
<ColorMapEntry color="#41EB74" quantity="6.0" opacity="1.0"/>
<ColorMapEntry color="#FDCEFF" quantity="6.5" opacity="1.0"/>
<ColorMapEntry color="#FA95FF" quantity="7.0" opacity="1.0"/>
<ColorMapEntry color="#FDCA75" quantity="7.5" opacity="1.0"/>
<ColorMapEntry color="#FF846F" quantity="8.0" opacity="1.0"/>
<ColorMapEntry color="#E34242" quantity="8.5" opacity="1.0"/>
<ColorMapEntry color="#A80000" quantity="100" opacity="1.0"/>
</ColorMap>
<Opacity>1.0</Opacity>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</UserLayer>
</StyledLayerDescriptor>
But when I apply the style:
http://maps.massgis.state.ma.us/geoserver/wms?bbox=-69305.21564636956,669146.1804361595,613294.7843538274,1494146.1804343383&styles=IMG_WIND_SPD30M::Default&Format=application/openlayers&request=GetMap&version=1.1.1&layers=massgis:GISDATA.IMG_WIND_SPD30M&width=505&height=550&srs=EPSG:26986
I have a blank map and no error in the geoserver.log...
I also tried changing type to "classes" instead of "ramp", with the same
result (no map, no message).
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users