Previous Page | Next Page

Details of SAS/GIS Spatial Databases

The SAS/GIS Data Model

SAS/GIS software uses two basic types of data:

spatial data

describes the location, shape, and interrelationships of map features.

attribute data

provides information that relates to the map features.


Spatial Data Features

SAS/GIS software uses spatial data to represent the following three types of map features:

point features

consist of individual locations that are shown as symbols, representing real-world locations of special points of interest.

line features

consist of sequences of two or more coordinates that form zero-width shapes, either closed or unclosed. Line features represent entities that either have no width, such as political boundaries, or those that can be represented as having no width, such as streets or water pipes.

area features

consist of sequences of three or more coordinates that form polygons (with single or multiple boundaries and with or without holes.) Area features represent two-dimensional entities such as geographic areas (countries, states, and so on) or floor plans for buildings.


SAS/GIS Topology

To represent point, line, and area features in a map, SAS/GIS software defines the following topological features in the spatial data:

chains

are sequences of two or more points in the coordinate space. The end points (that is, the first and last points of the chain) are nodes. Each chain has a direction, from the first point toward the last point. The first point in the chain is the from-node and the last point is the to-node. Relative to its direction, each chain has a left side and a right side.

Points between the from-node and the to-node are detail points, which serve to trace the curvature of the feature that is represented by the chain. Detail points are not nodes.

nodes

are points in the spatial data coordinate space that have connections to one or more chains.

areas

are two-dimensional finite regions of the coordinate space. One or more chains, called boundary chains, separate two different areas. Chains that lie completely inside an area are called internal chains and are bounded on the left and right sides by the same area.

The spatial data coordinate space can be represented in any numeric units, even those that include arbitrary values. Coordinates that are stored as longitude and latitude values have a maximum usable precision of about one centimeter.

Representations of map features are implemented with one or more chains, as follows:

point features

are implemented with one chain, one node (that is, the from-node and to-node for a point feature are the same node), and no detail points.

line and area features

are implemented with one or more chains and one or more nodes.


Rules for Topological Correctness

SAS/GIS spatial data must obey the following rules in order for the topology to be correct. These rules are similar to the rules for TIGER files from the U.S. Census Bureau. For more information on these rules, see Gerard Boudriault's 1987 article, "Topology in the TIGER File" in AUTO-CARTA 8, Proceedings, pages 258-263, published by the American Society for Photogrammetry and Remote Sensing and the American Congress on Surveying and Mapping.


Topological Completeness

All chains must have the following characteristics:

These relationships must be complete, so the following two rules apply:

For each unique area ID or unique set of area IDs, all the boundary chains that have the ID value (either on the right or left, but not both) form one or more closed loops or cycles.


Topological-geometric Consistency

The collection of chains, nodes, and areas must have coordinates that make the collection a disjoint partitioning of the coordinate space. The following four conditions must be true to avoid problems with displaying the spatial data:

Note:   Edge-matched data shares coordinates along common boundaries, but each chain should have the proper polygonal ID values on the side that represents the outside edge of their respective physical coverages as well as on the inside edge.  [cautionend]


Problems Resulting from Topological Errors

Topological errors in the spatial data cause the following types of problems:


Attribute Data Features

Attribute data is all other data that is related to map features in some way, including the data that you want to analyze in the context of the map. Attribute data can be stored in the spatial database by the following methods:

Attribute data can be used as follows:

Previous Page | Next Page | Top of Page