Hi allI'm using GeoServer + OpenLayers. As you know, there is some modification 
between different versions in WFS and WMS. Regrading WFS, everything works 
correctly, i,e. if Long=40 and Lat=30 then following code works perfectly :
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,
});
I mean, i have to define point in Lat/Long order when i'm using WFS 1.1.0 or 
later. But regarding WMS -though axis order has been changed to Lat/Long in WMS 
1.3.0- I can't get a good result. Following code works for both WMS 1.1.1 and 
1.3.0, without any change in point definition:
layer1 = new ol.layer.Image({ title: 'myLayer', source: new 
ol.source.ImageWMS({ url: 'http://localhost:8080/geoserver/wms', params: { 
LAYERS: 'ws:Layer1', VERSION: '1.3.0', CQL_FILTER: "DWithin(the_geom, POINT(40 
30), 1, meters)",  } })});
Changing code to "POINT(30 40)" returns nothing.Why it is so? Why Geoserver 
does not understand axis order of Lat/Long in WMS 1.3.0? 
Thanks in advance for your help
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to