<?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: proc sgmap annotation bug? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/proc-sgmap-annotation-bug/m-p/581964#M13774</link>
    <description>Same in 9.4 TS1M6 &lt;BR /&gt;This is likely a tech support question &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
    <pubDate>Sat, 17 Aug 2019 19:24:23 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-08-17T19:24:23Z</dc:date>
    <item>
      <title>proc sgmap annotation bug?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-sgmap-annotation-bug/m-p/581878#M13759</link>
      <description>&lt;P&gt;I'm trying to place some annotations on a map.&amp;nbsp; I have two sets of annotations, a bubble plot and a text annotation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there are more than 500 observations in the annotation dataset, the text plot annotation does not get annotated to the map.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The weird thing is, if I have a bubble plot by itself there doesn't appear to be a limit to how many observations it will annotate, it will happily place down 600 bubble annotations.&amp;nbsp; It's only once I have multiple 'series' being annotated that this shows up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code to reproduce (run it twice, once with the obs statement commented, then again with it uncommented):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data annotations_bubble;
  do x = -70 to -80 by -.1;
    do y = 35 to 39 by 1;
      size = 1;
      output;
    end;
  end;
run;

data annotations_text;
  x = -75;
  y = 37.5;
  size = .;
  text = 'X';
run;

data annotations_all;
  set annotations_text
      annotations_bubble(/* obs=499 */)  /* &amp;lt;------ UNCOMMENT HERE TO SEE ISSUE */      
      ;
run;


* BUBBLEPLOT;
ods graphics / reset=all imagename="bubble" imagefmt=png width=&amp;amp;img_width height=&amp;amp;img_height border=off;
proc sgmap mapdata=maps.states
           plotdata=annotations_all;
           ;
           
  esrimap url='http://services.arcgisonline.com/arcgis/rest/services/Canvas/World_Light_Gray_Base';
  
  text x=x y=y text=text   / textattrs=(size=50pt color=black);
  bubble x=x y=y size=size / fillattrs=(color=green);
  
%runquit;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have a workaround for this? I'm currently running 9.4 TS1M5.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 22:45:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-sgmap-annotation-bug/m-p/581878#M13759</guid>
      <dc:creator>RobP</dc:creator>
      <dc:date>2019-08-16T22:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgmap annotation bug?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-sgmap-annotation-bug/m-p/581964#M13774</link>
      <description>Same in 9.4 TS1M6 &lt;BR /&gt;This is likely a tech support question &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Sat, 17 Aug 2019 19:24:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-sgmap-annotation-bug/m-p/581964#M13774</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-17T19:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgmap annotation bug?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-sgmap-annotation-bug/m-p/749865#M29594</link>
      <description>&lt;P&gt;I tried this on 9.4m7 Windows SAS, and it works there, therefore I'm guessing the underlying limitation was fixed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a slightly cleaned-up version of the example (and I ran it with 861 bubbles):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data bubbles;&lt;BR /&gt;do long = -160 to -80 by 2;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;do lat = 30 to 70 by 2;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; size = 1;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; output;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; end;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data text;&lt;BR /&gt;text_long=-75 ; text_lat=37.5; text='X';&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data annotations_all; set text bubbles;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgmap mapdata=mapsgfk.us_states plotdata=annotations_all; &lt;BR /&gt;openstreetmap; &lt;BR /&gt;choromap / mapid=statecode;&lt;BR /&gt;bubble x=long y=lat size=size / fillattrs=(color=green);&lt;BR /&gt;text x=text_long y=text_lat text=text / textattrs=(size=50pt color=red);&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="bubble.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60660i8320596651550071/image-size/large?v=v2&amp;amp;px=999" role="button" title="bubble.png" alt="bubble.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 13:42:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-sgmap-annotation-bug/m-p/749865#M29594</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2021-06-23T13:42:29Z</dc:date>
    </item>
  </channel>
</rss>

