Previous Page | Next Page

Preparing Spatial Data

Assessing Your Spatial Data Needs

You use a geographic information system to explore data in the context of a map, so you must have a map in order to use SAS/GIS software. Furthermore, the map must be in the form of spatial data that SAS/GIS software can use.


Assessing Your Attribute Data

The first step in deciding what spatial data you need is to assess the attribute data that you want to analyze. The attribute data must have a spatial component. That is, the data must contain at least one variable with values that relate to location. Examples include city, state, or country names or codes; street names; addresses; and so on. Since SAS/GIS software is part of SAS, the attribute data must also be in the form of a SAS data set or a SAS view. If needed, you can use any method that is available for transforming your attribute data into a SAS data set or a SAS view. These methods include, but are not limited to the following:

After you have ensured that your attribute data has a spatial component and is in a format that SAS/GIS can read, you can move on to identifying and locating your spatial data.


Determining Your Spatial Data Requirements

In order to analyze attribute data with SAS/GIS software, you need spatial data that contains representations of features to at least the same level of detail as the location information in your attribute data. For example, if your attribute data consists of demographic data for states, then your spatial data must provide at least state boundaries. If your attribute data consists of demographic data for smaller census tracts, then you need spatial data that contains the corresponding census tract boundaries in order to explore the demographic data with SAS/GIS software.


Locating a Source of Spatial Data

You might be able to purchase appropriate spatial data that has already been prepared in SAS/GIS format by a commercial data vendor. Contact SAS Technical Support for information on sources for spatial data in SAS/GIS format.

The other way to acquire spatial data for use with SAS/GIS software is to import it from other formats. One readily accessible source of maps for importing is the map data sets that are provided with SAS/GRAPH software. However, these maps provide only political boundaries and not other physical features such as rivers and major highways. Other sources for spatial data that you can import include the following:

Whatever the source, the spatial data must have at least one variable with values that match values in the attribute data that you want to analyze. If necessary, you can use SAS to process either the attribute data or the spatial data. For example, if your attribute data contains state names and your spatial data contains state codes, you can use SAS programming statements to generate corresponding codes for the names. Likewise, if your attribute data and spatial data both have codes to identify areas in the map, but the two sets of data use different codes for the same areas, then you can use SAS programming statements to translate the coding schemes.


FOOTNOTE 1:   SAS/GIS can import 2006 Second Edition TIGER/Line files from the U.S. Census Bureau and earlier releases of the TIGER/Line spatial data format. Contact SAS Technical Support for the latest information about the availability of support for importing 2007 TIGER/Line Shapefiles. [arrow]

Previous Page | Next Page | Top of Page