Chapter Contents |
Previous |
Next |
Using Spatial Data with SAS/GIS Software |
For example, if you have a map of the United States and you want to create a subset map containing just North Carolina and Virginia, you could use the following COVERAGE statement to create the subset map:
COVERAGE CREATE NCVA / where='STATEL IN(37 51) OR STATER IN(37 51)';Any points or lines that do not have 37 or 51 as the STATEL or STATER value will not display on the map.
You may find this confusing if you are not aware that all point features are being displayed when you intend to display only one layer.
You may encounter this situation because the GENPOINT import, by default, defines all point layers with a WHERE='1' clause. You can use the Modify layers button on the GIS Spatial Data Importing window to redefine the layer definition to be a WHERE clause that uniquely identifies the set of points in the layer. If the layer already exists on the map, you can use the LAYER statement in PROC GIS to redefine the layer with a WHERE clause that defines only those points in the layer.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.