Thanks for pointing that out, that should solve the problem :)

Cheers
Adam

On 30/11/2010, at 12:00 PM, Joshua M. Thompson wrote:

> On Mon, Nov 29, 2010 at 5:33 PM, Adam Ratcliffe <[email protected]> wrote:
>> I'm now trying to restructure my SLD as all symbolizers declared for the 
>> UserStyle are being applied to my features e.g. a polygon has the 
>> LineSymbolizer applied for its stroke and the PointSymbolizer applied to its 
>> centroid.
>> 
>> I've tried using the non-standard geometryType function as shown in the SLD 
>> excerpt below but am still seeing all symbolizers applied.  Am I missing 
>> something obvious here?
>> 
>> Cheers
>> Adam
>> 
>> ...
>>    <sld:UserStyle>
>>      <sld:Name>default</sld:Name>
>>      <sld:FeatureTypeStyle>
>>        <sld:Rule>
>>          <ogc:PropertyIsEqualsTo>
>> [snip]
> 
> Geoserver isn't picking up your filter rules because your SLD isn't
> quite valid.  Your filter rules need to be inside <ogc:Filter> ...
> </ogc:Filter> tags, like this:
> 
>     <Rule>
>       <ogc:Filter>
>         <ogc:PropertyIsEqualsTo>
>           <ogc:Function name="geometryType">
>             <ogc:PropertyName>wkb_geometry</ogc:PropertyName>
>           </ogc:Function>
>           <ogc:Literal>Polygon</ogc:Literal>
>         </ogc:PropertyIsEqualsTo>
>       </ogc:Filter>
> 
>      ... etc ...
> 
> ------------------------------------------------------------------------------
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to