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



PredictionUnit tree belongs to
Species for tree
Diameter of tree, cm
No of stems the tree represents on the prediction unit
Type of tree
Category of tree
Height of tree, dm
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, diameter and height
Syntax
'Declaration
 
Public Overloads Shared Function CreateTree( _
   ByVal p As PredictionUnit, _
   ByVal species As SpeciesCode, _
   ByVal diameter As Double, _
   ByVal stems As Double, _
   ByVal treeType As TreeType, _
   ByVal treeCategory As TreeCategoryType, _
   ByVal height As Single, _
   Optional ByVal databaseOrigin As Boolean _
) As Tree
'Usage
 
Dim p As PredictionUnit
Dim species As SpeciesCode
Dim diameter As Double
Dim stems As Double
Dim treeType As TreeType
Dim treeCategory As TreeCategoryType
Dim height As Single
Dim databaseOrigin As Boolean
Dim value As Tree
 
value = Tree.CreateTree(p, species, diameter, stems, treeType, treeCategory, height, databaseOrigin)

Parameters

p
PredictionUnit tree belongs to
species
Species 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
height
Height of tree, dm
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