Accessing Field-Map data within a script
Accessing data of Field-Map projects from within scripts is straightforward. Field-Map automatically creates predefined variables for Field-Map layers, each with the same name as its corresponding layer. These variables are instances of a special class called TFieldMapLayerScriptWrapper (resp. TFieldMapLayerWrapper or TLayerWrapper). This class is a wrapper for a Field-Map layer, it contains properties and methods which allow accessing and manipulating data of the layer.
Layers of the type "trees" are more complex and they have a few special child tables to store data of some specific attributes (e.g. CrownProjection, StemProfile etc.). To access these tables, a TFieldMapTableScriptWrapper (resp. TTableWrapper) class is used. It is a simplified version of the TFieldMapLayerScriptWrapper class and contains some of its properties and methods.
There is also a possibility to work with the whole project by using the predefined variable "Project". This variable is an instance of a special class called TFieldMapProjectScriptWrapper ( resp. TProjectWrapper or TFieldMapProjectWrapper). This class is a wrapper for a Field-Map project. It contains properties and methods which allow e.g. enumerating layers or opening plots.
See also:
Accessing Field-Map data within a script; Using Field-Map predefined variables; Using Field-Map global variables; Disabling events; Referencing scripts
© 2024 IFER-Monitoring and Mapping Solutions