1

If my WFS version is 1.0.0 as below: service=WFS&request=GetFeature&version=1.0.0&typename=XXXX&outputFormat=json&srsname=EPSG:3857&cql_filter=DWITHIN(geometry,POINT(63.92449515625001 16.18202625967993),2.0185062969678143,meters)&

I get the data properly, but if the WFS version is 1.1.0 the data is not coming properly. service=WFS&request=GetFeature&version=1.1.0&typename=XXXX&outputFormat=json&srsname=EPSG:3857&cql_filter=DWITHIN(geometry,POINT(63.92449515625001 16.18202625967993),2.0185062969678143,meters)&

The returned JSON does not have the data it has proper totalFeatures count only.

{
type: "FeatureCollection"
totalFeatures: 1
features: [0]
crs: null
}
  • Try POINT(16.18202625967993 63.92449515625001) with WFS 1.1.0 and above. – user30184 Oct 8 '15 at 13:32
4

It's likely the axis flipping biting you, you should flip coordinates in WFS 1.1 and 2.0 filters: http://docs.geoserver.org/stable/user/services/wfs/basics.html#axis-ordering

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.