WFSクライアント

提供: OSGeo.JP Wiki
2009年10月7日 (水) 23:54時点におけるSanak (トーク | 投稿記録)による版

移動: 案内検索

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.




Subsections

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

<P>

  1. Make sure the WFS plugin is loaded; if not, open the Plugin Manager and load it
  2. Click on the mIconAddWfsLayerAdd 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 ConnectionsDM Solutions 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

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

<P>

<A NAME="fig:wfs_dmsolutions"></A><A NAME="226"></A>
Figure: Adding a WFS layer

[clip=true,width=0.6]connection_wfs

<P> 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.

<P> 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.

<P> 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.

<P>