9 votes
Accepted

GeoServer WFS GetFeature with BBOX returns too many elements?

The WFS BBOX works in "bbox vs bbox" mode for performance reasons, if you want the more accurate geometry intersection you can use a OGC Filter or CQL filter with the intersection operator. As for ...
user avatar
  • 15.7k
9 votes
Accepted

Get all related attribute values from features in list (QGIS)

We are going to create a new table that represents the many-to-many relationship, between the way signs and the destinations, in which the user can create the combinations between both of them. ...
user avatar
7 votes

Specifying input coordinate reference system for WFS?

WFS version 1.0.0 supports officially only the default SRS/CRS both for input and output. However, many WFS server brands have backported the srsName parameter that came with WFS 1.1.0 at least for ...
user avatar
  • 52.4k
6 votes

DWithin WFS filter is not working

Here is an example of the syntax for DWITHIN http://demo.opengeo.org/geoserver/wfs?request=getfeature&version=1.0.0&service=wfs&typename=topp:states&outputformat=json&cql_filter=...
user avatar
  • 52.4k
6 votes
Accepted

WFS filter for point in polygon (PIP) query

You can check within which polygon, if any, your point is by using Contains filter. <wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2" xmlns:topp="http://www....
user avatar
  • 52.4k
6 votes
Accepted

Parametrized SQL Views with GeoServer and WFS

Here is a typical request payload for a GetFeature with the viewparams included in the xml: <?xml version='1.0' encoding='utf-8'?> <GetFeature xmlns:xsi='http://www.w3.org/2001/XMLSchema-...
user avatar
6 votes
Accepted

WFS GetFeature with propertyName get response without geometry

