Chapter Contents

Previous

Next
Working with Spatial Data Using SAS/GIS Software

Data Set and Catalog Entry Interactions

SAS/GIS software uses SAS catalog entries to store metadata for the spatial database-that is, information about the spatial data values in the spatial data sets. SAS/GIS spatial databases use the following entry types.


Spatial Entries

A spatial entry is a SAS catalog entry of type GISSPA that identifies the spatial data sets for a given spatial database and defines relationships between the variables in those data sets.

SAS/GIS software supports simple spatial entries and compound spatial entries as follows:

Simple spatial entries contain:

Merged spatial entries
contain logical references to two or more other child spatial entries, along with a specification of how the entries were merged (by overlapping or edge matching). A merged spatial database consists of multiple SAS/GIS spatial databases linked together hierarchically in a tree structure.

For example, if you have two spatial databases, each containing the county boundaries for one of a pair of neighboring states, you could build a merged spatial that contains both states and view the two maps together. You don't need to import another map containing the two states; the merged spatial points to the two "child" spatial entries.

Spatial entries are created and modified using the SPATIAL statement in the GIS procedure.

Note:   You can also create a new spatial entry by making the following selections from the GIS Map Window's menu bar:

[File][rarr][Save As][rarr][Spatial]   [cautend]

The following additional statements in the GIS procedure also update the information in the spatial entry:

COMPOSITE statement
creates or modifies composites that define the relation and function of variables in the spatial data sets. The composite definition is stored in the spatial entry. See The GIS Procedure and the section in SAS/GIS Software: Usage and Reference, Version 6 about COMPOSITE statements for details on using the GIS procedure to create or modify composites.

POLYGONAL INDEX statement
updates the list of available index names stored in the spatial entry. See The GIS Procedure and the section in SAS/GIS Software: Usage and Reference, Version 6 about POLYGONAL INDEX statements for details of using the GIS procedure to create or modify polygonal indexes.

LATTICE statement
updates the lattice hierarchy stored in the spatial entry. See The GIS Procedure and the section in SAS/GIS Software: Usage and Reference, Version 6 about LATTICE statements for details of the using the GIS procedure to define lattice hierarchies.

You can view a formatted report of the contents of a spatial entry by submitting a SPATIAL CONTENTS statement in the GIS procedure.

See The GIS Procedure and the section in SAS/GIS Software: Usage and Reference, Version 6 about SPATIAL statements for more information about using the GIS procedure to create, modify, or view the contents of spatial entries.


Coverage Entries

A coverage entry is a SAS catalog entry of type GISCOVER that defines the subset, or coverage, of the spatial data that is available to a map. SAS/GIS maps refer to coverages rather than directly to the spatial data.

A coverage entry contains the following elements:

Multiple coverage entries can refer to the same spatial entry to create different subsets of the spatial data for different maps. For example, you could define a series of coverages to subset a county into multiple sales regions according to the block groups contained in each of the regions. The spatial data for the entire county would still be in a single spatial database represented by the chains, nodes, and details data sets and the controlling spatial entry.

Coverage entries are created and modified using the COVERAGE statement in the GIS procedure. You can view a formatted report of the contents of a coverage entry by submitting a COVERAGE CONTENTS statement in the GIS procedure. (The contents report for a coverage entry will also include all the contents information for the root spatial entry as well.)

See The GIS Procedure for more information about using the GIS procedure to create, modify, or view the contents of coverage entries.


Layer Entries

A layer entry is a SAS catalog entry of type GISLAYER that defines the set of features that comprise a layer in the map. A layer entry contains the following elements:

See The GIS Procedure for more information about using the GIS procedure to create, modify, or view the contents of layer entries.


Map Entries

A map entry is a SAS catalog entry of type GISMAP. Map entries are the controlling entries for SAS/GIS maps because they tie together all the information needed to display a map. A map entry contains the following elements:

Map entries are created using the MAP CREATE statement in the GIS procedure. However, much of the information stored in the map entry is specified interactively in the GIS Map window.

You can view a formatted report of the contents of a map entry by submitting a MAP CONTENTS statement in the GIS procedure. (The contents report for a map entry includes all the contents information for the spatial, coverage, and layer entries as well.)

See The GIS Procedure for details of the items that can be specified with the GIS procedure and the section on SAS/GIS Windows for details of the items that can be specified interactively in the GIS Map window.


Composites

For most operations involving the spatial database, you refer to composites of the spatial data variables rather than directly to the variables in the spatial data sets. A composite consists of the following elements:

For example, if the chains data set has a variable named FEANAME that contains feature names, you can create a composite for the FEANAME variable that assigns the class attribute NAME to indicate that the association represents feature names. Or, if the chains data set has COUNTYL and COUNTYR variables that contain the codes for the counties on the left and right sides of the chains, you can create a composite named COUNTY that identifies the bilateral relationship between these two variables and assigns the class attribute AREA to indicate that the association defines county areas in the spatial data.

Composites are created and modified using the COMPOSITE statement in the GIS procedure. composite definitions are stored in the spatial entry.

See The GIS Procedure for more information about using the GIS procedure to create or modify composites.


Chapter Contents

Previous

Next

Top of Page

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.