Simone,
So my SLD is correct and I do not need to modify it.
bw
-----Original Message-----
From: Simone Giannecchini [mailto:simboss1@anonymised.com]
Sent: Friday, November 14, 2008 8:58 AM
To: Brian.Walawender@anonymised.com
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Raster SLD help in Geoserver 1.7
Ciao Brian,
the type attribute is an extension I implemented to allow interval
color mapping.
This means that you need to tu UNcheck style validation to be able to
apply it properly.
Simone.
-------------------------------------------------------
Eng. 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 Fri, Nov 14, 2008 at 3:50 PM, Brian Walawender
<Brian.Walawender@anonymised.com> wrote:
Hello,
I am currently using the following SLD style to colorize my raster.
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sld
StyledLayerDescriptor.xsd"
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">
<!-- a named layer is the basic building block of an sld document -->
<NamedLayer>
<Name>Precip Point Style</Name>
<UserStyle>
<!-- they have names, titles and abstracts -->
<Title>Precip Marker</Title>
<Abstract>A sample style that just prints out a black
square</Abstract>
<FeatureTypeStyle>
<Rule>
<RasterSymbolizer>
<Opacity>1.0</Opacity>
<ColorMap type="Intervals">
<ColorMapEntry color="#FFFFFF"
quantity="0.00" opacity="0.0" />
<ColorMapEntry color="#FFFFFF"
quantity="0.0001" opacity="0.0" />
<ColorMapEntry color="#7FFF00"
quantity="0.01"/>
<ColorMapEntry color="#00CD00"
quantity="0.10"/>
<ColorMapEntry color="#008B00"
quantity="0.25"/>
<ColorMapEntry color="#104E8B"
quantity="0.5"/>
<ColorMapEntry color="#1E90FF"
quantity="0.75"/>
<ColorMapEntry color="#00B2EE"
quantity="1.00"/>
<ColorMapEntry color="#00EEEE"
quantity="1.25"/>
<ColorMapEntry color="#8968CD"
quantity="1.50"/>
<ColorMapEntry color="#912CEE"
quantity="1.75"/>
<ColorMapEntry color="#8B008B"
quantity="2.0"/>
<ColorMapEntry color="#8B0000"
quantity="2.5"/>
<ColorMapEntry color="#CD0000"
quantity="3.0"/>
<ColorMapEntry color="#EE4000"
quantity="4.0"/>
<ColorMapEntry color="#FF7F00"
quantity="5.0"/>
<ColorMapEntry color="#CD8500"
quantity="6.0"/>
<ColorMapEntry color="#EEEE00"
quantity="7.0"/>
<ColorMapEntry color="#FFFF00"
quantity="8.0"/>
</ColorMap>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
It colors the raster properly but if I try to modify it in the style
editor,
I get the following error:
cvc-complex-type.3.2.2: Attribute 'type' is not allowed to appear in
element
'ColorMap'.
I know raster handling changed in Geoserver 1.7, how do I make my style
complaint?
Thanks.
bw
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users