Tutorial - Itree Eco Geodatabase
Tutorial - Itree Eco Geodatabase
Acknowledgement
This project was supported by the Urban & Community Forestry Program of the U.S.
Forest Service, Department of Agriculture State & Private Forestry, Region 8 (Atlanta)
under cooperative agreement [14-CS-11330144-078] between Georgia Tech and the
USDA Forest Service (Urban Forestry South, Athens, Georgia)
Project Title
Data Model for GIS Database Management and i-Tree Eco
Project Period
8/15/2014 - 12/18/2015
Project Team
Rama Sivakumar (PI), Senior Research Engineer, Center for GIS, Georgia Tech
Ryan Bowman, Graduate Student
Manasvini Sethuraman, Graduate Student
1. Loading the feature class
This is a step by step instruction manual for establishing and using the iTree Eco geodatabase pro-
vided. The instructions will begin with transferring tree inventory data into the iTree Ece geoda-
tabase, will proceed to adding features into the feature class, and will review editing, copying and
validating attributes associated with trees in this inventory.
Appendix A contains a list of the field within the FullInventory feature classe’s Attribute Table,
which are the same as the field requirements for the i-Tree Eco software,
A second tutorial has been developed (i-Tree Eco Python Tools Tutorial) for using the python
tools developed for transferring data between this geodatabase and the i-Tree Eco software.
3--> Click the FullInventory_Blank feature class to high- Figure 1.2 a. Connection to fullinventory
Figure 1.2 b. Connecting to a folder
light it; then click Add to add it to the map.
Page: 2
Loading the feature class: Adding features to feature class
Now that the feature class has been added to the map, it is possible to add point features to the
feature class that represent trees in the inventory. In order to do this, we must begin an editing
session through the Editor toolbar, and add individual features.
Page: 3
2. Editing feature attributes
7--> Click the Attributes tab to see the newly created point’s
attributes.
User tip: you can see and edit the attributes of any feature
by highlighting the feature during an editing session.
7--> Double click on the 0 value in the Tree ID field, and re-
place it with 1 (Fig. 2.1).
(note: for iTree Eco’s analysis to run correctly, the Tree ID
value will need to be unique for each tree created)
7--> Click on the drop-down menu in the Tree Status field,
and select Planted.
7--> Click the Editor drop-down menu from the Editor tool-
bar and choose Save Edits.
Page: 4
Editing feature attributes: Validating Attributes (cont.)
8--> Go to the Edit drop-down menu again, and choose validate fea-
tures. The message show in Figure 2.4 should appear. Press OK.
Notice the point is no longer selected and the attributes do not appear in
the Attributes window.
8--> Go to the Edit drop-down menu and save your edits. Press OK. Figure 2.4
Validation approval
(note: you can save your edits at any time during an editing session,
and edits to all feature classes will be saved.)
9--> Using the edit tool from the toolbar menu, select the point again by
clicking on it or dragging a square around it.
Notice the attributes appear in the Attributes toolbox. The process of starting
an editing session, opening the Attribute toolbox, and selecting the feature(s)
that you want to edit can be repeated on existing feature(s) in the future.
10--> In the field “Species or genus code” type QU.
10--> In the field “Height of Measurement DBH was
taken” enter 4.5.
10--> In the field “Diameter at Breast Height” type 18.
(note: if surveying and there are multiple trunks,
e.g. crape myrtle, change Diameter at Breast
Height 2-6 for each trunk present)
10--> In the field “Height to top of tree” enter 25.
10--> In the field “Height to top of live crown”
enter 25.
10--> In the field “Height to base of crown” enter 8.
(note: “Height to top of live crown” and “Height
to base of crown” cannot exceed “Height to top
of tree” for iTree Eco’s analysis)
10--> In the field “Crown width (north-south)”
enter 30.
10--> In the field “Crown width (east-west)” enter 30.
10--> In the field “Percent of crown silhouette miss-
ing” enter 16.
10--> In the field “Percent of crown dieback” enter 10.
10--> Change “Crown light exposure”
to tree received full light from top and 3 sides.
10--> Change “Location of the tree (N or S)”
to street tree.
10--> In the field “comments”
enter this is a test tree.
10--> Make sure the Attributes window looks like
Figure 2.5, then go to the Editor drop-down
menu > Validate Features.
10--> Save your Edits. Figure 2.5 Entering attributes for test tree
Page: 5
3. Understanding Domains
To better understand the domains required for the iTree Eco analysis, we
will now create a second tree with erroneous attribute data.
Notice there are two types of Domains established, some that have codes
and descriptions and other limit range of values able to be entered.
Notice the Domain type limits the range of acceptable values from -1 to 6.
This domain is set up within the geodatabase. To use this domain, we must
apply it to a field, which can then be verified.
Page: 6
Understanding Domains (cont.)
13--> Close the database properties window.
13--> Expand the Tutorial_iTreeEco geodatabase.
13--> Right-click the FullInventory_Blank feature
class and choose Properties.
13--> Click on the Fields tab, and examine the Fields
contained within this features attribute table. Figure 3.2 DBHHT Field Properties
Notice the Domain applied to this Field is DBHHT. Therefore, the DBHHT
Domain limits the DBHHT Field’s values to -1 to 6. To see a full list of the
Domains established for each field, refer to the i-Tree Eco required fields in
Appendix A.
We have explored the process of creating inventory feature classes with domains from scratch us-
ing the domains established. The next section with demonstrate how to copy features from anoth-
er inventory database into the feature class developed for i-Tree Eco.
Page: 7
4. Copying Data
The following section will describe the process of copying features from an existing inventory
shapefile to a feature class in the i-Tree Eco data model, which is compatible with the tools devel-
oped.
14--> In the Catalog menu, expand the Tutorial folder, and drag
the raw_treedb.shp into the Table of Contents.
14--> Right click on the newly added raw_treedb layer in the
Table of Contents, and choose Zoom to Layer.
14--> Right click on the raw_treedb layer in the Table of Con-
tents, and open the Attribute Table.
14--> Right click on the SPECIES field, and choose Properties.
14--> Notice that the Type is String, and the length of the field is
8 characters (Fig. 4.1).
14--> Press OK, and close the Attribute Table.
Figure 4.1 SPECIES Field Properties
The characteristics of all the Attribute Table’s fields remained constant when exporting the
data. This is useful information when you are transferring data.
Page: 8
Copying Data: Matching Attribute Table Fields
17--> Right click on the newly added raw_inventory layer in the Table of Contents, and open the
Attribute Table
17--> Right click on the SPECIES field, and choose Properties. Notice that the Name is
“SPECIES”, the Type is String, and the Length of the Field is 8 characters.
17--> Press OK, DON’T close the Attribute Table.
Notice that the field properties within the feature class is much more detailed. This is due to the
added capabilities that accompany the use of a geodatabase structure, ie allow NULL Values, De-
fault Value, and Domain. These added capabilities are the reason this data model is able to be vali-
dated, and the built in capabilities are very useful for data Quality Control / Quality Validation.
Page: 9
Copying Data: Matching Attribute Table Fields (cont.)
The field names for these tables are not the same. This is due to the limited capabilities for shape-
files to store field names, which do not match that of the FullInventory_Copying feature class.
To make these field names match, we will need to add a new field to the raw_inventory layer that
is the same name, type, and length as the field in the FullInventory_Copying feature class.
To see the conventions for the field names in already set up in the FullInventory_Copying feature
class, refer to Appendix A.
20--> Close the Copying Full Tree Inventory Attribute
Table. If you close both attribute tables by accident,
reopen the raw_inventory Attribute Table.
20--> Go to Table Options > Add Field.
20--> In the Add Field Window, type FIELDLANDUSE in
the field next to Name:.
20--> Change the type to “Text”.
20--> Type 1 in the field next to Length.
Make sure the Add Field window looks like Figure
4.5, then press OK.
21--> Navigate to the new FIELDLANDUSE field.
Right click the field heading and choose
Field Calculator.
21--> The warning is letting you know that the changes
you make will be permanent. Press YES.
21--> In the Field Calculator window, scroll down in the
Figure 4.5 Adding Field to Attribute Table
Fields: list, and double click FIELDLANDU
(Fig. 4.6).
21--> Press OK.
Note that because the Types are not String, the Length of the field will not be an option to set.
If in the future you need to set a Text field, make sure you take note of the Length of the Field.
Page: 10
Copying Data: Copying Features between Features Classes
Now that the raw_inventory feature class is in the same geodatabase as the Copying Full Tree In-
ventory feature class, and the fields of both feature classes match, we can seamlessly copy features,
i.e. tree records, from one feature class to another, with all the attributes attached.
This is done so that we can only copy features from the raw_in-
ventory feature class. Making the Copying Full Tree Inventory
layer unselectable is important so that we do not repeatedly copy
the same features from the final feature class when editing.
25--> Clear the raw_inventory selection.
25--> Click and drag a box around the South East block of
trees (Fig. 4.8). Figure 4.8 Selection of Tree Inventory
25--> In the Table of Contents, there should be around 260
trees selected in the raw_inventory row, and 0 trees
selected in the Copying Full Tree Inventory and raw_
treedb rows.
25--> Press ctrl+C to copy the selected features in the layer.
25--> Press ctrl+V to past the features you just copied. In the
Figure 4.9 Selecting Feature Class
25--> Paste Window, be sure to change the Target layer to to Paste Features in
paste the features into the Copying Full Tree Inventory
layer (Fig. 4.9), then press OK.
Page: 11
Copying Data: Validating Copied Features
26--> Right click on the Copying Full Tree Inventory layer in the Table of Contents and open the
Attribute Table.
All of the features you just copied into this layer should still be highlighted, check the
number of records at the bottom of the screen, there should be the same number of re-
cords as were highlighted. Also examine the fields to make sure all fiattributes within the
fields were transferred.
The list of features that are not valid are shown in the top pane (Fig. 4.10).
26--> For the Tree ID 265, change the Field Land Use field to “Institutional”.
26--> For the Tree ID 308, type 4.5 into the space next to DBHHT field.
In the future, it will be necessary to compare values for an erroneous tree with the field
domains established for the i-Tree Eco analysis, which are listed in Appendix A.
27--> Validate the features again, notice that the corrected features are
no longer highlighted.
27--> Go to Editor > save edits.
27--> Open the Copying Full Tree Inventory Attribute Table again.
27--> Go to the Table Options drop-down menu, and select Select All.
27--> Now go to the Editor toolbar > Editor drop-down > Validate
Features. The message in Figure 4.11 should appear, and no fea-
Figure 4.11 Validation
tures should be highlighted.
27--> Press OK, close the Attribute Table, then go to the Editor tool-
bar > Editor drop-down menu > Stop Editing.
We have successfully copied features from a shapefile with tree records into a feature class that
had the pre-set domains necessary to run i-Tree Eco.
This concludes the i-Tree Eco Geodatabase Tutorial. To fully maximize the potential of this data-
base, proceed to the i-Tree Eco Python Tools Tutorial to understand how to use the python tools
developed for data transfer between this geodatabase and i-Tree Eco software.
Page: 12
Tutorial:
Geodatabase Developed for
i-Tree Eco Full Inventory
APPENDIX A
Required attributes for i-Tree Eco:
Fields information for iTreeEco.gdb and MS Access database
95 Page: 14
Field name MS Access field type Notes on data
Data optional. Must be -1 for
DBH4 Single OR Double a removed tree. Otherwise,
must be between 0.5 and 200.
15
96
Field name MS Access field type Notes on data
Data required. Percent of
crown silhouette missing.
PercentCrownMissing Integer OR Long Must be -1 for a removed tree,
otherwise must be between 0
and 100.
Page: 16
96