Hi Ednardo, A cql_filter parameter would do the trick. You'll probably have to adjust this request but here's an example.
https://geoserver.semob.df.gov.br/geoserver/semob/wfs?VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=semob:Linhas de onibus&outputFormat=application/json&CQL_FILTER=DWITHIN(geo_linhas_lin,Point(215457.39673174 8271537.35041851),250,meters) Hope this helps. Envoyé à partir d’Outlook<http://aka.ms/weboutlook> ________________________________ De : Ednardo de oliveira Ferreira <[email protected]> Envoyé : 26 avril 2023 13:22 À : [email protected] <[email protected]> Objet : [Geoserver-users] WFS spatial filters Hi! I want an URL that generate a JSON file with bus lines near 250 meters from a point. It generates a JSON, but is not filtering. All the features are generated, but it should be less then 10 bus lines. Where is my mistake? Follow the URL. https://geoserver.semob.df.gov.br/geoserver/semob/wfs?VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=semob:Linhas de onibus&outputFormat=application/json&Filter= <ogc:Filter> <ogc:DWithin> <ogc:PropertyName>geo_linhas_lin</ogc:PropertyName> <gml:Point><gml:coordinates>215457.39673174,8271537.35041851</gml:coordinates></gml:Point> <ogc:Distance units="m">250</ogc:Distance> </ogc:DWithin></ogc:Filter> thank you! -- "E conhecereis a verdade, e a verdade vos libertará" (João 8:32)
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
