Chapter Contents |
Previous |
Next |
Using Spatial Data with SAS/GIS Software |
COVERAGE operation <libref.catalog.>coverage-entry </ options>; |
Description |
For example, you could create a coverage entry, MYCAP, that contains geographic information for your state capital. MYCAP subsets the spatial database that is defined in the spatial entry MYSTATE, which contains geographic information that is used to create a map of your entire state.
Note: Even if you want to display the entire geographic scope
of your spatial data and not a subset, you must still create a coverage entry
by using WHERE='1'.
COVERAGE Statement Operations |
In a COVERAGE statement, the operation is one of the following:
The following list contains descriptions of the COVERAGE statement operations:
No additional arguments (other than the coverage entry name) are used with this operation. An error occurs if the specified coverage entry does not exist.
An error occurs if a coverage entry with the specified name already exists. The CREATE operation does not overwrite existing coverage entries. Use the REPLACE operation to replace an existing entry.
For a COVERAGE CREATE statement, you must also specify the WHERE= argument.
No additional arguments (other than the coverage entry name) are used with this operation. An error occurs if the specified coverage entry does not exist.
For the DELETE operation, you can also specify the special
value _ALL_
for the coverage entry name argument
to delete all coverage entries in the current catalog.
_ALL_
. Note: You must specify new coverages for any
map entries that refer to the deleted coverage entry.
For a REPLACE operation, you must also specify the WHERE= argument.
An error occurs if there is no existing coverage entry with the specified name.
<libref.catalog.>coverage-entry |
In a COVERAGE statement, the coverage-entry name argument identifies the coverage entry that you want to create, delete, replace, or update. The coverage-entry name must conform to the rules for SAS names:
COVERAGE Statement Optional Arguments |
When you specify CREATE, REPLACE, or UPDATE for the operation in a COVERAGE statement, you can specify one or more of these options following the coverage entry name.
Note: Separate the list of arguments from the coverage-entry name with a slash
(/).
The following list contains descriptions of additional COVERAGE statement options:
An error occurs if there is no existing spatial entry that has the specified name, or if you omit this argument when no spatial entry is currently selected.
To specify a WHERE expression greater than 200 characters, you must break the expression into separate quoted strings. When WHERE= is processed, the strings are concatenated, with a space between each string, and the entire expression is evaluated.
If you are using multiple strings, each string does not have to contain a complete WHERE expression, but the concatenated expression must be valid.
You can use any of the variables in the chains data set in the WHERE expression, not just the coordinate variables. However, the WHERE clause must delineate a bounded geographic region. You can use only the variables in the WHERE expression, not composites. Specify WHERE='1' to define a coverage that includes the entire spatial database.
Note: The WHERE= argument is required when you use the CREATE or REPLACE
keyword.
COVERAGE Statement Examples |
proc gis cat=gmaps.usa; spatial usa; coverage create all / where='1'; run;
coverage create southeast / where=("statel in (1,12,13,28,37,45,47) | stater in (1,12,13,28,37,45,47)"); run;
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.