Overview

Alloy allows you to create styles that connect to a WFS (Web Feature Service) server, which allows you to overlay external objects onto your map to provide additional context to your data. A WFS style provides access to feature like point-based measurements, polygon information or Legacy Text product information.

Note

The Web Feature Service (WFS) Interface Standard provides an interface allowing requests for geographical features across the web using platform-independent calls.

Adding a WFS style to a layer

When you add a WFS style to a layer it becomes a WFS layer, any additional styles that you add to the layer can only be WFS styles. To add a WFS style to a newly created layer use the following procedure:

  1. When you create a new layer the Styles page is displayed on completion.

alt text

  1. Select the more actions button from the action bar.

alt text

  1. Select Add style. The Create style page appears on the left hand side.

alt text

  1. You can base a style on one of two options:

    • Design - this allows you to associate the style with a design or design interface, see Adding Layer styles.
    • WFS - this allows you to associate the style with a Web Feature Service to import and display external information on the map.
  1. Select the WFS option and the Set WFS parameters form is displayed.

alt text

The are two fields to complete:

  • URL - this allows you to enter the URL for a WFS server that hosts the data that you want to display on the map. The URL is validated and must begin with https://. If the validation is successful then the connection to the WFS server is established.
  • WFS version - this allows you to enter the WFS version of the service. This is optional and not required for the link to function, however, some sites require you to specify the WFS version.
  1. When you have completed the fields, select Next. The second part of the Set WFS parameters form is displayed.

alt text

Complete the following fields:

  • EPSG code - EPSG stands for European Petroleum Survey Group and is an organization that maintains a geodetic parameter database with standard codes, the EPSG codes, for coordinate systems, datums, spheroids, units and similar parameters. You should be able to get the required code from the server you connect to, however, you should check with the service provider to ensure you have the right code.

  • WFS feature type - this field displays at least one feature from the service that you connected to. When you select this field a dialog is displayed of the available features within this service. You can select one of features listed.

  • Load all items strategy - by default the feature objects are loaded in tiles within the area that you are viewing. If you select this option then all the objects are loaded on to the map.

  1. When you have completed the fields select Next. The Style details page is displayed.

alt text

You need to complete the following form fields (all the fields are mandatory):

  • Name - A name is taken from service, however, you can give the style a meaningful and unique name that can be easily identified.

  • Colour - This allows you to choose the colour applied to the style icon within Alloy, see Selecting Colours.

  • Icon - This allows you to choose an icon from the built in library within Alloy to identify the style, see Selecting Icons.

  1. When you have completed all the required fields select Create. The new style details are displayed in the right panel.