Map management

The standard installation of IRIS Focus includes a complete world map that is suitable for most scenarios.

The map consists of separate layers that are further separated into base layers and non-base layers. One base layer and one non-base layer are always rendered on the screen. Typically, base maps contain the underlying terrain and the non-base layers contain additional details that can be displayed on top of the base map.

Map data is served to the IRIS Focus web interface by GeoServer map server using Web Map Service (WMS) protocol. To improve performance, instead of calling for new map data each time the map view changes, the maps are cached in pre-rendered PNG tiles using GeoWebCache.

Administrators can add custom map layers or edit existing layers.

IRIS Focus users can select which map layers they see in the Map view, and edit the view by selecting Map Features.

Adding and editing map layers

  1. Log in to the IRIS Focus web application as administrator.
  2. Select Admin > Map > Map Layers.

    The Map Layers view lists the available map data layers. Each layer has the following properties:

    • Base layer - Enable to set this layer as a base layer
    • Title - Layer name
    • Type - WMS layers
    • URL - Address for the WMS server
    • Layer - Title of the layer on the server
  3. To add a new layer, select Add New Layer.
    1. Type the layer information, including Title, URL, and Layer.
    2. Define map layer properties such as:
      • Transparent - Enable to use PNG or GIF alpha channel for transparency
      • MIME type - Select image type
    3. If you want to use a dark version of the layer with the dark mode map, create a separate dark layer with the same name, and append "_dark" at the end of the name. This name will be automatically requested when the user selects the dark map mode in the Map Features panel.
    When you are adding a WMS layer from an external source, note the following:
    • Get the URL from the layer provider.
    • You can set any values for Realtime offset and Refresh rate, but if the exact value is not available from the layer provider, the system will give you a time closest what you defined.
    • In order for the system to query for the cursor tool data, check the Usable in map cursor tool checkbox.
    • Layer style defines the availability of the color legend in the map view. IRIS Focus supports both .sld files and WMS methods of providing the legend.
    • If you do not want the layer to be visible to users, after adding a layer, go to the Map View Contexts screen, and uncheck the Visibility checkbox.
    • The user can see the added external WMS layer in the Add Product drop-down list of the Weather Products pane.
  4. To edit a layer, select Edit for that layer and make your changes.

    The Map Layer Information window for that layer opens.

  5. Select Save.

Map View Context

The Map View Contexts view lists all defined maps.

Only the default TheMap context is available. Perform all map layer customization in the default TheMap context. Do not create new map contexts for custom map layers.

To edit TheMap, select Edit.

  • To make a map layer available for users in the map view, select the Selected checkbox in the Edit Map View Contexts.

  • To set the order in which multiple map layers are rendered on screen, change the Z level of map layers.

    The lowest number is rendered first, and higher numbers rendered on top of that.

Figure 1. Editing the Map Context

Adding external map layers

You can import an external map layer, such as a shapefile, into Geoserver for IRIS Focus to display on the map.

For information on adding WMS layers from external sources, see Adding and editing map layers.

  1. Make sure you have a shapefile (.shp) available.

    For an example resource with shapefiles available for download, see the WGS84 projection examples at:

    https://osmdata.openstreetmap.de/data/coastlines.html

  2. Use an scp client or similar application to copy the shapefile to a directory on the IRIS Focus server such as /srv/.
  3. Login to the server as radarop.
  4. Open the file: /etc/vaisala/radarsw/configuration/gis-override.ini
  5. Copy the geoserver.admin.password .

    This password is autogenerated during installation.

  6. Using a browser, login to IRIS Focus Geoserver at:

    http://<IRIS_Focus_server_name>:24180/geoserver/web/

    Login using the username admin and the password you copied earlier.

    Depending on your own network configuration you may need to do this at the server, over a remote console, or by using your local browser.

  7. Add a new Store:
    1. Select Stores > Add New Store.
    2. Choose the data source:
      Shapefile - ESRI(tm) Shapefiles (*.shp)
    3. Select the following (the following list shows example values).
      • Workspace: Vaisala
      • Data Source Name: coastlines
      • Description: leave blank
      • Shapefile location: browse to the shapefile

        For example: \files\lines.shp

    4. Leave the other fields as default.
    5. Select Save.
  8. Publish the layer:
    1. Check that the New Layer menu opens.
    2. If the New Layer menu does not open automatically, select Layers > Add New Layer.
    3. In the Add layer from list, find the new layer.
    4. Select Publish.

    The Edit Layer menu shows the new layer name. For example, vaisala:coastlines.

  9. In the Edit Layer menu:
    1. Leave all inputs as they are except:
      • Name: coastlines
      • Title: coastlines
      • Coordinate Reference Systems > Declared SRS
      • Select Find and search for 4326 (WSG 84).
    2. To fill the bounding boxes, select Compute from data and Compute from native bounds.
    3. Select Save.
  10. Select Layer Groups.
    1. Select an existing layer group (for example, vai_full_en) and then select Add Layer.
    2. Find the new layer and add it.

      The layer is now listed in the Layers table.

    3. Select Save.
  11. Login to IRIS Focus as a user.
  12. To confirm that the new layer is visible, select Map Features > Map Detail > Full Detail.