Hello, 

Is it possible to filter in SLD by WKT Geometry? I have a WKT string (could be 
a total different one then this one) and I want to filter out all the elements 
who intersects with this WKT geometry.

<StyledLayerDescriptor version="1.0.0" xmlns:gml="http://www.opengis.net/gml"; 
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";>
  <NamedLayer>
    <Name>topp:percelen_v</Name>
    <UserStyle>
      <Name>custom_filter</Name>
      <FeatureTypeStyle>
        <Rule>
          <Name>topp:percelen_v</Name>
          <Title>topp:percelen_v</Title>
          <ogc:Filter>
            <ogc:Intersects>
              <ogc:PropertyName>wkb_geometry</ogc:PropertyName>
                <gml:_Geometry abstract="false">MULTIPOLYGON(((203590.70805 
453282.3099,203593.497 453277.56215,203591.50695 453269.42605,203585.439 
453270.97305,203582.57505 453271.69195,203573.826 453273.7881,203572.275 
453274.17695,203564.38605 453276.02285,203566.76895 453285.8911,203569.47195 
453287.4661,203590.70805 453282.3099)))</gml:_Geometry>
            </ogc:Intersects>
          </ogc:Filter>
          <LineSymbolizer>
            <Stroke>
              <CssParameter name="stroke">#FF0000</CssParameter>
              <CssParameter name="stroke-width">2</CssParameter>
            </Stroke>
          </LineSymbolizer>
        </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>


Met vriendelijke groet,
Lucas Heezen

Covadis b.v. 
t: 026 3616600 

Geograaf 12 
f: 026 3612317 

6921 EW Duiven 
e: hee...@covadis.nl
 


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to