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



PredictionUnit tree belongs to
Species group for tree
Height of tree, dm
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 height
Syntax
'Declaration
 
Public Overloads Shared Function CreateSapling( _
   ByVal p As PredictionUnit, _
   ByVal speciesGroup As SpeciesGroupCode, _
   ByVal height As Double, _
   ByVal stems As Double, _
   ByVal treeType As TreeType, _
   ByVal treeCategory As TreeCategoryType, _
   Optional ByVal treeOrigin As TreeOrigin, _
   Optional ByVal databaseOrigin As Boolean _
) As Tree
'Usage
 
Dim p As PredictionUnit
Dim speciesGroup As SpeciesGroupCode
Dim height As Double
Dim stems As Double
Dim treeType As TreeType
Dim treeCategory As TreeCategoryType
Dim treeOrigin As TreeOrigin
Dim databaseOrigin As Boolean
Dim value As Tree
 
value = Tree.CreateSapling(p, speciesGroup, height, stems, treeType, treeCategory, treeOrigin, databaseOrigin)

Parameters

p
PredictionUnit tree belongs to
speciesGroup
Species group for tree
height
Height of tree, dm
stems
No of stems the tree represents on the prediction unit
treeType
Type of tree
treeCategory
Category of tree
treeOrigin
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