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

Hello Everybody,

got stuck again on the GMAP statement.  I was wondering if there is a pattern definition that will allow a gray filled color area with black lines for a pattern.  Following is my code where I have added some patterns experimenting on the four levels I have- but I could not find anything on the internet on how to solve my problem.  I am also attaching a jpg (inserted in a word file) of what I get and what I want in a screen shot of a small area of the map.

Appreciate any help, best

Dimitrios

 

/** code starts here***/

goptions reset=all cback=white border htitle=12pt htext=10pt
display;
footnote3 height=5 angle=90' ';
pattern1 c=LIGGR ;
pattern2 c=brgr;
pattern3 v=m2n45 c=brgr ;
pattern4 v=m2n45 c=LIGGR ;
legend1 label=none shape=bar(4,2)
value=(height=2) across=3 mode=share origin=(45,0);
run;

 

proc gmap data=ma8 map=mapsgfk.world gout=gseg ;
id idname;
choro potential/ levels=4 coutline=black name='map1a' ;
run;

 

/** code ends here***/

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisNZ
Tourmaline | Level 20

Like this?

 

proc catalog c=GSEG kill; run;

goptions reset=all cback=white border ;
pattern1 c=LIGGR repeat=99;

proc gmap data=MAPSGFK.EUROPE map=MAPSGFK.EUROPE gout=GSEG ;
  where IDNAME in:('Fran','Ita','Germ','Swi');
  id IDNAME;
  choro IDNAME / name='map1' ;
run;

pattern1 v=m2n45 c=brgr repeat=99;
proc gmap data=MAPSGFK.EUROPE map=MAPSGFK.EUROPE gout=GSEG ;
  where IDNAME in:('Fran','Ita','Germ','Swi');
  id IDNAME;
  choro IDNAME / name='map2' ;
run;
             
proc greplay igout   =GSEG  
             tc      =SASHELP.TEMPLT
             template=WHOLE
             nofs;
   treplay 1:map1 1:map2;
run;
quit;

Capture.PNG

 

 

 

 

View solution in original post

4 REPLIES 4
ChrisNZ
Tourmaline | Level 20

Please avoid posting MS Office files.

They carry a risk and many people will not/cannot download them.

Just add the image in the post.

ChrisNZ
Tourmaline | Level 20

Like this?

 

proc catalog c=GSEG kill; run;

goptions reset=all cback=white border ;
pattern1 c=LIGGR repeat=99;

proc gmap data=MAPSGFK.EUROPE map=MAPSGFK.EUROPE gout=GSEG ;
  where IDNAME in:('Fran','Ita','Germ','Swi');
  id IDNAME;
  choro IDNAME / name='map1' ;
run;

pattern1 v=m2n45 c=brgr repeat=99;
proc gmap data=MAPSGFK.EUROPE map=MAPSGFK.EUROPE gout=GSEG ;
  where IDNAME in:('Fran','Ita','Germ','Swi');
  id IDNAME;
  choro IDNAME / name='map2' ;
run;
             
proc greplay igout   =GSEG  
             tc      =SASHELP.TEMPLT
             template=WHOLE
             nofs;
   treplay 1:map1 1:map2;
run;
quit;

Capture.PNG

 

 

 

 

Dim13
Obsidian | Level 7

Excellent!

Thank you very much, now I got to apply it to my data,

Appreciate it,

Best

Dimitrios

Dim13
Obsidian | Level 7

Worked fine.  Thanks again.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1800 views
  • 2 likes
  • 2 in conversation