A Web Feature Service (WFS) is an open specification for serving geographic features over the web. Unlike a Web Map Service (WMS), a WFS service returns actual features with geometry and attributes. You can connect to an Open Geospatial Consortium (OGC) WFS service inArcGIS Pro by creating a WFS service connection.
Add a WFS server connection
On the Insert tab, in the Project group, click the Connections drop-down list and click New WFS Server.
The Add WFS Server Connection dialog box appears.
- Type the URL of the WFS server site you want to connect to in the Server URL text box. The URL varies depending on the site configuration.
For example, http://sampleserver6.arcgisonline.com/arcgis/services/SampleWorldCities/MapServer/WFSServer
- Select the WFS version you want to connect to. The default version connects to the highest number version supported on the server.
- If required, enter custom parameter names and values into the Custom request parameters section. See details in the Add custom parameters section below.
To add custom parameters, do the following:
- Click in the first cell.
- Specify the parameter name in the cell under the Parameter column.
- Specify the parameter value in the cell under the Value column.
- To add additional parameters, click the Add Row button and repeat steps a–c.
To delete custom parameters, do the following:
- Select the row that contains the parameter to be deleted.
- Click Remove Row to delete the row.
- Repeat steps a and b for every parameter to be deleted.
- Type your user name and password if appropriate.
If you want to save your user name and password information to avoid entering it each time you connect, check the Save Username/Password check box.
- Click OK.
A WFS connection file (.wfs) is created and saved in the project's home folder. An item referencing this connection file is added to the project, and the connection appears in the Servers folder on the Project tab of the Catalog pane.
You can expand the WFS connection to view the layers present in the WFS service. Right-click a WFS layer to add the layer to the current map or to a new map. You can also add the service to the map by dragging it onto the map or into the Contents pane.
WFS services allow you to add one or more layers. You can select a group of layers by pressing Shift and clicking the first and last sublayer in the group you want to add. You can also select non-sequential layers by pressing Ctrl and clicking each individual layer. After selecting the layers, right-click the selected layers and choose to either add them to your current map or to a new map. Adding multiple layers at one time may decrease performance when working in the cached (compatible) mode.
Add custom parameters
There are a number of custom connection parameters you can use to specify the properties of the WFS connection. Each of these optional parameters has default values that are used when the connection is created unless you change them. These parameters can only be specified when the connection is created and cannot be modified after the connection is made. The properties you set will apply to all layers in the WFS service. If you want to apply different properties to individual layers in the WFS service, you need to create multiple connections with the different parameter values. The following table lists the custom parameter names and values you can use to set the properties of the WFS connection file:
|Parameter name||Parameter values|
The MODE parameter can be used to specify the mode in which the WFS connection will be made.
The SWAPXY parameter allows you to specify whether or not the X,Y order of the coordinates in your WFS service should be swapped for display.
This parameter allows you to set the maximum number of features returned per request. Setting this value can avoid performance problems if the service has a large number of features. The default is 100000.