Home > Working with SGWorld > Analysis (IAnalysis6) > CreateFloodSingleWaterRise

CreateFloodSingleWaterRise

Creates a set of polygons showing the land area covered by water when the water level rises once (initial water level set by user).

 

JavaScript

 

CreateFloodSingleWaterRise(OriginX, OriginY, Radius, TotalWaterLevelRaise, SampleInterval, GroupID, Description)

 

C#

 

int CreateFloodSingleWaterRise(    

          double OriginX,

          double OriginY,

          double Radius,

          double TotalWaterLevelRaise,

          double SampleInterval,

          int     GroupID,

          string Description)

 

C++

 

HRESULT CreateFloodSingleWaterRise(       double      OriginX,

        double    OriginY,

        double    Radius,

        double    TotalWaterLevelRaise,

        double    SampleInterval,

        LONG_PTR  GroupID,

        BSTR      Description,

        LONG_PTR * pTreeItemId) 

Parameters

OriginX

The flood origin’s x-coordinate (longitude).

OriginY

The flood origin’s y-coordinate (latitude).

Radius

The radius of the area on which the flood analysis is being performed.

TotalWaterLevelRaise

The total number of meters the water rises.

SampleInterval

The distance between terrain sample points. The smaller the sample interval, the more accurate the calculation, but the longer it takes to calculate.

GroupID

The Project Tree group in which the flood analysis object is created. If it is set to zero, the object is created under the root. You can obtain the GroupID by one of the following methods:

§   Create the group using IProjectTree6.CreateGroup.

§  Find the group, if you know the name, using IProjectTree6.FindItem.

§  Traverse the Tree using IProjectTree6 methods such as GetNextItem(), until you come to the desired GroupID.

Description

The name of the flood analysis object as it appears in the Project Tree. If an empty string is passed into this parameter, TerraExplorer assigns it a unique name.

Return Value

pTreeItemId

The Project Tree ID of the flood polygon set.

Exceptions

HRESULT can return any of the values listed in the HRESULT Return Values list, as well as the following values:

TE_E_INFOTREE_PARENTNOTGROUP

The group ID entered does not represent a valid group in the project tree.

TE_E_INFOTREE_ITEMNOTGROUP

The item entered is not a group and therefore cannot be used as a group.

TE_E_INFOTREE_CANTUSEROOT

Can not use tree root for this operation

TE_E_INFOTREE_ITEMISGROUP

ItemID is a group so an object cannot be retrieved.