Thanks David that worked
Correct syntax:
<sld:Rule>
<sld:Name>All Other</sld:Name>
<sld:Title>All Other</sld:Title>
<sld:Abstract>Abstract</sld:Abstract>
<sld:ElseFilter />
<sld:MaxScaleDenominator>100000000000</sld:MaxScaleDenominator>
<sld:LineSymbolizer>
.........................................
On 1 November 2010 13:33, David Winslow <[email protected]> wrote:
> ElseFilter is in the sld namespace, not the ogc filter one. Try:
> <sld:ElseFilter/> instead of <ogc:ElseFilter></ogc:ElseFilter>
> --
> David Winslow
> OpenGeo - http://opengeo.org/
>
> On Mon, Nov 1, 2010 at 1:26 PM, Travis Kirstine <[email protected]>
> wrote:
>>
>> I am trying to us the ElseFilter but can seem to find the correct
>> syntax. My understanding is that ElseFilter can be used to style all
>> remaining values not filtered with other rules, is this the correct
>> usage?
>>
>> The error and syntax is below. I am using GeoServer 2.02
>>
>>
>> Error:
>> org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content
>> was found starting with element 'ogc:ElseFilter'. One of
>> '{"http://www.opengis.net/sld":LegendGraphic,
>> "http://www.opengis.net/ogc":Filter,
>> "http://www.opengis.net/sld":ElseFilter,
>> "http://www.opengis.net/sld":MinScaleDenominator,
>> "http://www.opengis.net/sld":MaxScaleDenominator,
>> "http://www.opengis.net/sld":Symbolizer}' is expected.
>>
>>
>>
>> <sld:Rule>
>> <sld:Name>All Other</sld:Name>
>> <sld:Title>All Other</sld:Title>
>> <sld:Abstract>Abstract</sld:Abstract>
>> <ogc:ElseFilter>
>> </ogc:ElseFilter>
>>
>> <sld:MaxScaleDenominator>100000000000</sld:MaxScaleDenominator>
>> <sld:LineSymbolizer>
>> <sld:Stroke>
>> <sld:CssParameter name="stroke">
>> <ogc:Literal>#d8d7d3</ogc:Literal>
>> </sld:CssParameter>
>> <sld:CssParameter name="stroke-linecap">
>> <ogc:Literal>butt</ogc:Literal>
>> </sld:CssParameter>
>> <sld:CssParameter name="stroke-linejoin">
>> <ogc:Literal>miter</ogc:Literal>
>> </sld:CssParameter>
>> <sld:CssParameter name="stroke-opacity">
>> <ogc:Literal>1.0</ogc:Literal>
>> </sld:CssParameter>
>> <sld:CssParameter name="stroke-width">
>> <ogc:Literal>1.0</ogc:Literal>
>> </sld:CssParameter>
>> <sld:CssParameter name="stroke-dashoffset">
>> <ogc:Literal>0.0</ogc:Literal>
>> </sld:CssParameter>
>> </sld:Stroke>
>> </sld:LineSymbolizer>
>> <sld:TextSymbolizer>
>> <sld:Font>
>> <sld:CssParameter name="font-family">
>> <ogc:Literal>Arial</ogc:Literal>
>> </sld:CssParameter>
>> <sld:CssParameter name="font-size">
>> <ogc:Literal>9.0</ogc:Literal>
>> </sld:CssParameter>
>> <sld:CssParameter name="font-style">
>> <ogc:Literal>normal</ogc:Literal>
>> </sld:CssParameter>
>> <sld:CssParameter name="font-weight">
>> <ogc:Literal>bold</ogc:Literal>
>> </sld:CssParameter>
>> </sld:Font>
>> <sld:LabelPlacement>
>> <sld:LinePlacement>
>> <sld:PerpendicularOffset>
>> <ogc:Literal>10.0</ogc:Literal>
>> </sld:PerpendicularOffset>
>> </sld:LinePlacement>
>> </sld:LabelPlacement>
>> <sld:Fill>
>> <sld:CssParameter name="fill">
>> <ogc:Literal>#000000</ogc:Literal>
>> </sld:CssParameter>
>> <sld:CssParameter name="fill-opacity">
>> <ogc:Literal>1.0</ogc:Literal>
>> </sld:CssParameter>
>> </sld:Fill>
>> <sld:VendorOption
>> name="spaceAround">2</sld:VendorOption>
>> <sld:VendorOption
>> name="group">yes</sld:VendorOption>
>> <sld:VendorOption
>> name="followLine">true</sld:VendorOption>
>> </sld:TextSymbolizer>
>> </sld:Rule>
>>
>>
>> ------------------------------------------------------------------------------
>> Nokia and AT&T present the 2010 Calling All Innovators-North America
>> contest
>> Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
>> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
>> marketing
>> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
>> http://p.sf.net/sfu/nokia-dev2dev
>> _______________________________________________
>> Geoserver-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users