• Print  |
  • Feedback  |

Knowledge Base


TS-672

Maps and Data Sets Supplied with SAS/GIS Software

 

Several SAS/GIS sample maps and their associated data sets are supplied with SAS/GIS Software. These maps reside in the MAPS library, along with map data sets shipped with SAS/GRAPH Software. These maps can be used for exploring the software or for demonstration purposes.

To open the sample maps, invoke SAS/GIS and select File => Open Map, or right-mouse on the GIS Map window and select Open map. Select the MAPS library, followed by the catalog and map name.

Three sets of sample maps are included with SAS/GIS Software, and two maps are created by the SAS/GIS Tutorial. The following list provides the name of the map, and the spatial data sets, catalogs, and data sets associated with each map. The format of the map name is MAPS.catalog.map-name.

 

Maps in the USA Catalog

These maps are all defined in the same spatial database; that is, they all use the same spatial data even though the maps represent different geographic areas.

MAPS.USA.STATE

This map includes USA and STATE boundaries for the continental United States, along with a CAP_CITY layer which represents the locations of state capitals. The theme defined for the STATE layer depicts average household income by state. A Browse action named BRSTATE displays information about the selected state. A Drill action defined for this map allows users to drill down to an individual county map of the selected state. Selecting the state of North Carolina and running the DRILL action opens a sample map of North Carolina by COUNTY and ZIP code (MAPS.NC.NC).

MAPS.USA.COUNTY

This map includes USA, STATE, and COUNTY boundaries for the continental United States. The theme defined for the COUNTY layer depicts population change by county. There are three actions defined for this map. A Browse action named BRCOUNTY displays information about the selected county. The TREND Program action creates a bar chart that displays population and housing trends. A Program action named RATIO creates a plot that displays population and housing ratios for the selected county.

MAPS.USA.TRAINING

This map includes USA and STATE boundaries for the continental United States, along with a CENTER point layer which represents the locations of SAS Training Centers. This map contains an IMAGE action which displays a picture of the selected training center. There is also a Browse action named BRCENTER which displays information about the selected training center.

MAPS.USA.state

(where state is the two-character postal code for the state)

There is an individual map for every state in the continental United States, plus the District of Columbia. Each map is named using the two-character postal code for the particular state. These maps include USA, STATE, and COUNTY boundaries. The theme defined for the COUNTY layer is the same as in the MAPS.USA.COUNTY map, and depicts population change by county. There are three actions defined for the maps. A Browse action named COUNTY displays information about a selected county. The TREND Program action creates a bar chart that displays population and housing trends. A Program action named RATIO creates a plot that displays population and housing ratios for a selected county.

Associated catalog and data sets:

USA Catalog
   
USAC Chains data set
USAN Nodes data set
USAD Details data set
   
USACTI Polygonal index data set for the COUNTY layer
USASTI Polygonal index data set for the STATE layer
   
USACTLAB Label data set for the COUNTY map
USALAB Label data set for the TRAINING map
USASTLAB Label data set for the STATE map
   
USAAC Attribute data set for the COUNTY map
USAAS Attribute data set for the STATE map
USAAT Attribute data set for the TRAINING map

 

Maps in the NC Catalog

MAPS.NC.NC

This map consists of COUNTY and ZIP code boundaries in North Carolina, along with a CITY layer representing the locations of major cities. A Drill action defined for this map allows users to drill down to a map of Wake County (MAPS.WAKE.TRACT) by selecting Wake County and running the DRILL action. This map contains three additional actions that can be run for the selected ZIP code. A BROWSE action displays population and household data. A Program action named SUMMARY executes PROC MEANS and produces a summary for the ZIP code. A Program action named TREND produces a line graph depicting population and housing trends.

Associated catalog and data sets:

NC Catalog
   
NCC Chains data set
NCN Nodes data set
NCD Details data set
   
NCCTI Polygonal index data set for the COUNTY layer
NCZIPI Polygonal index data set for the ZIP layer
   
NCCTLAB Label data set for the CITY layer
NCLAB Label data set for the CITY layer
NCWKLAB Label data set for the COUNTY layer (Wake County)
   
NCAZ Attribute data set

 

Maps in the WAKE Catalog

These maps are all defined in the same spatial data base; that is, they all use the same spatial data even though the maps are not identical.

MAPS.WAKE.BG

This map includes COUNTY, TRACTS, and BG (block group) boundaries, as well as a STREET layer, for Wake County, North Carolina. The theme defined for the BG layer depicts the number of households by block group. This map includes a Browse action named CENSUS which displays information about the selected block group.

MAPS.WAKE.GROCERY

This map includes COUNTY and TRACT boundaries for Wake County, North Carolina, as well as a STREET layer and a GROCERY layer, which represents the locations of grocery stores. The theme defined for the TRACT layer depicts the average household income by tract. This map includes three actions: a Program action named GRAPH that produces a bar chart of store size vs. sales for the selected store; a Browse action that displays information about the selected store; and a Spatial action that displays spatial information about the selected store.

