Spatial filter in SLD

Anja Berkhout anja.berkhout at ARIS.NL
Thu Sep 16 07:53:49 PDT 2004


Dear list,

I try to create an SLD string (in PHP) with a spatial filter as follows:


$szSLD = '<StyledLayerDescriptor version="1.0.0">'.
          '<NamedLayer>'.
          '<Name>Testlayer</Name>'.
          '<UserStyle>'.
          '<FeatureTypeStyle>'.
          '<Rule>'.
          '<Filter>'.
          "<Intersect><PropertyName>Geometry</PropertyName>".
          "<gml:Polygon srsName='EPSG:28992'>".
          '<gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>'.
          '130036,477272 130256,477116 '.
          '130664,477865 130819,477642'.
          '</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs>'.
          '</gml:Polygon></Intersect>'.
          '</Filter>'.
          '<PointSymbolizer>'.
          '<Graphic>'.
          '<Size>5</Size>'.
          '<Mark>'.
          '<WellKnownName>square</WellKnownName>'.
          '<Fill>'.
          '<CssParameter name="fill">#ffff00</CssParameter>'.
          '</Fill>'.
          '</Mark>'.
          '</Graphic>'.
          '</PointSymbolizer>'.
          '</Rule>'.
          '</FeatureTypeStyle>'.
          '</UserStyle>'.
          '</NamedLayer>'.
          '</StyledLayerDescriptor>';

After that I use applySLD to apply the spatial filter to a layer, but
nothing happens. What am I doing wrong?
When I use a filter like <PropertyIsGreaterThanOrEqualTo> it works fine,
and two classes are created in the layer.

Greetings,
Anja


--
______________________________________________________________

ARIS - Adviesburo voor Ruimtelijke Informatie Systemen
        Hooghiemstraplein 126    Tel.  +31-(0)30-2769180
        3514 AZ  UTRECHT         Fax.  +31-(0)30-2733578
        The Netherlands          Email Anja.Berkhout at aris.nl
                                 Http://www.aris.nl
_____________________________________________________________



More information about the MapServer-users mailing list