Chapter Contents

Previous

Next
The GREDUCE Procedure

Overview

The GREDUCE procedure processes map data sets so that they can draw simpler maps with fewer boundary points. It creates an output map data set that contains all of the variables in the input map data set plus a new variable named DENSITY. For each observation in the input map data set, the procedure determines the significance of that point for maintaining a semblance of the original shape and gives the observation a corresponding DENSITY value.

You can then use the value of the DENSITY variable to create a subset of the original map data set. The observations in the subset can draw a map that retains the overall appearance of the original map but contains fewer points, requires considerably less storage space, and can be drawn much more quickly.

GREDUCE does not produce any graphics output. Instead, it produces an output map data set that can become either

CANADA2 Map before Reduction (GR24N01(a)) and CANADA2 Map after Reduction (GR24N01(b)) illustrate the effect of reduction on a typical map data set. CANADA2 Map before Reduction (GR24N01(a)) uses observations with all DENSITY values as input to the GMAP procedure.

CANADA2 Map before Reduction (GR24N01(a))

[IMAGE]

CANADA2 Map after Reduction (GR24N01(b)) uses only those observations with a DENSITY value of 0 or 2 as input to the GMAP procedure.

CANADA2 Map after Reduction (GR24N01(b))

[IMAGE]

The program for these maps is in Reducing the Map of Canada.

The reduced map shown in CANADA2 Map after Reduction (GR24N01(b)) retains the overall shape of the original but requires only 463 observations compared to the 4302 observations that are needed to produce the map in CANADA2 Map before Reduction (GR24N01(a)).

Note:   Many of the map data sets that are supplied by SAS Institute already have been processed by GREDUCE. If the map data set contains a DENSITY variable, you do not need to process the data set using GREDUCE.  [cautionend]

See also The GREMOVE Procedure for more information on how to


Chapter Contents

Previous

Next

Top of Page

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