<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Annotating maps in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Annotating-maps/m-p/807237#M33611</link>
    <description>&lt;P&gt;You add a Function to place the text into the annotate data set(s).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to read the documentation associated with the %annomac macro. That macro defines a number of other macros that may using Annotate simpler, such as the %label macro that is intended to add what you want, placing text at a specified coordinate.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Apr 2022 19:39:52 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-04-11T19:39:52Z</dc:date>
    <item>
      <title>Annotating maps</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Annotating-maps/m-p/807223#M33610</link>
      <description>&lt;P&gt;I created a map using this code:&lt;/P&gt;&lt;P&gt;data GCTest;&lt;BR /&gt;set XYZ.XXXX ;&lt;BR /&gt;ZIP=INPUT(IncidentZip, 8.);&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;data GCTest2;&lt;BR /&gt;set GCTest (rename=(Incident_Street_Address=Address&lt;BR /&gt;Incident_County_Name=County&lt;BR /&gt;&lt;BR /&gt;Incident_City_Name=City));&lt;BR /&gt;State="WASHINGTON";&lt;/P&gt;&lt;P&gt;keep Address County ZIP City State;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc geocode&lt;/P&gt;&lt;P&gt;method=street&lt;BR /&gt;data=GCTest2&lt;BR /&gt;LOOKUPSTREET=lookup.USM&lt;BR /&gt;OUT=GEOCODED&lt;BR /&gt;ATTRIBUTE_VAR=(countyfp Tract);&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;%let name=mapping_6_tip;&lt;BR /&gt;filename odsout '.';&lt;BR /&gt;data geocoded; set geocoded (rename=(x=long y=lat state=statecode));&lt;BR /&gt;flag=1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data my_map; set mapsgfk.us_counties&lt;BR /&gt;(where=(statecode='WA') drop=resolution);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data combined; set my_map geocoded (rename=( county=countyname countyfp=county));&lt;BR /&gt;run;&lt;BR /&gt;proc gproject data=combined out=combined latlong eastlong degrees;&lt;BR /&gt;id statecode county;&lt;BR /&gt;run;&lt;BR /&gt;data my_map geocoded; set combined;&lt;BR /&gt;if flag=1 then output geocoded;&lt;BR /&gt;else output my_map;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data geocoded; set geocoded;&lt;BR /&gt;length function $8 color $8;&lt;BR /&gt;xsys='2'; ysys='2'; hsys='3'; when='a';&lt;BR /&gt;function='pie'; size=0.5; rotate=360;&lt;BR /&gt;style='psolid'; color='red'; output;&lt;BR /&gt;style='pempty'; color='cx4c2d00'; output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;goptions device=png;&lt;BR /&gt;goptions border;&lt;BR /&gt;&lt;BR /&gt;ODS LISTING CLOSE;&lt;BR /&gt;ODS HTML path=odsout body="&amp;amp;name..htm"&lt;BR /&gt;(title="Mapping Tip #6 - Street-level Geocoding")&lt;BR /&gt;style=htmlblue;&lt;/P&gt;&lt;P&gt;goptions gunit=pct htitle=4 htext=4 ftitle="albany amt/bold" ftext="albany amt/bold";&lt;BR /&gt;goptions ctext=gray33;&lt;/P&gt;&lt;P&gt;pattern1 v=s c=cornsilk;&lt;/P&gt;&lt;P&gt;title1 ls=1.5 "XXXXXXXXX";&lt;BR /&gt;proc gmap data=my_map map=my_map anno=geocoded;&lt;BR /&gt;id state county;&lt;BR /&gt;choro segment / levels=1 nolegend&lt;BR /&gt;coutline=gray77&lt;BR /&gt;des='' name="&amp;amp;name";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;title h=20pt ' ';&lt;BR /&gt;footnote h=20pt ' ';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to annotate the resulting map with county names. Is there a piece of code I could add to achieve that?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 18:25:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Annotating-maps/m-p/807223#M33610</guid>
      <dc:creator>Ihsan-Mahdi</dc:creator>
      <dc:date>2022-04-11T18:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Annotating maps</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Annotating-maps/m-p/807237#M33611</link>
      <description>&lt;P&gt;You add a Function to place the text into the annotate data set(s).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to read the documentation associated with the %annomac macro. That macro defines a number of other macros that may using Annotate simpler, such as the %label macro that is intended to add what you want, placing text at a specified coordinate.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 19:39:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Annotating-maps/m-p/807237#M33611</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-11T19:39:52Z</dc:date>
    </item>
  </channel>
</rss>

