Heureka API .NET Documentation
ApiCompartment Constructor(DateTime,AgeType,SoilMoistureType,VegetationType,Double,Double,Double,SpeciesGroupCode,Double,ProjectionInfo,Nullable<GroundLayerType>,Nullable<SoilDepth>,Boolean,Boolean,Nullable<TextureType>,IList<ApiSpeciesInputData>)
Example 



Date for which the input data refers.
Even aged class code
Type of the soil moisture.
Type of the vegetation %%Heureka wiki page for translations to Swedish
East coordinate
North coordinate
Altitude (m)
Site index species (species other that pine and spruce will be transformed to H100 for pine or spruce)
Site index in meters ( H50 for birch and contorta, otherwise H50)
[OPTIONAL] A DotSpatial ProjectionInfo object. If not supplied, SWEREFF99 will be used.
Bottom field layer code,
Soil depth code,
True if there is a ditch that affects stand growth. Actually defined as occurrence of a ditch with 25 m from the centre of a sample plot.
Soil texture code,
[OPTIONAL] If supplied, the tree layer data for the treatment unit will be populated using the type of species data normally used when importing a stand register to Heureka
Initializes a new instance of the ApiCompartment class. This constuctor uses as explicit argument list of stand and site descripition varaiables, similiar to a Heureka stand register record when importing in for example PlanWise
Syntax
'Declaration
 
Public Function New( _
   ByVal startDate As Date, _
   ByVal evenAgedClass As AgeType, _
   ByVal soilMoistureCode As SoilMoistureType, _
   ByVal vegetationType As VegetationType, _
   ByVal eastCoordinate As Double, _
   ByVal northCoordinate As Double, _
   ByVal altitude As Double, _
   ByVal siSpecies As SpeciesGroupCode, _
   ByVal siteIndex As Double, _
   Optional ByVal projection As DotSpatial.Projections.ProjectionInfo, _
   Optional ByVal bottomFieldLayer As Nullable(Of GroundLayerType), _
   Optional ByVal soilDepth As Nullable(Of SoilDepth), _
   Optional ByVal ditch As Boolean, _
   Optional ByVal peat As Boolean, _
   Optional ByVal soilTexture As Nullable(Of TextureType), _
   Optional ByVal speciesData As IList(Of ApiSpeciesInputData) _
)
'Usage
 
Dim startDate As Date
Dim evenAgedClass As AgeType
Dim soilMoistureCode As SoilMoistureType
Dim vegetationType As VegetationType
Dim eastCoordinate As Double
Dim northCoordinate As Double
Dim altitude As Double
Dim siSpecies As SpeciesGroupCode
Dim siteIndex As Double
Dim projection As DotSpatial.Projections.ProjectionInfo
Dim bottomFieldLayer As Nullable(Of GroundLayerType)
Dim soilDepth As Nullable(Of SoilDepth)
Dim ditch As Boolean
Dim peat As Boolean
Dim soilTexture As Nullable(Of TextureType)
Dim speciesData As IList(Of ApiSpeciesInputData)
 
Dim instance As New ApiCompartment(startDate, evenAgedClass, soilMoistureCode, vegetationType, eastCoordinate, northCoordinate, altitude, siSpecies, siteIndex, projection, bottomFieldLayer, soilDepth, ditch, peat, soilTexture, speciesData)

Parameters

startDate
Date for which the input data refers.
evenAgedClass
Even aged class code
soilMoistureCode
Type of the soil moisture.
vegetationType
Type of the vegetation %%Heureka wiki page for translations to Swedish
eastCoordinate
East coordinate
northCoordinate
North coordinate
altitude
Altitude (m)
siSpecies
Site index species (species other that pine and spruce will be transformed to H100 for pine or spruce)
siteIndex
Site index in meters ( H50 for birch and contorta, otherwise H50)
projection
[OPTIONAL] A DotSpatial ProjectionInfo object. If not supplied, SWEREFF99 will be used.
bottomFieldLayer
Bottom field layer code,
soilDepth
Soil depth code,
ditch
True if there is a ditch that affects stand growth. Actually defined as occurrence of a ditch with 25 m from the centre of a sample plot.
peat
soilTexture
Soil texture code,
speciesData
[OPTIONAL] If supplied, the tree layer data for the treatment unit will be populated using the type of species data normally used when importing a stand register to Heureka
Example
var compartment = new ApiCompartment(startDate:2015-06-10, 
                    meanAge:62.0, 
                    basalAreaHa:25.0, 
                    meanHeightAllSpecies:18.5, 
                    evenAgedClass:AgeType.EvenAged, 
                    soilMoistureCode:SoilMoistureType.Mesic, 
                    vegetationType:VegetationType.Bilberry, 
                    eastCoordinate:717400.0, 
                    northCoordinate:7165154.0, 
                    altitude:100.0, 
                    siSpecies:SpeciesGroupCode.Pine, 
                    siteIndex:24.0, 
                    projection:KnownCoordinateSystems.Projected.NationalGridsSweden.SWEREF99TM);
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

ApiCompartment Class
ApiCompartment Members
Overload List


Send Feedback