WFSクライアント

提供: OSGeo.JP Wiki
移動: 案内検索

WFS Client

In QGIS, a WFS layer behaves pretty much like any other vector layer. You can identify and select features and view the attribute table. An exception is that editing is not supported at this time. To start the WFS plugin you need to open Plugins > MActionShowPluginManager.png Plugin Manager..., activate the CheckBox.pngWFS plugin checkbox and click OK.

A new MIconAddWfsLayer.png Add WFS Layer icon appears next to the WMS icon. Click on it to open the dialog. In General adding a WFS layer is very similar to the procedure used with WMS. The difference is there are no default servers defined, so we have to add our own.

Loading a WFS Layer

As an example we use the DM Solutions WFS server and display a layer. The URL is:

http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?VERSION=1.0.0&SERVICE=
wfs&REQUEST=GetCapabilities
  1. Make sure the WFS plugin is loaded; if not, open the Plugin Manager and load it
  2. Click on the MIconAddWfsLayer.png Add WFS Layer tool on the plugins toolbar
  3. Click on New
  4. Enter NameDM Solutions as the name
  5. Enter the URL (see previous page)
  6. Click OK
  7. Choose Server Connections DM Solutions SelectString.png from the drop-down box
  8. Click Connect
  9. Wait for the list of layers to be populated
  10. Click on the Canadian Land layer
  11. Click Add to add the layer to the map
  12. Wait patiently for the features to appear

Note that the WFS-plugin also recognizes the proxy-settings you have set in your preferences.

図 21: Adding a WFS layer Nix.png
Connection wfs.png

You'll notice the download progress is visualized in the left bottom of the QGIS main window. Once the layer is loaded, you can identify and select a province or two and view the attribute table.

Remember this plugin works best with UMN MapServer WFS servers. It still could be, that you might experience random behavior and crashes. You can look forward to improvements in a future version of the plugin.

This means that only WFS 1.0.0 is supported. At this point there have not been many test against over WFS versions implemented in other WFS-servers. If you encounter problems with any other WFS-server, please do not hesitate to contacting the development team. Please refer to Section label_helpsupport for further information about the mailinglists.


Tip 31 Finding WFS Servers


You can find additional WFS servers by using Google or your favorite search engine. There are a number of lists with public URLs, some of them maintained and some not.




Tip 32 Accessing secure WFS Servers


Within the dialog Create a new WFS-connection accidentily described QGIS does not support authenficated WFS-connections yet. Within one of the next releases we expect to also support authenticated WFS-servers. Meanwhile you could use InteProxy (http://inteproxy.wald.intevation.org ) for accessing authenticated WFS-servers.