[mapserver-users] SLD and Spatial Filtering: what is working and what is not?
Hi all, playing with the SLD feature and trying to use it in order to show with a RED color only those polygons, in a coverage, that fit within a user-defined fence I have found some things that seem to be broken: The following SLD filter works fine: NamedLayer NameREQUESTED_LAYER_NAME/Name UserStyle Titlexxx/Title FeatureTypeStyle Rule ogc:Filter BBOX PropertyNameGeometry/PropertyName gml:Box srsName=http://www.opengis.net/gml/srs/epsg.xml#4326; gml:coordinates8.473,40.231 9,40.784/gml:coordinates /gml:Box /BBOX /ogc:Filter PolygonSymbolizer Fill CssParameter name=fill#FF/CssParameter /Fill /PolygonSymbolizer /Rule /FeatureTypeStyle /UserStyle /NamedLayer This SLD file works as exepected, all the polygons outside the BBOX rectangle are not displayed and those that fall within are displayed in RED color. eplacing the ogc:Filter with something more versatile like a fence (in the example I have used exactly the same vertices of the BBOX rectangle given above) it does not work. Why? NamedLayer NameREQUESTED_LAYER_NAME/Name UserStyle Titlexxx/Title FeatureTypeStyle Rule ogc:Filter Within PropertyNameGeometry/PropertyName gml:Polygon srsName=http://www.opengis.net/gml/srs/epsg.xml#4326; gml:outerBoundaryIs gml:LinearRing gml:coordinates8.473,40.231 8.473,40.784 9,40.784 9,40.231 8.473,40.231/gml:coordinates /gml:LinearRing /gml:outerBoundaryIs /gml:Polygon /Within /ogc:Filter PolygonSymbolizer Fill CssParameter name=fill#FF/CssParameter /Fill /PolygonSymbolizer /Rule /FeatureTypeStyle /UserStyle /NamedLayer I have tried also DWithin with no results (the filter is applied but no polygons are displayed). BTW sorry for my ignorance by what is the difference between Within and DWithin? And where can I find some written reference on the meaning of the Spatial Filters? What am I doing wrong? What kind of ogc:Filters are available in the SLD feature (applied to a WMS request)? Since the documentation on this particular issue is very poor I am asking the help of this community with the promise to produce, for the benefit of us all, a short and effective HOWTO recipe when the problem shall be sorted out. Thanks in advance. Marco Bagni ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD and Spatial Filtering: what is working and what is not?
On 11-06-13 1:40 PM, Marco Bagni wrote: Since the documentation on this particular issue is very poor I am asking the help of this community with the promise to produce, for the benefit of us all, a short and effective HOWTO recipe when the problem shall be sorted out. That's wonderful news. You can start to add documentation right away by: 1) heading to the MapServer wiki (http://trac.osgeo.org/mapserver/) 2) then log in (if you need to create a login see http://www.osgeo.org/osgeo_userid) 3) then pan the wiki page down and you'll see all of the wonderful wiki pages that users have created. 4) create your wiki pages 5) send an email to mapserver-users list pointing to your new wiki page Thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD and Spatial Filtering: what is working and what is not?
Jeff, apart fine sarcasm, can you (would you) be of some help? I promised my support AFTER having found the solution! ;-) Cheers Marco Bagni On Mon, June 13, 2011 7:48 pm, Jeff McKenna wrote: On 11-06-13 1:40 PM, Marco Bagni wrote: Since the documentation on this particular issue is very poor I am asking the help of this community with the promise to produce, for the benefit of us all, a short and effective HOWTO recipe when the problem shall be sorted out. That's wonderful news. You can start to add documentation right away by: 1) heading to the MapServer wiki (http://trac.osgeo.org/mapserver/) 2) then log in (if you need to create a login see http://www.osgeo.org/osgeo_userid) 3) then pan the wiki page down and you'll see all of the wonderful wiki pages that users have created. 4) create your wiki pages 5) send an email to mapserver-users list pointing to your new wiki page Thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users