Ticket #917 (closed defect: invalid)
Intersect filter not working with WMS GetMap
| Reported by: | b.veldkamp@… | Owned by: | mapserverbugs |
|---|---|---|---|
| Priority: | high | Milestone: | 4.4 release |
| Component: | WMS Server | Version: | 4.3 |
| Severity: | normal | Keywords: | |
| Cc: | mapserver@…, valik.solorzano.barboza@… |
Description
We are unable to get the Intersect filter working with a WMS GetMap request.
Ordinary requests such as
http://localhost/cgi-bin/mapserv.exe?map=test.map&service=wms&version=1.1.0&request=getmap&layers=nap&styles=
work without any problem, but using an sld with an embedded intersect filter
(i.e.
http://localhost/cgi-bin/mapserv.exe?map=test.map&service=wms&version=1.1.0&request=getmap&layers=nap&styles=&sld=http://localhost/intersect.sld)
results in an empty image.
Other filters in an sld, such as PropertyIsLike, PropertyIsEqualTo of
PropertyIsBetween work correctly.
I tried a recent nightly build (sep 20), where a bug concerning spatial filters
was fixed, but still no luck. Maybe a simple example of how to apply a spatial
filter would clarify things?
Berend Veldkamp
Here's an example sld-file:
<StyledLayerDescriptor version='1 0 0'>
<NamedLayer>
<Name>nap</Name>
<UserStyle>
<Title>nap</Title>
<FeatureTypeStyle>
<Rule>
<Filter>
<Intersect>
<PropertyName>geometry</PropertyName>
<Polygon srsName="EPSG:28992">
<outerBoundaryIs>
<LinearRing>
<coordinates>258964.100000,557394.600000
259215.900000,557073.900100 259842.100000,556199.199900
261295.200000,554253.600000 258964.100000,557394.600000</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</Intersect>
</Filter>
<PointSymbolizer>
<Graphic>
<Size>5</Size>
<Mark>
<WellKnownName>circle</WellKnownName>
<Fill>
<CssParameter name="fill">#0000ff</CssParameter>
</Fill>
</Mark>
</Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Change History
Note: See
TracTickets for help on using
tickets.
