Sample 25573: Using default projection specifications in a map using PROC GPROJECT and PROC GMAP
The sample code on the Full Code tab demonstrates the effect of using PROC GPROJECT on an unprojected map data set without specifying any options.
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
This example demonstrates the effect of using PROC GPROJECT on an unprojected map data set without specifying any options.
The graphics output in the Results tab was produced using SAS® 9.2. Submitting
the sample code with releases of SAS prior to SAS 9.2 might produce different results.
/* Assign the libref of MAPS if necessary */
*libname maps 'location-of-map-datasets';
/* Set the graphics environment */
goptions reset=all border cback=white htitle=12pt;
/* Create reduced continental U.S. map data set */
/* and remove Alaska, Hawaii, and Puerto Rico */
data us48;
set maps.states;
if state ne 2 and state ne 15 and state ne 72;
if density < 3;
run;
/* Add a title to the map */
title1 'Unprojected United States Map';
/* Create unprojected map */
proc gmap map=us48 data=us48 all;
id state;
choro state / nolegend;
run;
quit;
/* Project map data set using all default criteria */
proc gproject data=us48 out=us48proj;
id state;
run;
/* Add a title to the map */
title1 'Projected United States Map';
/* Create projected map */
proc gmap map=us48proj data=us48proj all;
id state;
choro state / nolegend;
run;
quit;
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
This example demonstrates the effect of using PROC GPROJECT on an unprojected map data set without specifying any options.
Type: | Sample |
Topic: | Query and Reporting ==> Creating Reports ==> Graphical ==> Graph Types ==> Maps ==> Projecting SAS Reference ==> Procedures ==> GMAP
|
Date Modified: | 2005-08-27 03:03:25 |
Date Created: | 2005-05-23 14:16:25 |
Operating System and Release Information
SAS System | SAS/GRAPH | z/OS | 9 TS M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9 TS M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9 TS M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9 TS M0 | |
Microsoft Windows 2000 Advanced Server | 9 TS M0 | |
Microsoft Windows 2000 Datacenter Server | 9 TS M0 | |
Microsoft Windows 2000 Server | 9 TS M0 | |
Microsoft Windows 2000 Professional | 9 TS M0 | |
Microsoft Windows NT Workstation | 9 TS M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9 TS M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9 TS M0 | |
Microsoft Windows Server 2003 Standard Edition | 9 TS M0 | |
Microsoft Windows XP Professional | 9 TS M0 | |
64-bit Enabled AIX | 9 TS M0 | |
64-bit Enabled HP-UX | 9 TS M0 | |
64-bit Enabled Solaris | 9 TS M0 | |
HP-UX IPF | 9 TS M0 | |
Linux | 9 TS M0 | |
OpenVMS Alpha | 9 TS M0 | |
Tru64 UNIX | 9 TS M0 | |