23
FIA • Forest Inventory Analysis • Plots in forests over the US – Coordinates “fuzzed” at 1km – Tree species and characteristics – Resampled every decade • FIA database: – Downloadable by state – CSV files or MS-Access – “CN” for primary keys – Includes complete database dictionary!

FIA Forest Inventory Analysis Plots in forests over the US –Coordinates “fuzzed” at 1km –Tree species and characteristics –Resampled every decade FIA database:

Embed Size (px)

Citation preview

Page 1: FIA Forest Inventory Analysis Plots in forests over the US –Coordinates “fuzzed” at 1km –Tree species and characteristics –Resampled every decade FIA database:

FIA• Forest Inventory Analysis

• Plots in forests over the US– Coordinates “fuzzed” at 1km– Tree species and characteristics– Resampled every decade

• FIA database:– Downloadable by state– CSV files or MS-Access– “CN” for primary keys– Includes complete database dictionary!

Page 2: FIA Forest Inventory Analysis Plots in forests over the US –Coordinates “fuzzed” at 1km –Tree species and characteristics –Resampled every decade FIA database:

MS-Access

• Part of MS-Office professional

• Relational database– No concurrent access– No spatial extensions

• Has some unique characteristics– Brackets on field names: [Field1]

• “Easy to Use” wizards for queries– Can get to SQL statements behind the

wizards

Page 4: FIA Forest Inventory Analysis Plots in forests over the US –Coordinates “fuzzed” at 1km –Tree species and characteristics –Resampled every decade FIA database:

Select Tables and Fields

Page 5: FIA Forest Inventory Analysis Plots in forests over the US –Coordinates “fuzzed” at 1km –Tree species and characteristics –Resampled every decade FIA database:

Missing Relationships

Page 10: FIA Forest Inventory Analysis Plots in forests over the US –Coordinates “fuzzed” at 1km –Tree species and characteristics –Resampled every decade FIA database:

Add Tables (con’t)

Page 12: FIA Forest Inventory Analysis Plots in forests over the US –Coordinates “fuzzed” at 1km –Tree species and characteristics –Resampled every decade FIA database:

Adding Joins

Drag to Join Tables

Page 13: FIA Forest Inventory Analysis Plots in forests over the US –Coordinates “fuzzed” at 1km –Tree species and characteristics –Resampled every decade FIA database:

SQL View

SELECT PLOT.[CN]

FROM

(PLOT INNER JOIN TREE ONPLOT.CN = TREE.PLT_CN)

INNER JOIN REF_SPECIES ON TREE.SPCD = REF_SPECIES.SPCD;

Page 14: FIA Forest Inventory Analysis Plots in forests over the US –Coordinates “fuzzed” at 1km –Tree species and characteristics –Resampled every decade FIA database:

Add Field to Select

Page 16: FIA Forest Inventory Analysis Plots in forests over the US –Coordinates “fuzzed” at 1km –Tree species and characteristics –Resampled every decade FIA database:

Final Query – Wizard View

Page 21: FIA Forest Inventory Analysis Plots in forests over the US –Coordinates “fuzzed” at 1km –Tree species and characteristics –Resampled every decade FIA database:

MS-Access

• Access uses “*” for a string wildcard

• Fieldnames are in brackets (sometimes)

• First “INNER JOIN” must be in parenthesis

Page 22: FIA Forest Inventory Analysis Plots in forests over the US –Coordinates “fuzzed” at 1km –Tree species and characteristics –Resampled every decade FIA database:

Final Query

SELECT PLOT.[CN], PLOT.LAT, PLOT.LON,

REF_SPECIES.COMMON_NAME, TREE.HT

FROM (PLOT INNER JOIN TREE ON

PLOT.CN = TREE.PLT_CN)

INNER JOIN REF_SPECIES ON

TREE.SPCD = REF_SPECIES.SPCD

WHERE (((REF_SPECIES.COMMON_NAME) Like 'Doug*') AND ((TREE.HT)>200))

ORDER BY TREE.HT DESC;