> -----Opprinnelig melding-----
> Fra: [email protected] [mailto:mapserver-users-
> [email protected]] På vegne av [email protected]
> Sendt: 20. februar 2009 05:33
> Til: [email protected]
> Emne: [mapserver-users] FILTER
>
> I want to filter my layer accoring to client's prefernce, via the client
> interfACE. How can i sent user input to the map file under the layer,
> Filter?
> Pls anyone help me
Is it a WMS service?
If yes then
You can use SLD and FE
http://mapserver.org/ogc/sld.html
http://mapserver.org/ogc/filter_encoding.html
elseif WFS
Use FE directly
http://mapserver.org/ogc/filter_encoding.html
Regards,
Espen Messel
Example:
Put this in a xml file and include it in the SLD=url_to_xmlfile in the url or
send everything below in the SLD_BODY=xmlfile_source
<StyledLayerDescriptor version="1.0.0">
<NamedLayer>
<Name>Wave</Name>
<UserStyle>
<Title>SLD Title</Title>
<FeatureTypeStyle>
<Rule>
<Filter>
<PropertyIsGreaterThan>
<PropertyName>WaveHeight</PropertyName>
<Literal>3</Literal>
</PropertyIsGreaterThan>
</Filter>
<LineSymbolizer>
<Geometry>
<PropertyName>Wave</PropertyName>
</Geometry>
<Stroke>
<CssParameter name="stroke">#ff0000</CssParameter>
<CssParameter name="stroke-width">3</CssParameter>
</Stroke>
</LineSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
> _______________________________________________
> mapserver-users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users