3-GIS Manager
3-GIS Manager
GIS manager
Similar to any other Workbench manager the GIS manager is organized around 4 different components:
- The GIS explorer that provides functionality for organizing GIS data (e.g. feature classes and
rasters)
- And a tools explorer that contains a list of available tools for spatial processing based on the
selected spatial object.
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 2 of 92
GIS manager
Terminology
The following terminology applies:
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 3 of 92
GIS manager
All GIS vector data exposed in the GIS explorer are denoted “feature classes”. If a feature class is added
to a map the visualization of a feature class is denoted a “feature layer”. Grid and image based data is
exposed in the GIS explorer as “rasters”. These are added to the map as a “raster layer”.
More:
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 4 of 92
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 5 of 92
GIS manager
New GIS data may be created from scratch or imported using an import tool. GIS data are stored as
feature classes or rasters in the database.
More:
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 6 of 92
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 7 of 92
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 8 of 92
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 9 of 92
GIS manager
More:
Selecting Features
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 10 of 92
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 11 of 92
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 12 of 92
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 13 of 92
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 14 of 92
Pending Pending
Pending Pending
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 15 of 92
Selecting Features
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 16 of 92
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 17 of 92
To query features by
attributes, start by setting the
active layer.
Example 1:
Example 2:
Note that the two queries in
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 18 of 92
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 19 of 92
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 20 of 92
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 21 of 92
GIS manager
More:
Clip features
Erase features
Split features
Merge features
Catchment Delineation
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 22 of 92
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 23 of 92
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 24 of 92
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 25 of 92
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 26 of 92
Clip features
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 27 of 92
Erase features
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 28 of 92
Split features
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 29 of 92
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 30 of 92
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 31 of 92
GIS manager
Projections
The projection of a feature class is defined during import, and the feature class will be stored in the
specified projection (see Import tools).
When a feature class is opened in a Map data view, it will however be reprojected to a common
projection such that the user will not have to handle feature layers of different projections in the same
map. This “common projection” is a user setting which is set in the System manager.
More:
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 32 of 92
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 33 of 92
GIS manager
The GIS Manager can display WMS and WFS layers on a map, combined with the feature and raster
layers that you have access to from a database. This allows you to compose a map showing eg: rainfall
station locations from a database, overlaid on a WMS map of the topography that is hosted on a WMS
server.
The following section details how to add a WFS service to the GIS Manager, display a WFS layer on
the map, and delete the WFS service. The same approach is used for WMS layers.
More:
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 34 of 92
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 35 of 92
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 36 of 92
GIS manager
More:
Import Tools
Raster Interpolation
Raster Processing
Temporal Tools
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 37 of 92
Import Tools
The following tools are available for importing vector data to a feature class.
More:
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 38 of 92
GIS manager > GIS Tools for vector data processing > Import Tools
Where the first line is the header of the file with the names of the attributes
and data starts from the second line.
- X and Y may be located in different columns but are always named X and Y. Hence, the name
is used to locate the columns containing X and Y coordinates
- The following types of attributes are supported: bool, int, double, string
o Attribute type is auto-detected by attempting parsing in the order: bool, int, double.
The 1st one accepted by the parser is used.
o Different rows may contain different attribute types. Hence, the above is done on a
row-by-row basis.
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 39 of 92
GIS manager > GIS Tools for vector data processing > Import Tools
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 40 of 92
GIS manager > GIS Tools for vector data processing > Import Tools
Description This tool imports res11 data. It imports the network as GIS data and the time
series data as time series associated to the GIS features.Res11 files can only
be imported if the projection is already defined in the DSS. Otherwise, add
the projection mapping to ESRIProjections.txt file in the application folder.
Input items An res11 file stored on the file system.
Tool properties · Name of feature class including the group path (see below)
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 41 of 92
GIS manager > GIS Tools for vector data processing > Import Tools
Description This tool imports features from a shape file stored on the file system and
creates a feature class in the database.
Input items A shape file stored on the file system.
Tool properties
Feature Class: holds the group and feature class name as it will appear in
the database after import.
File Path: holds the file path to the source shape file.
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 42 of 92
The following tools are available for exporting data to the file system or for creating different types of
outputs.
More:
To Database
To Table
To Display
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 43 of 92
GIS manager > GIS Tools for vector data processing > Export and Output Tools
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 44 of 92
GIS manager > GIS Tools for vector data processing > Export and Output Tools
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 45 of 92
GIS manager > GIS Tools for vector data processing > Export and Output Tools
To Database
Description The “To Database” tool stores an in memory feature class to the database.
Input items A selected feature class (or selected features in a feature class)
Tool properties
Duplicate Name option: The option in case a feature class with the same
name already exists under the same group. Replace the existing feature
class, rename the feature class being saved or don't save the feature class.
Feature Class Group: The group under which the feature class is saved.
Feature Class Name: The name of the feature class to be saved. (Only
available if naming option is “By Name”).
GIS Data Provider: The GIS data provider to use to save the feature class.
Name Postfix: The postfix to add to the name of the feature class when
saving. (Only available if naming option is “By Postfix”).
Naming Option: The option to define the name of the saved feature class.
If Name is selected, the feature class will be saved with the name provided
in the Feature Class Name property. Otherwise, if Postfix is selected, the
postfix to add to the input feature class name(s) shall be provided.
Output items A feature class stored in the database
Technical reference All GIS tools produces memory objects (feature classes stored in
and usage tips memory). To store these memory objects in the database the “To
Database” tool must be used.
If query tools have been used to select specific features within a feature
class these may be stored in a new feature class using the “To Database”
tool.
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 46 of 92
GIS manager > GIS Tools for vector data processing > Export and Output Tools
To Table
Description The “To Table” tool adds the attribute table to a table data view.
Input items A feature class
Tool properties The tool has no settings
Output items A table data view with feature class attribute values
Technical reference
and usage tips
API reference DHI.Solutions.Generic.UI.Tools.ToTable
Scripting the tool To create an instance of the tool in the scripting environment use
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 47 of 92
GIS manager > GIS Tools for vector data processing > Export and Output Tools
To Display
Description The “To Display” tool adds a feature class to a “New map” or to the “Active
map”.
Input items A feature class to be displayed on the map as a feature layer.
Tool properties
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 48 of 92
More:
Measure
Buffer
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 49 of 92
GIS manager > GIS Tools for vector data processing > Geo processing tools (vector data)
Description Combines multiple polygons with identical attribute values (user selected
attribute) into a single feature.
Input items One feature class of type point, line or polygon.
Tool properties
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 50 of 92
GIS manager > GIS Tools for vector data processing > Geo processing tools (vector data)
Description The intersect tool creates a geometric intersection of two input feature
classes. Only the features, or portions of features, which overlap in all input
feature classes will be written to the output feature class. Attributes from all
input features are mapped to all output features.
Tool properties
Name of Intersection feature class: the name of the output feature class
(memory object).
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 51 of 92
GIS manager > GIS Tools for vector data processing > Geo processing tools (vector data)
Measure
Description Adds the attributes “area” and “perimeter” to a polygon feature class or
attribute “length” to a line feature class
Input items One feature class of type “polygon” or line
Tool properties
tool = app.Tools.CreateNew(‘Measure’)
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 52 of 92
GIS manager > GIS Tools for vector data processing > Geo processing tools (vector data)
Merge feature classes
Description The merge tool combines two feature classes into one new feature class.
All features from both input feature classes are added to the output feature
class (including overlapping features). Feature geometries are not changed
by the merge tool.
Input items Two feature classes of same type.
Tool properties
Feature Class Name:The name of the output feature class (in memory
object).
Master Feature Class: attributes from other input feature classes will be
mapped to the attributes of the Master Feature Class (hence above the
Master attributes are the left ones)
Output items A feature class (in memory). To save use the “To database” tool.
Usage tips
The merge tool combines two feature classes into one new feature class.
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 53 of 92
GIS manager > GIS Tools for vector data processing > Geo processing tools (vector data)
Description The Union tool creates a geometric intersection of the input feature classes.
All overlapping and non-overlapping features will be written to the output
feature class.
Input items Two or more feature classes of type polygon
Tool properties
Output items One feature class containing the union of input feature classes
Technical reference The tool functioning is illustrated by the graphics below. Input contains 3
and usage tips different feature classes. Feature class 1 and feature class 2 both contains
attribute “A”. Feature class 3 contains attribute B. The union tool would
create 8 new features holding attributes as outlined in the graphics.
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 54 of 92
GIS manager > GIS Tools for vector data processing > Geo processing tools (vector data)
Buffer
Description The buffer tool creates a buffer surrounding one or more selected features
within the same feature class.
Input items A feature class with one or more selected features of type point, line or
polygon.
Tool properties
Output items A feature class (in memory) containing the buffer delineation
Technical reference Run “To display” to visualize with the source map. Use display option
and usage tips “ActiveDataView” to overlay on the active map.
Use the “To database” tool to store the feature class in the database.
tool = app.Tools.CreateNew(‘Buffer’)
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 55 of 92
Raster Interpolation
The following tools are available for interpolating rasters from vector point data.
More:
Kriging Interpolation
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 56 of 92
GIS manager > GIS Tools for vector data processing > Raster Interpolation
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 57 of 92
GIS manager > GIS Tools for vector data processing > Raster Interpolation
Inverse Distance Weighting Interpolation
Description This tool interpolates point data producing a raster with values given by the
specified attribute of the input point feature class. The tool uses the Inverse
Distance Weighted algorithm which assigns to every grid cell the weighted
combination of the in neighboring points. The weights are computed using the
inverse distance. Selection of the points and method the combination of the
values is done using modified Shepard method for non-uniform datasets.
Input items A raster or a feature class.One feature class of type point or a selection of
point features.
Tool properties
Attribute: the attribute to get values for the points to use in the interpolation
Extrapolate values: If true, interpolated values are used even in case where
they are bigger than maximum input value or smaller than minimum input
value. Otherwise maximum and minimum values are used respectively.
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 58 of 92
GIS manager > GIS Tools for vector data processing > Raster Interpolation
Kriging Interpolation
Description This tool interpolates point data producing a raster with values given by the
specified attribute of the input point feature class using the kriging algorithm
which assigns to every grid cell a value calculated using the simple kriging
method with specified covariance method. The interpolated values are
computed using linear regression of input values.
Input items One feature class of type point or a selection of point features.
Tool properties
Attribute: the attribute to get values for the points to use in the interpolation
Extrapolate values: If true, interpolated values are used even in case where
they are bigger than maximum input value or smaller than minimum input
value. Otherwise maximum and minimum values are used respectively.
Missing Value: The value to use when the distance to the closest point is
bigger than radius.
Raster Definition: The output definition of the raster. See Inverse Distance
Weighted Interpolation for more detail on these parameters.
Raster Processor: The raster processor to use when executing the tool.
PostGIS Raster Processor is the default processor. Other processors can be
added and used by the tool.
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 59 of 92
GIS manager > GIS Tools for vector data processing > Raster Interpolation
Description This tool interpolates point data producing a raster with values given by the
specified attribute of the input feature class using the nearest neighbour
algorithm which assigns to every grid cell the value in the closest input point.
Input items One feature class of type point or a selection of point features.
Tool properties
Attribute: the attribute to get values for the points to use in the interpolation
Missing Value: The value to use when the distance to the closest point is bigger
than radius.
Radius: The value for the maximum radius to the closest point so it's value is
used in the interpolation. -1 means infinite radius.
Raster Definition: The output definition of the raster. See Inverse Distance
Weighted Interpolation for more detail on these parameters.
Raster Processor: The raster processor to use when executing the tool. PostGIS
Raster Processor is the default processor. Other processors can be added and
used by the tool.
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 60 of 92
GIS manager > GIS Tools for vector data processing > Raster Interpolation
Radial Basis Interpolation
Description This tool interpolates point data producing a raster with values given by the
specified attribute of the input point feature class using the radial basis
algorithm which assigns to every grid cell a value calculated using a real-
valued function whose value depends only on the distance from the origin f(x)
= f(||x||) or alternatively on the distance from some other point c, called a
center f(x) = f(||x - c||) . Any function that satisfies the property is a radial
function. Radial basis functions are typically used to build up function
approximations
Attribute: the attribute to get values for the points to use in the interpolation
Extrapolate Value: If true, interpolated values are used even in case where
they are bigger than maximum input value or smaller than minimum input
value. Otherwise maximum and minimum values are used respectively.
Raster Definition: The output definition of the raster. See Inverse Distance
Weighted Interpolation for more detail on these parameters.
Raster Processor: The raster processor to use when executing the tool.
PostGIS Raster Processor is the default processor. Other processors can be
added and used by the tool.
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 61 of 92
Raster Processing
The following tools are available for raster processing based on vector data.
More:
Vector to Raster
Zonal Statistics
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 62 of 92
GIS manager > GIS Tools for vector data processing > Raster Processing
Vector to Raster
Description This tool converts a feature class to a raster using attribute values for each of
the features in the feature class to fill in the raster.
Input items One feature class or set of selected features.
Tool properties
Upper Left X: the X-coordinate for the upper left corner of the raster
Upper Left Y: the Y-coordinate for the upper left corner of the raster
Raster processor: The raster processor to use when executing the tool.
PostGIS Raster Processor is the default processor. Other processors can be
added and used by the tool.
Output items A raster representing values of the attribute for each input feature.
Technical
reference and
None.
usage tips
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 63 of 92
GIS manager > GIS Tools for vector data processing > Raster Processing
Zonal Statistics
Description This tool calculates statistics on raster values for polygons, lines or points.
Input items One feature class.
Tool properties
Raster Data Provider: The raster data provider that the raster belong to. The
raster is identified by its full path.
Raster Processor: The raster processor to use to make the calculations. PostGIS
Processor is the default raster processor.
Output items A feature class with the calculated statistics added as attributes.
Technical None.
reference and
usage tips
API reference DHI.Solutions.GISManager.Tools.RasterProcessing.ZonalStatisticsTool
Scripting the tool To create an instance of the tool in the scripting environment use
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 64 of 92
Temporal Tools
The following tools are available for processing of time varying data.
More:
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 65 of 92
GIS manager > GIS Tools for vector data processing > Temporal Tools
Temporal Zonal Statistics
Description This tool calculates statistics on time varying raster values for polygons, lines
or points. The output are time series of the selected statistics for each of the
features in the feature class. The time series can be saved similarly to the “To
database” tool or returned as in-memory time series
Input items One feature class.
Tool properties
Attribute: The attribute to use to identify the input features when naming the
output time series.
Overwrite option: Determines how to handle the output. Output time series can
be returned as in-memory time series (No Save option) or saved according to
one of the options in case a time series with the same name already exists.
Save to group: The group in which to save the output time series. The group is
identified by its full path.
Save with name: If a name has been specified, all input time series shall be
given the specified name. If more than one input time series have been
selected, a number suffix will be added to each time series name. If no name
has been specified, the input time series shall be saved with their original
names (plus suffix, if specified).
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 66 of 92
GIS manager > GIS Tools for vector data processing > Temporal Tools
TimeSeries Step To Feature
FeatureClass
Add Association: Defines whether the timeseries used will be associate to the
corresponding feature in the feature class.
Target Attribute Name: The attribute to which the timeseries values will written.
If it does not exist, it will be created. If it exists, values will be overwritten.
TS Connection Attribute: The attribute storing the string that will be used to
select which timeseries to read the value from. This will be used along with the
regular expression.
Timeseries
Group Name: The timeseries manager group that contains the timeseries to use
to populate the feature class attribute table.
Use Timeseries from Feature Association: If set to true, the timeseries associated
to each feature will be considered when applying the mask. If set to false, a
timeseries group will need to be defined.
UseLast: If set to True, this will write the last timestep from the selected
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 67 of 92
GIS manager > GIS Tools for vector data processing > Temporal Tools
Timeseries To Temporal Raster
Description This tool creates a temporal raster from a set of timeseries and a point feature
class. It uses the tool “TimeSeries Step To Feature” and its help should be
consulted for more information on the timeseries selection.
Input items One feature class representing the geographical location of the timeseries.
Tool
properties
FeatureClass
TS Connection Attribute: The attribute storing the string that will be used to
select which timeseries to read the value from. This will be used along with the
regular expression.
OutputRaster
EndTime: The maximum possible end time of the temporal output raster. If
timeseries do not have timesteps at this particular date/time, no interpolation is
carried out and the raster will end at last available timestep (preceeding
EndTime).
Raster Definition: The definition of the output raster. The editable properties
corresponds to the raster properties, as defined in World Files. This includes the
extent, rotation, cell size and origin of the raster to create. The extent is by
default taken from the feature class extent. Scale X and Scale Y correspond to
the cell size for a raster that is not rotated. The Scale Y is negative because the
origin of the raster is the top left corner. The read only properties are derived
from the editable properties.
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 68 of 92
GIS manager
More:
Import Tools
Output Tools
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 69 of 92
Import Tools
More:
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 70 of 92
GIS manager > GIS Tools for raster data processing > Import Tools
Import from ASCII Grid
Description This tool imports rasters stored in an ASCII formatted grid file (as output
by ArcGIS, for example).
Input items An ASCII grid file stored on the file system.
Tool properties When running the tool from the Tools Explorer, a user-friendly data view
interface will appear to assist in setting the tool properties.
Raster: The full path of the raster name to import the data to.
ncols 4
nrows 6
xllcorner 0.0
yllcorner 0.0
cellsize 50.0
NODATA_value -9999
-9999 -9999 5 2
-9999 20 100 36
3 8 35 10
32 42 50 6
88 75 27 9
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 71 of 92
GIS manager > GIS Tools for raster data processing > Import Tools
Raster: The name of the Raster to create to store the imported Image file.
Upper Left X: The X coordinate of upper left corner. If “scale image when
zooming” is true, this represents the longitude value of the upper left corner
in decimal degrees (WGS 84). If scale image when zooming is false, this
represents the horizontal offset in pixels from the upper left corner of the
map.
Upper Left Y: The Y coordinate of upper left corner. If “scale image when
zooming” is true, this represents the latitude value of the upper left corner in
decimal degrees (WGS 84). If scale image when zooming is false, this
represents the vertical offset in pixels from the upper left corner of the map
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 72 of 92
GIS manager > GIS Tools for raster data processing > Import Tools
Raster: The full path of the raster name to import the data to.
World File: File containing information about position, scale and skew of
TIFF image.
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 73 of 92
Output Tools
The following tools are available for creating different types of raster outputs.
More:
To Database
To Display (Raster)
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 74 of 92
GIS manager > GIS Tools for raster data processing > Output Tools
To Database
Description The “To Database” tool stores an in memory feature class to the database.
Input items A selected raster or raster layer.
Tool properties
Duplicate Name option: The option in case raster with the same name
already exists under the same group. Replace the existing raster, rename the
raster being saved or don't save the raster.
Naming Option: The option to define the name of the saved raster. If Name
is selected, the raster will be saved with the name provided in the Raster
Name property. Otherwise, if Postfix is selected, the postfix to add to the
input raster name(s) shall be provided.
Raster Data Provider: The raster data provider to use to save the raster.
Raster Name: The name of the raster to be saved. (Only available if naming
option is “By Name”).
Raster Name Postfix: The postfix to add to the input raster name(s) when
saving. (Only available if naming option is “By Postfix”).
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 75 of 92
GIS manager > GIS Tools for raster data processing > Output Tools
To Display (Raster)
Description The “To Display (Raster)” tool adds a raster to a “New map” or to the
“Active map”.
Input items A raster to be displayed on the map as a raster layer.
Tool properties
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 76 of 92
More:
Flow Direction
Project
Raster Calculator
Raster to Vector
Reclassification
Resample
Slope
Slope Length
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 77 of 92
GIS manager > GIS Tools for raster data processing > Geo processing tools (raster data)
Flow Direction
Description This tool calculates the flow direction of a raster representing elevation values
(DEM) based on the slope of steepest decent from any given cell.
Input items A digital elevation model (DEM) as a raster or raster layer.
Tool properties The flow direction tool has no tool properties.
Output items A raster with values indicating flow direction from each cell. Output flow
direction values are: 0 = None, 1 = East, 2 = Southest, 4 = South, 8 =
Southwest, 16 = West, 32 = Northwest, 64 = North, 128 = Northeast, 256 =
Local minimum, -512 = Undefined.
Technical Flow direction values are often used as input to other tools, such as catchment
reference and delineation. Currently there are no tools that use this tool output directly. (The
usage tips interactive catchment delineation described above calculates the flow direction
internally.)
API reference DHI.Solutions.GISManager.Tools.FlowDirectionTool
Scripting the tool To create an instance of the tool in the scripting environment use
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 78 of 92
GIS manager > GIS Tools for raster data processing > Geo processing tools (raster data)
Project
Raster Processor: The raster processor to use when executing the tool. PostGIS
Raster Processor is the default processor. Other processors can be added and
used by the tool.
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 79 of 92
GIS manager > GIS Tools for raster data processing > Geo processing tools (raster data)
Raster Calculator
Description This tool performs raster math on input rasters using syntax commonly found in
spreadsheet programs.
Input items One or more rasters or raster layers.
Tool properties
Formula: The formula to apply to the input rasters. Use syntax normally found
in spreadsheets, but instead of cell references, enter raster names as mapped in
the Mapping property within square brackets. E.g. “[myraster]” The tool can
also produce one output for each input in case “[value]” mapping is used,
meaning the current raster being iterated.
Name Mapping: The mapping of raster names used in the formula to the input
rasters. Do not include brackets. By default the input rasters are mapped to their
raster name.
Output items A raster representing the result of the calculation.
Technical The syntax used for the formula is the same as used in the Spreadsheet
reference and Manager. Formulas can be tested in Spreadsheet Manager and then copied into
usage tips the tool properties, after replacing cell references with the mapped raster names.
API reference DHI.Solutions.GISManager.Tools.RasterCalculatorTool
Scripting the tool To create an instance of the tool in the scripting environment use
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 80 of 92
GIS manager > GIS Tools for raster data processing > Geo processing tools (raster data)
Raster to Vector
Description This tool creates a feature class with features for each value range specified. If
value ranges are not specified, it creates features for each unique value in the
raster.
Input items Raster or raster layers.
Tool properties
Raster Band : The band from the input rasters that is to be converted.
Tolerance: The tolerance in raster coordinate system used for the simplification
of geometries.
Value Ranges: Defines the values ranges to generate features. If not specified,
all values are used.
Output items A feature class holding features derived from the raster values.
Technical None.
reference and
usage tips
API reference DHI.Solutions.GISManager.Tools.RasterToVectorTool
Scripting the tool To create an instance of the tool in the scripting environment use
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 81 of 92
GIS manager > GIS Tools for raster data processing > Geo processing tools (raster data)
Reclassification
Description This tool reclassifies a raster replacing single values or ranges of values with
the values to reclassify with. All bands in the raster will be reclassified and
the output raster(s) will have the same definition as input raster(s).
Input items A raster or raster layer.
Tool properties
Mapping Type: Defines the type of mapping. If single value, values are
mapped one to one. Otherwise, a range of values is mapped to a new value.
Values Mapping: The mapping of values from the original raster to the
reclassified raster.
"""
<Script>
<Author>admin</Author>
</Script>
"""
inputRaster = gisMgr.RasterList.Fetch('/MyRaster')
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 82 of 92
GIS manager > GIS Tools for raster data processing > Geo processing tools (raster data)
Resample
Upper Left X: the X-coordinate for the upper left corner of the raster
Upper Left Y: the Y-coordinate for the upper left corner of the raster
Raster Processor : The raster processor to use when executing the tool. PostGIS
Raster Processor is the default processor. Other processors can be added and
used by the tool.
Output items A raster with the specified raster definition and resampled values.
Technical
reference and
usage tips
API reference DHI.Solutions.GISManager.Tools.RasterResampleTool
Scripting the tool To create an instance of the tool in the scripting environment use
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 83 of 92
GIS manager > GIS Tools for raster data processing > Geo processing tools (raster data)
Slope
Description This tool calculates the slope for a raster in degrees. The output raster will have
the same definition and as many bands as the corresponding input raster. Output
data type is always float.
Input items A digital elevation model (DEM) as a raster or raster layer.
Tool properties The slope tool has no tool properties.
Output items A raster showing the average slope within each cell based on elevations of
surrounding cells.
Technical Given the following representation of a 3x3 neighborhood of pixels:
reference and
usage tips
ABC
DEF
GHI
tool = app.Tools.CreateNew(‘Slope’)
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 84 of 92
GIS manager > GIS Tools for raster data processing > Geo processing tools (raster data)
Slope Length
Description This tool calculates the slope length for each cell in a raster representing
elevation values (DEM) by following the slope down from each cell (similar to
river tracing) and calculating the change in height and the length when the slope
breaks by the SlopeBreak value.
Input items A digital elevation model (DEM) as a raster or raster layer.
Tool properties
Slope Break : The break in slope in percent that will mark the downstream end
of the slope.
Output items A raster representing the slope length from each cell.
Technical None.
reference and
usage tips
API reference DHI.Solutions.GISManager.Tools.SlopeLengthTool
Scripting the tool To create an instance of the tool in the scripting environment use
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 85 of 92
GIS manager
More:
RUSLE
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 86 of 92
RUSLE
The following tools are available for calculating soil erosion parameters for the RUSLE (Revised
Universal Soil Loss Equation) equation.
More:
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 87 of 92
Description Calculates rainfall erosivity (R) for the RUSLE soil erosion equation.
Input items Rasters or raster layers representing distributed rainfall data from which to
calculate the rainfall erosivity factor.
Tool properties
Formula: The raster calculator formula for calculating rainfall erosivity (R)
from the input rainfall intensity and depth rasters.
Name Mapping: The mapping between the input rasters and the raster names
entered in the formula.
For more information on these parameters, see the Raster Calculator tool.
Output items A raster representing the rainfall erosivity factor (R).
Technical reference The default formula for rainfall erosivity is as follows, but can be changed by the user as required.
This equation assumes you have two input grids, “intensity” and “depth”. These need to be mapped in
and usage tips the Name Mapping property to these names.
=(0.29 * (1 - (0.596*EXP(-0.04*[intensity]))))*[depth]*[intensity]
API reference DHI.Solutions.GISManager.Tools.SoilErosionRTool
Scripting the tool To create an instance of the tool in the scripting environment use
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 88 of 92
Description Calculates soil erodibility (K) for the RUSLE soil erosion equation.
Input items A raster containing values representing the soil type OR a feature class with
polygons representing the soil types.
Tool properties
Mapping: The mapping between the input soil type values and the soil
erodibility factor.
Soil Type Attribute: The feature class attribute which contains the soil type.
(Only used when the input is a feature class).
Output items A raster representing the soil erodibility factor (K).
Technical reference This tool works similarly to the raster Reclassification tool.
and usage tips
The mapped values should be derived from the literature.
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 89 of 92
Description Calculates slope length (LS) for the RUSLE soil erosion equation.
Input items A raster or raster layer representing a DEM (digital elevation model).
Tool properties The slope length tool has no tool properties.
where
n = 0.5 for a slope > 5%, 0.4 for slope between 3.5 - 4.5%, 0.3 for a slope l -
3.5%,
This translates into the following spreadsheet formula which is called using
the Raster Calculator Tool:
This formula is applied 4 times for each possible value of n and then merged
by adding (again using the Raster Calculator).
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 90 of 92
Description Calculates crop management factor (C) for the RUSLE soil erosion
equation.
Input items A raster containing values representing land use (crops) OR a feature class
with polygons representing land use (crops).
Tool properties
Crop Type Attribute: The feature class attribute which contains the crop
type. (Only used when the input is a feature class).
Mapping: The mapping between the input land use (crop) values and the
crop management factor.
Output items A raster representing the crop management factor (C).
Technical reference This tool works similarly to the raster Reclassification tool.
and usage tips
The mapped values should be derived from the literature.
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 91 of 92
Description Calculates erosion control factor (P) for the RUSLE soil erosion equation.
Input items A raster containing values representing erosion control measures OR a
feature class with polygons representing erosion control measures.
Tool properties
Control Type Attribute: The feature class attribute which contains the
erosion control type. (Only used when the input is a feature class).
Mapping: The mapping between the input land use (control) values and the
erosion control factor.
Output items A raster representing the erosion control factor (P).
Technical reference This tool works similarly to the raster Reclassification tool.
and usage tips
The mapped values should be derived from the literature.
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018
GIS Manager Overview Page 92 of 92
Description Calculates the mean annual soil loss (A) based on the RUSLE soil erosion
equation.
Input items Five rasters representing the RUSLE soil erosion factors:
Erosion Control (P): The raster representing the erosion control factor (P)
of the RUSLE equation.
Rainfall Erosivity (R): The raster representing the rainfall erosivity factor
(R) of the RUSLE equation.
Slope Length (LS): The raster representing the slope length factor (LS) of
the RUSLE equation.
Soil Erodibility (K): The raster representing the soil erodibility factor (K)
of the RUSLE equation.
Output items A raster representing the mean annual soil loss.
Technical reference The mean annual soil loss is calculated by multiplying each of the input
and usage tips factors together:
A = R * K * LS * C * P
API reference DHI.Solutions.GISManager.Tools.SoilErosionATool
Scripting the tool To create an instance of the tool in the scripting environment use
file:///C:/Users/dhi/AppData/Local/Temp/2/~hh554D.htm 12/26/2018