BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Prince12
Calcite | Level 5

Hello there,

I have been drawing some cool maps using PROC GMAP. However, because the map is more detailed to suburbs, it's quiet difficult to make out towns.

I would have loved to just be able to increase or decrease the map size to any scale to fit the view I want. Am thinking there should be an easy way out. I was using width and height in ODS Graphics but I see no effect. Any help?

The Code am using:

/*Filter for the City of Johannesburg*/

DATA SP_SAmaps;

  SET userlib2.SP_SAmaps(where=(DC_MDB_C='JHB'));

Run;

/*Draw-up the MAP*/

ods graphics on /

      width=300in

      height=300in

      imagefmt=gif

      imagemap=on

      imagename="SA_Map"

      border=off;

title1 ls=1.5 "City of Johannesburg";

pattern1 v=s c=white ;

PROC GMAP map=SP_SAmaps data=SP_SAmaps;

  id SP_NAME;

  choro MP_NAME /  discrete NOLEGEND coutline=gray88 ;

RUN;

ods graphics OFF;

Regards,

1 ACCEPTED SOLUTION

Accepted Solutions
Darrell_sas
SAS Employee

There are several ways.  I'm not sure what you are looking for.

First, GOPTION xpixels/ypixels can be used to make the map bigger:

goption xpixels=1000 ypixels=1000;

Next, you can use Proc GPROJECT to "clip" the map in just one area or part of Johannesburg.

So, you are not showing the entire map, but only part of it.

http://support.sas.com/documentation/cdl/en/graphref/63022/HTML/default/viewer.htm#gr23n03-ex.htm

And finally, you can use the JAVA driver to make a map that you can interactively pan and zoom in on.

Go to http://support.sas.com/rnd/papers/#2013 and look for the paper and examples Google-like Maps in SAS.

View solution in original post

1 REPLY 1
Darrell_sas
SAS Employee

There are several ways.  I'm not sure what you are looking for.

First, GOPTION xpixels/ypixels can be used to make the map bigger:

goption xpixels=1000 ypixels=1000;

Next, you can use Proc GPROJECT to "clip" the map in just one area or part of Johannesburg.

So, you are not showing the entire map, but only part of it.

http://support.sas.com/documentation/cdl/en/graphref/63022/HTML/default/viewer.htm#gr23n03-ex.htm

And finally, you can use the JAVA driver to make a map that you can interactively pan and zoom in on.

Go to http://support.sas.com/rnd/papers/#2013 and look for the paper and examples Google-like Maps in SAS.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 3710 views
  • 0 likes
  • 2 in conversation