1.3. Managing Layers

Layer management involves: discover and add layers from OpenGIS/ISO web services, browse layers metadata, remove or hide layers and reorder the layers within the current context.

1.3.1. Add Layers

You can add geographic layers exposed by WMS, WCS and WFS services to the current context. These services are further called providers into this guide since they provide data, either bitmap or vector-based.

You can add new layers in two different ways:

1.3.1.1. Using AddProvider

You have to use the AddProvider widget, accessible through , in order to add layers from OpenGIS/ISO WMS/WCS/WFS services to your context.

Figure 1-5. AddProvider

Please enter the service URL, choose WMS, WFS or WCS from the drop-down list, then click on the Submit button. The widget will then present a list of the layers exported by the service. Choose one or many layer(s) to add then click Update to add the selected layer(s) to your map. You can then use the Fit to Layer widget to quickly view the new layer(s).

The GeoViewer provides a default portrayal for WFS-based layers so you will be able to directly visualize vector-based data. Please contact your administrator if you want to replace this default portrayal by a custom one.

Adding coverage layers exposed by a WCS service requires the use of a remote Coverage Portray Server (CPS) in order to have a visible result on the map. Please follow this procedure to add a coverage to the map:

  1. Use the AddProvider widget to enter the Web Coverage Server URL. You will see in the next section that you can also discover WCS in an OpenGIS Catalog. Once you have entered the WCS URL and selected the layers as for WMS and WFS, these layers will be added to the context. As opposed to WMS/WFS layers, these layers are NOT directly visible on the map since coverages need first to be portrayed by a Coverage Portray Server (aka CPS). The next steps will thus consist in configuring the coverage portrayal.

  2. Use the ManageLayer widget to configure the coverage layer. As shown in the screenshot below, there is a CONFIG hyperlink beside our newly added layer.

    Figure 1-6. ManageLayer

    Click the CONFIG link to jump to the next step.

  3. The following screenshot presents the CPS configuration panel. The parameters entered in this widget populate an SLD (Styled Layer Descriptor) that will be sent to the CPS of your choice. The result will be a visible layer that renders our coverage.

    Figure 1-7. CPS Configuration

    The parameters are, from top to bottom (please refer to the CPS specifications for more information on the parameters semantic):

    • Cloud Coverage: You can set both a min and max value that will be used as filter in getCoverage requests.

    • Red/Green/Blue channels: You can use the three drop-down lists to map the RGB channels to the different coverage bands.

    • Contrast enhancement: Choose between Normalize, None and Histogram.

    • Dates range: You can set a dates range that will be used as a filter in GetCoverage requests.

    • Color Map: Instead of mapping bands to RGB channels, you may use a color map produced in the IONIC StyleEditor. Click the Browse button to select the color map XML file then Preview.

      Figure 1-8. Previewing a Color Map

    • CPS URL: You need to enter a Coverage Portray Server URL in this field.

    Important

    The ManageLayer widget is often used in the GeoViewer to perform some configuration on layers. It is the case for WCS/CPS layers but also for the GetFeatureInfo widget.

  4. We can now use the FitToLayer widget to quickly navigate to our brand new layer:

    Figure 1-9. A Portrayed Coverage

1.3.1.2. Discovering Layers in a Catalog

The GeoViewer allows you to query an OpenGIS Catalog service (aka CS-W) in order to retrieve layers you can add to your map. Please use this icon to call the discovery widget.

Figure 1-10. Discover Layer Widget

You can now enter your search criteria. Up to four criteria can be used to search for layers but they are all optional, meaning you can just hit the Discover button and get back the catalog whole content. The criteria you can use are, from top to bottom of the widget:

  • A geographic box: You can use the box selector beside the mini-map to draw a region that covers the area on which you want to retrieve layers.

  • A keyword that will be used to search within the services capabilities and metadata. Note that you can use the % wildcard to replace a sequence of characters.

  • Type: You can restrict your search to either WMS, WFS or WCS.

  • An ISO 19115 Category. Note that you can select multiple categories using Ctrl-click.

The following screenshot presents the result of a query for WMS on America:

Figure 1-11. Search Result

You can now add layers to your context by clicking their name. Hoovering the layer name with the cursor allows you to view the underlying service URL. You may now use the Fit To Layer widget to quickly navigate to newly added layers.

Note

Visit IONIC AskTheSpider website to learn more about OpenGIS Catalog services.

1.3.2. Browsing Layers Metadata

You can view the ISO 19115 Metadata associated to each layer, if any, by using the ShowMetadata widget accessible through . While the widget is displayed, choose a layer name from the left area and use the 5 tabs to browse metadata categories, as shown in the following screenshot:

Figure 1-12. ShowMetadata

1.3.3. Remove Layers

Use the icon to display the RemoveLayer widget. Select the layer(s) you want to remove from your context as usually then click the Update button.

Note

Don't remove the Gazetteer and Annotations layers from the context, rather toggle their visibility since it is impossible to add them from the GeoViewer user interface.

1.3.4. Order Layers

You can reorder the layers within the current map context by using the OrderLayer widget accessible through the icon.

Figure 1-13. Order Layers

Select one or many layer(s) to order then click the up or down arrow to move the selection in that direction.

1.3.5. Toggle Layers Visibility

Use the icon to call this widget. Usage is the same as for the other layer-oriented widgets.