<?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 Proc Gmap postcode annotation in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gmap-postcode-annotation/m-p/626496#M19499</link>
    <description>&lt;P&gt;I've created my maps using shape files of the UK at&amp;nbsp; a postcode area level. My proc map import data set has:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;X&amp;nbsp; &amp;nbsp; &amp;nbsp; Y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Postcode-area&lt;/P&gt;&lt;P&gt;-2&amp;nbsp; &amp;nbsp; &amp;nbsp;56&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AB&lt;/P&gt;&lt;P&gt;-2&amp;nbsp; &amp;nbsp; 52&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B&lt;/P&gt;&lt;P&gt;-2&amp;nbsp; &amp;nbsp; 53&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My response variable is called &lt;STRONG&gt;response&lt;/STRONG&gt; from the&lt;STRONG&gt; response_1&lt;/STRONG&gt; dataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc gmap&lt;/STRONG&gt; map=Post code areas data=response_1;&lt;BR /&gt;id Postcode-area;&lt;BR /&gt;choro response / ;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;I'm trying to annotate each area with the appropriate postcode-area.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the examples I've come across use&amp;nbsp; %annomac; %centroid, however I can't get it to work for my maps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be much appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2020 16:26:26 GMT</pubDate>
    <dc:creator>IIIEEE</dc:creator>
    <dc:date>2020-02-21T16:26:26Z</dc:date>
    <item>
      <title>Proc Gmap postcode annotation</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gmap-postcode-annotation/m-p/626496#M19499</link>
      <description>&lt;P&gt;I've created my maps using shape files of the UK at&amp;nbsp; a postcode area level. My proc map import data set has:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;X&amp;nbsp; &amp;nbsp; &amp;nbsp; Y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Postcode-area&lt;/P&gt;&lt;P&gt;-2&amp;nbsp; &amp;nbsp; &amp;nbsp;56&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AB&lt;/P&gt;&lt;P&gt;-2&amp;nbsp; &amp;nbsp; 52&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B&lt;/P&gt;&lt;P&gt;-2&amp;nbsp; &amp;nbsp; 53&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My response variable is called &lt;STRONG&gt;response&lt;/STRONG&gt; from the&lt;STRONG&gt; response_1&lt;/STRONG&gt; dataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc gmap&lt;/STRONG&gt; map=Post code areas data=response_1;&lt;BR /&gt;id Postcode-area;&lt;BR /&gt;choro response / ;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;I'm trying to annotate each area with the appropriate postcode-area.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the examples I've come across use&amp;nbsp; %annomac; %centroid, however I can't get it to work for my maps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be much appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 16:26:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Gmap-postcode-annotation/m-p/626496#M19499</guid>
      <dc:creator>IIIEEE</dc:creator>
      <dc:date>2020-02-21T16:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Gmap postcode annotation</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gmap-postcode-annotation/m-p/627973#M19516</link>
      <description>&lt;P&gt;Here's a simple example that shows the basics:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data my_map; set maps.us;&lt;BR /&gt;original_order+1;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=my_map out=my_map;&lt;BR /&gt;by statecode;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%annomac;&lt;BR /&gt;%centroid(my_map, centers, statecode, segonly=1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data centers; set centers;&lt;BR /&gt;xsys='2'; ysys='2'; hsys='3'; when='a';&lt;BR /&gt;length function $50;&lt;BR /&gt;function='label'; &lt;BR /&gt;text=trim(left(statecode));&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;pattern1 v=s c=cornsilk;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gmap data=my_map map=my_map anno=centers;&lt;BR /&gt;id statecode;&lt;BR /&gt;choro segment / levels=1 nolegend;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gmap1.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36443iFFF42B7136070FF5/image-size/large?v=v2&amp;amp;px=999" role="button" title="gmap1.png" alt="gmap1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 16:27:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Gmap-postcode-annotation/m-p/627973#M19516</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2020-02-27T16:27:27Z</dc:date>
    </item>
  </channel>
</rss>

