Heureka API .NET Documentation
CreateTree(PredictionUnit,SpeciesGroupCode,Double,Double,TreeType,TreeCategoryType,Boolean) Method



PredictionUnit tree belongs to
Species group for tree
Diameter of tree, cm
No of stems the tree represents on the prediction unit
Type of tree
Category of tree
True if sapling is to be indicated to origin from database, else false
Create a new instance of the Tree class, using a given species group and diameter
Syntax
'Declaration
 
Public Overloads Shared Function CreateTree( _
   ByVal p As PredictionUnit, _
   ByVal speciesGroup As SpeciesGroupCode, _
   ByVal diameter As Double, _
   ByVal stems As Double, _
   ByVal treeType As TreeType, _
   ByVal treeCategory As TreeCategoryType, _
   Optional ByVal databaseOrigin As Boolean _
) As Tree
'Usage
 
Dim p As PredictionUnit
Dim speciesGroup As SpeciesGroupCode
Dim diameter As Double
Dim stems As Double
Dim treeType As TreeType
Dim treeCategory As TreeCategoryType
Dim databaseOrigin As Boolean
Dim value As Tree
 
value = Tree.CreateTree(p, speciesGroup, diameter, stems, treeType, treeCategory, databaseOrigin)

Parameters

p
PredictionUnit tree belongs to
speciesGroup
Species group for tree
diameter
Diameter of tree, cm
stems
No of stems the tree represents on the prediction unit
treeType
Type of tree
treeCategory
Category of tree
databaseOrigin
True if sapling is to be indicated to origin from database, else false

Return Value

Created Tree
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Tree Class
Tree Members
Overload List

Send Feedback