[mapserver-users] FILTER

Espen.Messel at ffi.no Espen.Messel at ffi.no
Thu Feb 19 23:08:44 PST 2009


> -----Opprinnelig melding-----
> Fra: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-
> bounces at lists.osgeo.org] På vegne av prathee11 at gmail.com
> Sendt: 20. februar 2009 05:33
> Til: mapserver-users at lists.osgeo.org
> 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
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list