STEMgis Database Design/Purpose

Before setting up a STEMgis database it is essential to consider what you wish to achieve with STEMgis in terms of integration, analysis and visualization. Many features may be stored in the database in different ways and this will affect the way features and attributes are presented and the tools that may be used to explore the data associated with them.

It will help to answer the following before you begin:

Defining features

In technical terms a feature may be stored as a point, line, polygon (or area), polypolygon (multiple areas), surface, or grid.

Taking a farm as an example of a spatial feature, its features may be represented in many different ways. For instance, a study of crop yield might incorporate some fixed point locations where soil moisture content was measured, different tracks (lines) in a field where different seeding concentrations may have been used, or different fields (polygons and/or polypolygons) within which different fertilizer applications have been made. In addition to this, the farm grounds may need to be represented as an aerial photograph (grid) or the topography of the farm represented as a surface.

As you can see from this example, a feature such as a farm may be represented in many ways and it is the application and the required visualization and analysis tools that determine how to define a feature.

Defining feature types

Many features may be entered into the database. For ease of retrieval these features should be grouped into feature types. There is no fixed way to do this, it is entirely at the user's discretion. For instance, the soil moisture samples may be grouped into a feature type where the name or classification could be as varied as:

The variation in feature classification can be related to spatial extent and/or level of generalization.

The definition of a feature type is also strongly related to the definition of attributes. For instance, you may wish to define some feature types relating to biological classifications, e.g. mammals and invertebrates. However, another way of classifying the data might be to have a feature type called Biodiversity and then add attributes such as anemone count, anemone size variation, which are then classified into a dictionary called invertebrates.

Data may be used for many different purposes and classifying a feature within a feature type does not necessarily preclude it from being compared to features and attributes elsewhere. The STEMgis Viewer allows the user to select up to five feature types in any single query provided that the feature types have the same attributes and spatial feature types.

In conclusion, various applications are possible dependent on the desired perception of, and access to, the data.

Efficiency Issues

Each feature is stored in the database with several indices. Each index is used to link the spatial definitions with attribute data, both of which vary through time. They are essential to the working of STEMgis. To minimize database size and increase retrieval times there are several tips that can be followed:

Defining attributes

When defining attributes you must consider what type of data is to be loaded. Each different type of data is loaded into a different table in the database so it is not possible to change the data type once data has already been loaded onto an attribute (although of course the data may be deleted, the attribute redefined and then the data reloaded. There are a number of different types listed below:

Note: Each attribute has a unit associated with it. It is often possible to measure an attribute using different units (e.g. the attribute 'visitor numbers' might have the units 'count per day' or 'count per year'. Make sure that before loading the data into the STEMgis database that the input files use the same units as the attribute definition.

Defining dictionaries

A dictionary provides a means of grouping different attributes into a user defined classification. This aids the user when searching for the data they require and provides different ways of presenting the data to the user. Dictionaries can therefore be defined to suit the needs of the application.

 

Browser Based Help. Published by chm2web software.