Heureka API .NET Documentation
CreateSapling(PredictionUnit,SpeciesCode,Single,Single,TreeType,TreeCategoryType,TreeOrigin,Boolean) Method



PredictionUnit tree belongs to
Species 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 and height
Syntax
'Declaration
 
Public Overloads Shared Function CreateSapling( _
   ByVal p As PredictionUnit, _
   ByVal species As SpeciesCode, _
   ByVal height As Single, _
   ByVal stems As Single, _
   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 species As SpeciesCode
Dim height As Single
Dim stems As Single
Dim treeType As TreeType
Dim treeCategory As TreeCategoryType
Dim treeOrigin As TreeOrigin
Dim databaseOrigin As Boolean
Dim value As Tree
 
value = Tree.CreateSapling(p, species, height, stems, treeType, treeCategory, treeOrigin, databaseOrigin)

Parameters

p
PredictionUnit tree belongs to
species
Species 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
Remarks
Created tree will default be marked databaseorigin = false. May be changed using DatabaseOrigin property.
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