MAPS.WAKE.TRACT

This map includes COUNTY and TRACT boundaries for Wake County, North Carolina, as well as a STREET layer. The theme defined for the TRACT layer depicts the neighborhood type by tract. This map includes a Browse action that displays demographic information about the selected tracts.

Associated catalog and data sets:

WAKE Catalog
   
WAKEC Chains data set
WAKEN Nodes data set
WAKED Details data set
   
WAKEBGI Polygonal index data set for the BG layer
WAKETRTI Polygonal index data set for the TRACTS layer
   
WAKELAB Label data set
   
WAKEABG Attribute data set for the BG map
WAKEAG Attribute data set for the GROCERY map
WAKEAT Attribute data set for the TRACT map

 

Copying and Modifying SAS/GIS Maps in the MAPS Library

Since most SAS Software users do not have write permission to the MAPS library, you will not be able to save any changes that you make to the SAS/GIS sample maps. You will see an error similar to the following in your SAS Log if you try to save any changes made to these maps:

     ERROR: Write access to member MAPS.NC.CATALOG is denied.

In order to save modifications to these maps, you must first copy the map and its associated data sets to a SAS data library to which you have write access. Use the Copy utility included with SAS/GIS to copy the maps.

For example, to copy the MAPS.NC.NC map and its associated data sets from the MAPS library to the SASUSER library, invoke SAS/GIS, select Edit => Copy…, and follow these steps:

  1. Enter or browse and select MAPS.NC.NC for the Entry field.
  2. Select ‘Map’ as the entry Type.
  3. In the ‘Catalog Entry Destination’ field, enter the library and catalog to which you will be copying the map. You must specify a currently allocated SAS data library. If the specified catalog does not already exist in the library, it will be created during the copy process. In this example, enter SASUSER.NC.
  4. In the Options box, select all options:
  5. Copy Source Entry

    Copy Dependent Entries

    Copy Dependent Data Sets

    Spatial Label Other

    Replace Like-Named Entries/Data Sets

    Blank out Path Name References

  6. In the ‘Data Set Destination’ field, enter the library to which the data sets associated with the map will be copied. In this case, enter SASUSER.
  7. Click the Apply button to begin copying the map. When the copy is complete, you will see a note in the message line similar to the following:

          Number of entries, data sets copied: 9, 8

You will also see a list in your SAS Log of all of the catalogs and data sets that were copied.

Now open the SASUSER.NC.NC map in the GIS Map window. You will now be able to make any desired modifications to the map, and save those modifications to the copied map.

 

Maps Produced by the SAS/GIS Tutorial

Two sample maps are produced by the SAS/GIS Tutorial. The maps are created automatically when the tutorial is invoked by selecting Help => Getting Started with SAS/GIS Software => Begin Tutorial… from the GIS Map window. You can also create the maps without invoking the Tutorial by selecting Help => Getting Started with SAS/GIS Software => Create Data.

These maps are created in the SASUSER library, so changes made to these maps can be saved. The following list provides the name of the map, and the spatial data sets, catalogs, and data sets associated with each map. These two maps are defined in the same spatial data base; that is, they use the same spatial data even though the maps are not identical.

SASUSER.MALL.AREA

This map includes TRACT boundaries for several tracts in Wake County, North Carolina. The map also includes point layers MALL, PARK, and SCHOOL. The map does not have a theme defined for the TRACT layer. A STREET layer is also included in this map. A Drill action defined for the MALL layer allows users to drill down to a detailed floor plan of a mall (SASUSER.MALL.STORES).

Associated catalog and data sets:

MALL Catalog
   
MALLC Chains data set
MALLN Nodes data set
MALLD Details data set
   
MALLTI Polygonal index data set for the TRACT layer
   
MALLPOP Attribute data set

 

SASUSER.MALL.STORES

This map consists of STORE and ATRIUM boundaries for a fictitious shopping mall. The map includes FIRE and SPRINK line layers, which depict fire exits and sprinkler systems, as well as the following point layers:  INFO, PHONE, RESTROOM, STROLLER, SECURITY, and ALARM.

There are two actions defined for this map. The STOREPIC image action displays a picture of a store when one of the areas of the STORE layer is selected. The CHART Program action creates a bar chart of the square footage of the selected store(s).

Associated catalog and data sets:

MALL Catalog
   
MALLC Chains data set
MALLN Nodes data set
MALLD Details data set
   
MALLSI Polygonal index data set for the STORE layer
MALLAI Polygonal index data set for the ATRIUM layer
   
MALLSTOR Attribute data set

 

For more information about the components, structure, and function of a spatial database, please see Appendix 1, "Details of SAS/GIS Spatial Databases", in "Working with Spatial Data Using SAS/GIS Software, Version 8".