I'm new to GeoServer andI want to buffer an area around a point. I'm using a DWithin WFS filter but not getting any results. Please tell me the correct format to use DWithin.
My GET request:
Result obtained:
no buffering is done.. all the points are obtained. What to do?
Best Answer
Here is an example of the syntax for DWITHIN
Note that DWITHIN takes three parameters: reference geometry, distance, and distance unit. However, GeoServer does not really support units so that it could convert kilometers to degrees. In this example the topp:states is having degrees as units and degrees is also used for building the buffer even I wrote kilometers as units. Units does not really do anything but it is a compulsory parameter for the DWITHIN and degrees does not belong to the list of accepted units. I consider this as a bug in GeoServer.
Acceptable units are one of: "feet", "meters", "statute miles", "nautical miles", "kilometers".