Hi all, after having received extremely useful support from this community, I wish to publicly recognize the effort spent by Yewondwossen Assefa in supporting my request of help.
Thanks to his support I was able to overcome my problem related to the use of the SLD feature to apply a spatial user-related filter to a coverage. After his help, I went on with the experiments and I found that, under the release 5.6.5-2 of mapserver (linux Debian), the spatial filter, applied to a coverage maintains all the features defined in the map file for the elements that fall within the BBOX filter (this spatial filter worked fine as well as the more generic polygonal fence) with the exception of the LABEL, which was not passed to the selected features. In other words: given the calling URL like: http://bla-bla/cgi-bin/mapserv?map=/bla-bla-bla/maps_2.map&LAYERS=mylayer&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&TRANSPARENT=TRUE&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=-10018754.17,-10018754.17,0,0&WIDTH=256&HEIGHT=256&SLD=http://localhost/sldfile.xml and an sldfile.xml containing only the spatial filter like: <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/sld" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> <NamedLayer> <Name>mylayer</Name> <UserStyle> <Title>xxx</Title> <FeatureTypeStyle> <Rule> <ogc:Filter> <BBOX> <PropertyName>Geometry</PropertyName> <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#32632"> <gml:coordinates>$BBOX_minx,$BBOX_miny $BBOX_maxx,$BBOX_maxy</gml:coordinates> </gml:Box> </BBOX> </ogc:Filter> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> </StyledLayerDescriptor> where $BBOX_m... are variables replaced by the BBOX coords, then, assuming that the layer "mylayer" is a polygon layer with a label defined, then the whole command returns only the polygons that fall within the BBOX boundaries with all the attributes defined in the map file (like the filling color or the stroke size and color) but without the LABEL (the same call without the SLD param returns the whole coverage including the labels. Again thank you Yewondwossen and thank you all. Respectfully. Marco Bagni _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users