Extract Feature Map Activity

Description:

Extracts a map image based on a geometry in the context of a Feature Map that is configured for a feature layer in a Geocortex Essentials site.

Inheritance Hierarchy:

System.Object
  System.Activities.Activity
    System.Activities.AsyncCodeActivity
      Geocortex.Workflow.Activities.ExtractFeatureMap

Function:

This activity generates an image which represents a Feature Map. The feature map is defined for a Feature Layer in a Geocortex Essentials site. It allows you to generate a map of the geometry provided in the context of the configured Feature Map. You can select the output image format to be a BMP, PNG, GIF, JPEG or TIFF.

In a Workflow:

The Extract Feature Map activity can be used to generate an image of a feature map with provided geometry, specific dimensions, map service opacity values and a string that can override the visibility of Essentials layers. This image could then be presented to another workflow activity or can be embedded in a report.

Properties:

Name Description

In Arguments

Feature Map Url

The Url of the feature map REST endpoint. For example: http://server/sites/<Site ID>/map/mapservices/<Feature Service ID>/layers/<Layer ID>/featuremaps/<Feature Map ID>.

Geometry

The geometry of the feature to be drawn on the feature map.

Image Height

The height in pixels of the feature map image. If not set or less than or equal to 0 a default height is set. If Image Width is set to a number bigger than 0, the height will assume that value as well and result will be a square image.

Image Width

The width in pixels of the feature map image. If not set or less than or equal to 0 a default width is set. If Image Height is set to a number bigger than 0, the width will assume that value as well and result will be a square image.

Layers

A semicolon delimited list of descriptors that indicate which layers to show|hide|include|exclude for each map service using the following syntax MapServiceId1(show|hide|include|exclude:LayerId1,LayerId2);.

For example: 0(show:2,3);1(hide:5);2(show:*);3(hide:*) indicates to show layers 2 and 3 from the map service with ID 0, hide layer 5 from the map service with ID 1, show all layers from the map service with ID 2, and hide all layers from the map service with ID 3.

Opacity

The opacity level of map services separated by semicolons.

For example: 0:0.4;1:0.8 indicates an opacity of 0.4 for the map service with ID 0 and an opacity of 0.8 for the map service with ID 1.

Output Format

The format of the extracted feature map image. The supported formats are: png | jpeg | bmp | gif | tiff. The default format is png.

Token

The token for accessing a secure Essentials resource.

Use the Get Request Info activity to obtain the Essentials token.

Misc

Display Name

ExtractFeatureMap

You can change the name of an activity to one that describes what it does. A descriptive name can make a workflow easier to interpret and maintain.

Out Arguments

Result

The generated feature map image.

Version Information:

Supported from: Geocortex Essentials 4.0.

© 2019 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 4.11