Hi,

I can confirm that with Geoserver 2.24.1 this request shows just an empty map
http://localhost:8080/geoserver/sf/wms?service=WMS&version=1.1.0&request=GetMap&layers=sf%3Aarchsites&bbox=589851.4376666048%2C4914490.882968263%2C608346.4603107043%2C4926501.8980334345&width=768&height=498&srs=EPSG%3A26713&styles=&format=image/png&CQL_FILTER=DWithin(the_geom,Point(593250%204923867),10,kilometers)
but this one shows filtered points
http://localhost:8080/geoserver/sf/wms?service=WMS&version=1.1.0&request=GetMap&layers=sf%3Aarchsites&bbox=589851.4376666048%2C4914490.882968263%2C608346.4603107043%2C4926501.8980334345&width=768&height=498&srs=EPSG%3A26713&styles=&format=image/png&CQL_FILTER=DWithin(the_geom,Point(593250%204923867),10000,meters).

-Jukka Rahkonen-

Lähettäjä: geospatial techno <geospatial.techno2...@gmail.com>
Lähetetty: perjantai 15. joulukuuta 2023 15.12
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] Conversion meters to kilometers or feet in DWithin 
filtering

I have used the WMS service with the CQL filter in GeoServer. Currently, I want 
to use the "DWithin" spatial operators to filter features by default GeoServer 
data ("sf:archsites" layer). I specifically need to filter a specific point 
(593250, 4923867) using a radius of 10,000 meters.
I want to substitute meters with something like kilometers.
The issue is that these two commands should produce the same results in the 
output, however in geoserver, it doesn't work this way. Why?

Here are the CQL filter codes:
- CQL_FILTER=DWithin(the_geom,Point(593250 4923867),10000,meters)
- CQL_FILTER=DWithin(the_geom,Point(593250 4923867),10,kilometers)

Regards
_______________________________________________
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


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to