You can use Open Geospatial Consortium, Inc. (OGC), Web Feature Service (WFS) services that are available on the web when using ArcGIS Pro. The WFS client support in ArcGIS allows you to access these services over the Internet and add a WFS layer to your maps.
The OGC Web Feature Service is an open specification for serving geographic features over the web that returns actual features with geometry and attributes. For more information regarding OGC WFS specifications, see the OGC website at www.opengeospatial.org/standards.
This version of the WFS client only supports the Geography Markup Language (GML) simple features profile.
View WFS layers in the Contents pane
After creating a WFS server connection, a WFS service connection is shown in the Server folder in the Catalog pane. You can add the entire WFS service to a map by selecting all layers in the WFS connection, or you can add the WFS layers individually. When you add a WFS layer to the map, the layer is added to the Contents pane.
You may also view a WFS item in your active portal by dragging and dropping the item onto the map.
WFS layer properties
When you add a WFS layer to a map, it gets added with some default layer properties set. These default settings may not be the correct settings for your WFS layer so you may change them. To view or modify these properties, right-click the WFS layer in the Contents pane and click Properties.
Read-only properties of your WFS layer
Some properties of the WFS layer are provided to give more information about the WFS server connection properties. These properties are located on the Source tab of the Layer Properties dialog.
Here are some of the WFS layer properties that you will find on the Source tab:
- Data Type—If you are connected to a WFS layer, this property will tell you that the data type is a WFS Service Feature Class.
- Url—This is the URL for the WFS service.
- Feature Class—In WFS terminology, this is the WFS typename. In this example, the typename is Continent.
- WFS Version—The version of WFS that you are connected to. In this example, the version is 2.0.0.
- WFS Mode—This is the connection mode you are using. In this example, the connection mode is snapshot.
Modify WFS layer properties
There are a number of WFS layer properties that you can modify if needed:
- Connection mode—This property allows you to choose which connection mode to use for your layer. By default, the connection mode is snapshot.
Connection Mode Description
This mode is compatible with most WFS services. When using this mode, a temporary copy of your WFS data is downloaded and used like a cache of features. Instead of sending complicated filter requests to the WFS service and waiting for a response from the server, you work with a copy of the data locally. When you close your ArcGIS Pro 2.1 session, the temporary copy of the data is removed.
A drawback to this approach is that you will not see any new edits that have been added to the WFS service during your ArcGIS Pro 2.1 session. To see updates to the WFS service, you must close and reopen ArcGIS Pro 2.1. Using this mode, you may notice that the first time you open the layer in the map, it is slow. This is because the data is being copied from the server.
This mode is less compatible with most WFS services. When using this mode, you do not copy data locally and instead connect to the live WFS service. This mode sends a request to the service as you pan and zoom around the map or make queries on your data. Layers may open faster since the data is not being downloaded, and you will see edits to the WFS service as they are added.
A drawback to this mode is that it is not compatible with WFS services that cannot handle complex filter requests. In order to work with this layer in ArcGIS Pro and perform queries and analysis on the data, the server needs to support advanced filter requests.
- Axis Order—This property allows you to switch the x,y axis order for your layer, or switch the x,y axis order for the requests being sent to the server.
Axis Order Description
Swap x/y coordinates
This property allows you to swap the x,y coordinates for the display of your layer.
- Checked—Swap the x,y coordinates for the layer.
- Unchecked—Do not swap the x,y coordinates for the layer. This is the default.
Swap x/y filter request
This property allows you to swap the x,y coordinates for spatial filter requests sent to the server. If you need to swap the x,y coordinates for your layer to display correctly, you will likely need to swap the x,y filter requests to ensure that the results of spatial queries are correct.
- Checked—Swap the x,y coordinates for the filter requests.
- Unchecked—Do not swap the x,y coordinates for the filter requests. This is the default.
In previous versions of ArcGIS Pro, the default for the axis order properties was to swap x,y coordinates and filter requests. In ArcGIS Pro 2.1, when a new WFS server connection is created, the default is to not swap x,y coordinates and filter requests. This does not effect any existing WFS layers or connections.
- Set the maximum features returned—This property allows you to limit the number of features that are added to the map. If you have millions of records in your WFS layer, working with this layer could be slow. To avoid performance issues, the default value is set to 3000 features.
For this value to be honored, the WFS service must support COUNT in version 2.0.0, or MAXFEATURES in previous versions.
Work with WFS layers from the web
Once a WFS layer is added to ArcGIS Pro, it behaves as a read-only feature layer from a database. You can query features, change symbology, or run analysis on the layer.
Not all WFS services are implemented in exactly the same way. This section addresses some of the common issues with adding a WFS layer to ArcGIS Pro.
My features do not display on the map, or they are not where I expect them to be.
You may need to change an axis order property for your layer. Try changing the setting for Swap x/y coordinates. The default setting used when adding a layer to the map may not be what works for your service.
Adding my WFS layer to the map takes a long time.
If you are adding multiple layers at once, try adding one layer at a time.
Set the maximum features returned to a lower value.
Try using the On Demand connection mode.
I receive an error when adding my WFS layer to the map.
You may receive an error message when adding your service to the map if the client does not support the type of features in the WFS service, or if the server does not support a request that the client is sending. The error message may help determine what the issue is. For example:
I am unable to add a WFS server connection.
Make sure you include the necessary credentials to access the data in your WFS service. This may include a username and password or entering custom request parameter values.
Verify the service is not down by checking the GetCapabilities response in a browser.
Using On Demand mode, I am seeing strange behavior or queries are not returning expected results.
Try using Snapshot mode instead. If you wish to continue using the On Demand mode, try swapping the axis order properties. If modifying the different layer properties does not solve your problem and your service does work in Snapshot mode, please contact Esri Supportwith feedback.
There are some known limitations for the WFS client in ArcGIS Pro:
- WFS with transactions is not yet supported. The layer behaves as a read-only data source.
- Sharing the WFS layer as a web map from ArcGIS Pro is not yet supported.
- Publishing a WFS service directly from ArcGIS Pro is not yet supported. You may share a web layer and then publish a hosted WFS layer from it.
- An imported .mxd file with WFS layers that were created using the ArcGIS Data Interoperability extension is not supported.
- WFS server connections that are created for version 1.0.0 only support using the Snapshot connection mode.
- ArcGIS Desktop-based WFS services at version 10.5 or older require using Snapshot mode.
- Non-spatial WFS services are not supported.