In WFS geometry is also just a property. If you do not use PropertyName parameter then all the parameters are included but if you use PropertyName then you must include into the request all the (non-...
user avatar
  • 52.4k
5 votes

How to use paging in a WFS query?

I'd like to give an example to GIS-Jonathan's post because I had the same issue with a limited WFS. In my case all features where provided by adding the "count" and the "startIndex" parameter to the ...
user avatar
  • 415
5 votes
Accepted

WFS GetFeature query where typeName is a Layer Group not a Layer

You are correct- you first need to know which layers ('sublayers') exist in the group layer. If this is your own server and you already know what the sublayers are, you can skip to the end of this ...
user avatar
5 votes
Accepted

How do I filter WFS GetFeature results?

You can try using cql_filter and it's working e.g http://services.land.vic.gov.au/catalogue/publicproxy/guest/dv_geoserver/wfs?service=wfs&request=GetFeature&typeName=datavic:...
user avatar
  • 28.7k
5 votes
Accepted

WFS GetFeature query, is MAXFEATURES guaranteed to work based on typeNames order?

One might argue that the the official documentation is the WFS standard, not the GeoServer documentation. In Web Feature Service Implementation Specification with Corrigendum (Version: 1.1.3) it ...
user avatar
  • 11.9k
4 votes
Accepted

WFS version issue with DWITHIN CQL_FILTER in GeoServer

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
user avatar
  • 15.7k
4 votes

Is there a way to enable CSV or JSON output formats for MapServer WFS GetPropertyValue requests?

You can setup OUTPUTFORMAT declarations which leverage MapServer's use of OGR for custom output formats (including CSV, GeoJSON). See the documentation for further details. Update: this does not ...
user avatar
  • 1,277
4 votes
Accepted

How to SortBy a GetFeature WFS request by FeatureId (fid) in XML?

That is not supposed to work. SortBy is defined in the WFS 1.1.0 standard as The SORTBY parameter is used to specify a list of property names whose values should be used to order (upon ...
user avatar
  • 52.4k
4 votes

How to get features from WFS as a shapefile?

As @Binks alludes to in their comment, your bounding box is incorrect for the data you are querying. This runs in the Python console of QGIS, but you can copy-paste the printed bbox tuple into your ...
user avatar
  • 7,291
3 votes
Accepted

How to invoke a WFS service from command line?

To save this response in a gml file you can do the following: curl http://map.sitr.regione.sicilia.it.... -o ~/Desktop/test.gml (I was not able to get your url to work)
user avatar
  • 15.9k
3 votes
Accepted

CQL_FILTER that joins two feature types in WFS

Did I understood you right, that you basically want to request two layers in one Request? If so then just use "typeName" instead of "typeNames". See this request of two layers at the same time ( bvv:...
user avatar
  • 6,350
3 votes
Accepted

How does OpenLayers GetFeature filter strategy work?

Well, you can try CQL-filters for attribute-based queries on WMS. Look this thread for how to filter features of a wms. Afterwards you may select features from your WFS obtained from this WMS. BTW.: ...
user avatar
3 votes

How to get a feature with a srsName?

The OGC WFS 1.1.0 Specification tells us that: The optional srsName attribute of the element is used to specify a specific WFS-supported SRS to be used for returned feature geometries. Its value ...
user avatar
  • 11.9k
3 votes

OpenLayers WFS - GetFeature Draw Circle

The link below contains an example using an OpenLayers2 DrawFeature control that allows to select features via a circle. It can help using WFS GetFeature to retrieve some datas using polygon or ...
user avatar
3 votes

WFS - GetFeature by Polygon Intersects

You did not specify the &version=x.y parameter, provided like this GeoServer will likely try to parse the filter as a FES 2.0 one, instead of a Filter 1.0 one. Try adding "&version=1.0" in the ...
user avatar
  • 15.7k
3 votes

GeoServer (CQL) query to return just the boundary polygon of a filtered feature

This error is trying to tell you a FilterFunction is not a Filter which means that it doesn't evaluate to true or false. The CQL filter is used to select some or all of the features in the data store,...
user avatar
  • 75.1k
3 votes

Can any WFS server accept ECQL filter as a POST request parameter

The filter format is defined by the standard so I don't think you will find any WFS that accepts anything but OGC filters in the request. I wrote a simple program a while ago to convert ECQL to OGC ...
user avatar
  • 75.1k
3 votes
Accepted

Can any WFS server accept ECQL filter as a POST request parameter

To add a definitive answer for the record the simple answer is that WFS does not allow CQL or ECQL as the filter. It appears that some WFS providers such as GeoServer may permit you to pass a CQL ...
user avatar
3 votes

WFS GetFeature request with CQL_FILTERS with SPATIAL OPERATORS does not retrieve correct results

I think you are being bitten by loose bounding box comparisons since technically this polygon doesn't intersect any features. POLYGON((123664.03100000322 210489.5150000006, 123705.24599999934 ...
user avatar
  • 75.1k
3 votes
Accepted

problem with Bounding Box GetFeature WFS

Having a look at the whole data of the mu:MaritimeBoundary feature type and BBOX gives a hint. The red geometry is your BBOX and green line is the maritime boundary. The WfS server does not return ...
user avatar
  • 52.4k
3 votes

Get all related attribute values from features in list (QGIS)

The Expression Way I see no way to query the features of the OD-Matrix layer by matching two attributes at the same time. So I propose the creation of a new combined key field with the origins and ...
user avatar
3 votes

QGIS: How do I specify the layer for an get_feature expression in the model builder?

I've found the answer: You have to use the @layer variable to access the previous layer. So the expression looks like this attributes(get_feature(@layer, 'NEXT_DOWN', "HYBAS_ID"))['Calc'].
user avatar
  • 161
2 votes
Accepted

WFS GetFeature: Is DWithin selection equal to an Intersect selection using a circle?

There is the DWithin spatial selection but I can't find the specification of what is actually does. The specification you are looking for is the OGC Filter Encoding (FE) Specification, see the OGC ...
user avatar
  • 11.9k
2 votes

WFS GetFeature control doesn't take 'viewparams' into account

Using the WMSGetFeatureInfo method, the way to pass along viewparams is by using vendorparams and and assigning the viewparams in the eventlistener before the callback function retrieving the "...
user avatar
  • 41

Only top scored, non community-wiki answers of a minimum length are eligible