Hot answers tagged

8 votes
Accepted

Download a small part of a WFS map in QGIS

The QGIS attribute management is designed in such a way that with the default settings it is rather impossible to deal with the attributes of large WFS layers but fortunately there is an option to ...
user avatar
  • 52.5k
7 votes
Accepted

How to get all records if WFS output limited to 1000?

Check the service capabilities https://geoservices.noord-holland.nl/ags/services/oi_dataservice_alg/MapServer/WFSServer?request=GetCapabilities&service=WFS&version=2.0.0 <ows:Constraint ...
user avatar
  • 52.5k
6 votes
Accepted

Read WFS layers with PyQGIS

As you are in a standalone application according to your code, you need to load your qgs/qgz QGIS project file before trying to get WFS list. At the moment, you ask to read WFS list from an empty ...
user avatar
  • 28.7k
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

Finding the capacity of GeoServer to handle load

If you have fixed hardware, create a semi-randomized stress test and increase the number of clients until the server either starts mis-behaving or the throughput does not go up any longer. This ...
user avatar
  • 15.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

Get total feature count in WFS service

I never found how to do it in Python with owslib.wfs, therefore i use the GetFeature request of WFS v.1.1.0 with parameter resulttype=hits (as in Only return the NumberOfFeatures in a WFS query) and ...
user avatar
  • 51.2k
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

Adding a PNG image to a WFS layer in an OpenLayers?

To display an image on a LineString you will need a style array, one style with geometry function which returns a Point geometry (e.g. the midpoint of the line) where the image is to be placed, and ...
user avatar
  • 9,968
3 votes
Accepted

Why spatial filter (DWITHIN) is not working in WFS

There are multiple problems with your filter: The space before FILTER prevents the server parsing and using it You spelled DWithin wrong (Within is a different filter entirely) You are using the ...
user avatar
  • 75.1k
3 votes

Describe feature request for a WFS

There is no secret to how a WFS works, it is all set out in the OGC WFS Standard. There you will find a DescribeFeatureType request described as: The DescribeFeatureType operation returns a schema ...
user avatar
  • 75.1k
3 votes
Accepted

How to solve: DriverError: unsupported driver: 'WFS' - when reading wfs to geopandas

That sample code was missing an important bit, enabling WFS support in fiona. Fiona doesn't support WFS by default. Add the following near the top of your script: # enable WFS support import fiona ...
user avatar
  • 52.8k
3 votes
Accepted

Adding spatial filter to WFS layer request not working

You can use the SQL Query Composer in the WFS Server Connection Dialog when adding the data. There you can create a spatial filter. EDIT: For using WFS via GeoServer in python and setting a bounding-...
user avatar
  • 950
3 votes

Download a small part of a WFS map in QGIS

You can load the wfs service in QGIS and select a area and save the area as shap/geopackage. Steps: Add Layer: Open QGIS-->Layer-->Add Layer-->Add WFS Layer In the left pane, select "...
user avatar
3 votes

Building a WFS whose features hold lists of records

You would need to create the relationship via SQL. You could either write the query directly in the layer definition on Geoserver or create a view in the database and select this view. SQL (Postgre ...
user avatar
  • 950
3 votes

GeoServer GML Direct

You can't do that easily, GML is a great interchange format but a very poor storage format as you have parse all of it to be able to serve parts of it. Convert your GML into a database table or ...
user avatar
  • 75.1k
2 votes

GeoServer Cascaded WFS append raw XML to POST request

The remote WFS conforms to the specifications used (XML, WFS, GML, Filter Encoding). It may be somewhat strict, but it is not "broken". Furthermore, while the request is "well-formed&...
user avatar
  • 21
2 votes

GeoServer Cascaded WFS append raw XML to POST request

There is currently no way to control the XML that GeoServer sends to the remote WFS as it is generated on the fly with each request. The main problem is that the remote server is broken in that it ...
user avatar
  • 75.1k
2 votes

AUTHORITY:NUMBER error in GeoServer request with bbox filter

The bbox should be the extent of the dragbox geometry, not its coordinates. You should also specify its projection code, which will be your view projection var extent = dragBox.getGeometry().getExtent(...
user avatar
  • 9,968
2 votes
Accepted

Using FAO Geonetwork Data WFS or WCS in QGIS

You can add the CSW endpoint for the GeoNetwork instance to QGIS using Web > MetaSearch Name: FAO Map Catalog URL: https://data.apps.fao.org/map/catalog/srv/eng/csw? Then use the search tool to ...
user avatar
  • 11.9k
2 votes
Accepted

Specific WFS error - Fiona: fiona.errors.DriverError: '/vsimem/4ec3f86c094340cc8704fe5b9aa0f517

You have a problem with your Fiona and GeoPandas modules, because the q value is obtained here by the request module in JSON format (and not directly by GeoPandas). GeoPandas read the resultant JSON ...
user avatar
  • 51.2k
2 votes

Get only a filter value ols:PROPERTIES from this API response

I need to add propertyName in the parameter like the old parameter list is service:WFS version:1.0.0 request:GetFeature typeName:ols:ols srsName:EPSG:4326 maxFeatures:1 format_options:application/...
user avatar
2 votes
Accepted

How to properly craft a LineString CQL for WFS GET filter?

LineStrings only have one set of brackets, so INTERSECTS(geometry, LineString(-90 35,-80 35)) will work. If it was a MultiLineString you would need 2 sets.
user avatar
  • 75.1k
2 votes
Accepted

Leaflet, L.WFST : show a Popup for the attribute

L.WFST layer fires a click event. Use that to create a popup. The code should look something like this: var popup = new L.Popup(); var wfstPoly = new L.WFST({ url: 'https://mappingforyou.eu/...
user avatar
  • 310
2 votes
Accepted

Multiple WFS layers in Leaflet, loaded with Ajax with bounding box, do not display correctly

There are three things you have to take care of to make it work. The main thing is using different name for each jasonp callback when retrieving WFS data. Since calls to get WFS data are async, when ...
user avatar
  • 17.2k
2 votes
Accepted

Extrapolate URI from a WFS connection

The normal approach is to look at the GetCapabilities response of the service. All OGC services provide this as a way of accessing the data. Ideally adding ?request=GetCapabilities&service=WFS to ...
user avatar
  • 75.1k
1 vote
Accepted

Syntax for Masking Polygons which do not contain line using cross-layer filtering in GeoServer

Your query fails when you leave out the INCLUDE because with 2 layers you must have 2 filters. But you don't want the first one to be INCLUDE because that will draw all of your polygons. You want that ...
user avatar
  • 75.1k
1 vote

GeoServer symbology doesn't show when I use WFS

WFS has no support for providing client-side styling information. The OGC API - Features can have those links, especially when coupled with an https://github.com/opengeospatial/ogcapi-styles service. ...
user avatar
  • 15.7k
1 vote

GeoServer symbology doesn't show when I use WFS

WFS sends the raw data to your client, which is responsible for the styling, so this is entirely expected behaviour.
user avatar
  • 75.1k
1 vote

WFS layer saved as a shapefile

The WFS provides the functionality (in theory) to allow you to request the data directly, you just need to write a URL to request the data. A WFS request would look like: https://environment.data.gov....
user avatar
  • 11.9k

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