Previous Page | Next Page

The GPROJECT Procedure

Example 3: Clipping an Area from the Map


Procedure features:

PROC GPROJECT options:

LONGMAX=

LONGMIN=

LATMAX=

LATMIN=

Sample library member: GPJCLIPP

[Sample library member: GPJCLIPP]

This example uses the clipping capabilities of PROC GPROJECT to create a map of the states in the United States that border the Gulf of Mexico. Because the PROJECT= option is not used in the GPROJECT procedure, the Albers' equal-area projection method is used by default.

 Note about code
goptions reset=all border;
 Note about code
proc gproject data=maps.states
              out=gulf
              longmin=81
              longmax=98
              latmin=25
              latmax=33;
   where density<5;
   id state;
run;
 Note about code
title "Northern Gulf Coast";
footnote j=r "GPJCLIPP ";
 Note about code
pattern value=mempty color=blue;
 Note about code
proc gmap map=gulf data=gulf all;
   id state;
   choro state / nolegend levels=1;
run;
quit;

Previous Page | Next Page | Top of Page