Thanks Brad and sorry for duplicate message In following code for WFS, point is defined by WKT . Isn't it? (Note that it is defined as "POINT(Lat Long)"). filterString = "DWithin(the_geom, POINT(30 40),1,meters)"; var filter = encodeURIComponent(filterString); vectorSource = new ol.source.Vector({ format: new ol.format.GML(), url: 'http://localhost:8080/geoserver/wfs?' + 'SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&' + 'typename=ws:Layer1&' + 'CQL_FILTER=' + filter, }); Regards From: Brad Hards <br...@frogmouth.net> To: 'Saka Royban' <sakaroy...@yahoo.com>; 'GeoServer Mailing List List' <geoserver-users@lists.sourceforge.net> Sent: Tuesday, August 23, 2016 3:08 PM Subject: RE: [Geoserver-users] Axis order in WMS ? > Following code works for both WMS 1.1.1 and 1.3.0, without any change in > point definition: > CQL_FILTER: "DWithin(the_geom, POINT(40 30), 1, meters)", The coordinate order in this filter is defined by WKT (simple features spec), not by WMS.
See http://docs.geoserver.org/latest/en/user/services/wms/basics.html for an example that follows the WMS 1.3 order. Brad
------------------------------------------------------------------------------
_______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users