Welcome to Defra Data Services Forum

    How do I use WFS layers?

    Follow

    A Web Feature Service (WFS) is a way of accessing spatial vector data via a streaming feed, without the user having to download all of the data.  Your GIS software will be able to connect to the service (refer to your software user guide for details) and then you can use the data like a normal spatial layer.

    There are some known issues with connecting to Defra DSP WFS services. In some cases, the X and Y co-ordinates are translated differently by different software.  If the data does not display as expected, you may need to reconnect to the WFS, choosing the “Invert axis orientation” option (or equivalent).
    If you cannot connect at all, you may need to add some additional parameters to the WFS URL.

    Client programs like ArcGIS and QGIS can be provided with service parameters that enable them to use the WFS more fully. The service capabilities provide information on what parameters the service can use.

    To obtain the service capabilities, add parameters to the WFS link like in the following example: 

    https://environment.data.gov.uk/spatialdata/chalk-rivers/wfs?REQUEST=GetCapabilities&SERVICE=WFS


    These are examples of WFS links with additional parameters:

    https://environment.data.gov.uk/spatialdata/flood-map-for-planning-rivers-and-sea-flood-zone-3/wfs?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAME=Flood_Map_for_Planning_Rivers_and_Sea_Flood_Zone_3&BBOX=450660,332709,461502,347119,EPSG:27700&srsName=EPSG:27700   

    https://environment.data.gov.uk/spatialdata/historic-flood-map/wfs?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAME=Historic_Flood_Map&BBOX=444018,321614,489124,401169,EPSG:27700&srsName=EPSG:27700

    Coordinate Axis management:

    WFS services can honour several OGC WFS versions. WFS version 1.0.0 transmits coordinates as XY (Long/Lat), whereas versions 1.1.0 and 2.0.0 transmit them as YX (Lat/Long), therefore affecting how XY coordinates are translated by clients like ArcMap, ArcGIS Pro, QGIS etc. They all have certain rules of setting these parameters once they have read the capabilities. 

    Many queries from WFS users have been resolved this by setting the axis orientation setting on their client software.

    The default OGC settings are:
    Default axis for WFS version 1.0.0.            X Y (long/lat)
    Default axis for WFS version 1.1.0             Y X (lat/long)
    Default axis for WFS version 2.0.0             Y X (lat/long)

     

    Was this article helpful?
    1 out of 1 found this helpful

    Comments

    Please sign in to leave a comment