<?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: sgmap polygons overlapping in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/788652#M22466</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;I wasn't sucessful with that solution. I will be glad if anyone can help&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jan 2022 13:09:17 GMT</pubDate>
    <dc:creator>Anita_n</dc:creator>
    <dc:date>2022-01-06T13:09:17Z</dc:date>
    <item>
      <title>sgmap polygons overlapping</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/788529#M22463</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;am tring to create a map using sgmap. I realise the polygons are overlaping. I have being tring to findout what am doing wrong but haven't been successful. Please any help. Here is my code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgmap mapdata=germany maprespdata=myplotdata rattrmap=rattrmap 
plotdata=myplotdata;

openstreetmap;
choromap sum_of_cases /mapid=id id=id transparency=0.5 leveltype=interval numlevels=4 attrid=myid name="map";

gradlegend "map" / position=right notitle;;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and the result is attached:&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="Anita_n_0-1641412249508.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67148i9007E720DC2E9DAF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Anita_n_0-1641412249508.png" alt="Anita_n_0-1641412249508.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also get this warning:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;WARNING: Some of the regions in the map contain multiple classification values. Only the first value is will be displayed.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 21:03:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/788529#M22463</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2022-01-05T21:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: sgmap polygons overlapping</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/788533#M22464</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not a specialist with all that is "maps"-related.&lt;/P&gt;
&lt;P&gt;But could it be that your problem is the same as the one that was described (and solved!) here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to remove extraneous lines in map of Mexico? &lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/How-to-remove-extraneous-lines-in-map-of-Mexico/m-p/783772#M22375" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/How-to-remove-extraneous-lines-in-map-of-Mexico/m-p/783772#M22375&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 20:00:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/788533#M22464</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-01-05T20:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: sgmap polygons overlapping</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/788540#M22465</link>
      <description>&lt;P&gt;Yes, its similar. Let me try that and see.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 20:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/788540#M22465</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2022-01-05T20:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: sgmap polygons overlapping</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/788652#M22466</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;I wasn't sucessful with that solution. I will be glad if anyone can help&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 13:09:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/788652#M22466</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2022-01-06T13:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: sgmap polygons overlapping</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/788666#M22467</link>
      <description>&lt;P&gt;The error message probably means that your response dataset (maprespdata=myplotdata) has multiple response/choro values (sum_of_cases) for some of the map areas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A 'quick fix' might be to do something like this, and use the new dataset:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql noprint;&lt;/P&gt;
&lt;P&gt;create table myplotdata_unique as&lt;/P&gt;
&lt;P&gt;select unique id, sum_of_cases&lt;/P&gt;
&lt;P&gt;from myplotdata;&lt;/P&gt;
&lt;P&gt;quit; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you should really investigate and determine why you have multiple observations for your id's.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 17:16:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/788666#M22467</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2022-01-07T17:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: sgmap polygons overlapping</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/788851#M22469</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60547"&gt;@sbxkoenk&lt;/a&gt;&amp;nbsp;I could solve the problem this way;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table germany_rlp as select a.*, b.idname from mapsgfk.germany(drop=x y) a natural join mapsgfk.germany_attr b
where id1 = "DE-07";

create table respdat_rlp as select id as id, mean(long) as longc, mean(lat) as latc, min(idname) as idname from 
germany_rlp group by id;
quit;

proc sgmap mapdata=germany_rlp maprespdata=respdat_rlp plotdata=myplotdat;
openstreetmap;
choromap/ mapid=id;
bubble x=longc y=latc size= no_of_cases/ bradiusmin=2px bradiusmax=10px datalabel=idname 
datalabelattrs=(color=red size=3px style=italic);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;this is the result I got&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="Anita_n_0-1641559911691.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67181iAE120FC4E54AD3AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Anita_n_0-1641559911691.png" alt="Anita_n_0-1641559911691.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;My question is how can I make the selected region larger to cover a larger area of the map&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 12:55:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/788851#M22469</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2022-01-07T12:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: sgmap polygons overlapping</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/788900#M22470</link>
      <description>&lt;P&gt;The background map area is automatically selected to accommodate all the map areas and bubbles you're drawing. Therefore you'll need to eliminate the 'bubbles' from your data, in the areas you do not want to show.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 15:51:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/788900#M22470</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2022-01-07T15:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: sgmap polygons overlapping</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/788905#M22471</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13585"&gt;@GraphGuy&lt;/a&gt;&amp;nbsp;&amp;nbsp;actually I will like to display those outside the selected region also but the emphasis is on the selected region&lt;/P&gt;
&lt;P&gt;something similar to this. Just that the bubbles can also be outside the selected region&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="Anita_n_0-1641571356953.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67205i18E5E6566AAB270C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Anita_n_0-1641571356953.png" alt="Anita_n_0-1641571356953.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 16:04:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/788905#M22471</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2022-01-07T16:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: sgmap polygons overlapping</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/788928#M22472</link>
      <description>&lt;P&gt;Keep the bubbles for the areas of the map you want shown.&lt;/P&gt;
&lt;P&gt;Delete the bubbles out of your dat for the areas of the map you do not want shown.&lt;/P&gt;
&lt;P&gt;There is no other way provided to subset/restrict the area of the background map shown.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 17:07:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/788928#M22472</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2022-01-07T17:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: sgmap polygons overlapping</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/788934#M22473</link>
      <description>&lt;P&gt;ok, thanks. I will try that&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 17:53:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/788934#M22473</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2022-01-07T17:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: sgmap polygons overlapping</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/789134#M22475</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jan 2022 18:54:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/789134#M22475</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2022-01-09T18:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: sgmap polygons overlapping</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/789147#M22476</link>
      <description>&lt;P&gt;Perhaps it would be better to open a separate topic/thread for each of your requests.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jan 2022 16:41:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/789147#M22476</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2022-01-09T16:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: sgmap polygons overlapping</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/789156#M22478</link>
      <description>&lt;P&gt;Yes, I can , I thought It's all about the same graph. That is why I open just a a thread&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jan 2022 18:34:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/789156#M22478</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2022-01-09T18:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: sgmap polygons overlapping</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/789159#M22481</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13585"&gt;@GraphGuy&lt;/a&gt; I have opened two threads for that. I hope it's okay&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jan 2022 19:02:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgmap-polygons-overlapping/m-p/789159#M22481</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2022-01-09T19:02:35Z</dc:date>
    </item>
  </channel>
</rss>

