Chapter Contents

Previous

Next
The GPROJECT Procedure

Example 3: Clipping an Area from the Map


Procedure features:
PROC GPROJECT options:
LONGMAX=
LONGMIN=
LATMAX=
LATMIN=
Sample library member: GR23N03

[IMAGE]

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
libname reflib 'SAS-data-library';
libname maps 'SAS-data-library';
goptions reset=global gunit=pct border cback=white
         colors=(black blue green red)
         ftext=swiss htitle=6 htext=3;
 Note about code
proc gproject data=maps.states
              out=reflib.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 'GR23N03 ';
 Note about code
pattern value=mempty repeat=7 color=blue;
 Note about code
proc gmap map=reflib.gulf data=reflib.gulf all;
   id state;
   choro state / nolegend;
run;
quit;


Chapter Contents

Previous

Next

Top of Page

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