<?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: United Kingdom missing in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-United-Kingdom-missing/m-p/196965#M7328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to plot a world map with proc gmap but the UK is missing on the map although it is in the data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I started from the data set maps.world and I put the full name of the country into 'longname'.&lt;/P&gt;&lt;P&gt;In my second data set, I have a variable that is 1 for UK and 0 for all other countries.&lt;/P&gt;&lt;P&gt;If I make a map with all countries, United Kingdom is missing on the map.&lt;/P&gt;&lt;P&gt;If I make a map with only United Kingdom, United Kingdom is drawn in the map. (But there is a strange line in the map)&lt;/P&gt;&lt;P&gt;If I select United Kingdom and some other countries, United Kingdom is still in the map.&lt;/P&gt;&lt;P&gt;But as soon as I add for example Ireland or Iceland, United Kingdom is missing in the map.&lt;/P&gt;&lt;P&gt;Does somebody knows how to fix this?&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;Sara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;options fmtsearch=(sashelp.mapfmts);&lt;/P&gt;&lt;P&gt;data wereldkaart;&lt;/P&gt;&lt;P&gt;set maps.world;&lt;/P&gt;&lt;P&gt;longname=put(id,glcnlu.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data uk;&lt;/P&gt;&lt;P&gt;format longname $20. uk;&lt;/P&gt;&lt;P&gt;longname="ICELAND"; UK=0; output;longname="ALBANIA"; UK=0; output;longname="ITALY"; UK=0; output;longname="LATVIA"; UK=0; output;&lt;/P&gt;&lt;P&gt;longname="ROMANIA"; UK=0; output;longname="AUSTRIA"; UK=0; output;longname="CYPRUS"; UK=0; output;longname="CROATIA"; UK=0; output;&lt;/P&gt;&lt;P&gt;longname="ISRAEL"; UK=0; output;longname="TURKEY"; UK=0; output;longname="LITHUANIA"; UK=0; output;longname="GREECE"; UK=0; output;&lt;/P&gt;&lt;P&gt;longname="BULGARIA"; UK=0; output;longname="SWEDEN"; UK=0; output;longname="FRANCE"; UK=0; output;longname="ESTONIA"; UK=0; output;&lt;/P&gt;&lt;P&gt;longname="SLOVAKIA"; UK=0; output;longname="UKRAINE"; UK=0; output;longname="FINLAND"; UK=0; output;longname="NORWAY"; UK=0; output;&lt;/P&gt;&lt;P&gt;longname="NETHERLANDS"; UK=0; output;longname="DENMARK"; UK=0; output;longname="BELGIUM"; UK=0; output;longname="UNITED KINGDOM"; UK=1; output;&lt;/P&gt;&lt;P&gt;longname="SWITZERLAND"; UK=0; output;longname="SLOVENIA"; UK=0; output;longname="GERMANY"; UK=0; output;longname="POLAND"; UK=0; output;&lt;/P&gt;&lt;P&gt;longname="SPAIN"; UK=0; output;longname="IRELAND"; UK=0; output;longname="HUNGARY"; UK=0; output;longname="PORTUGAL"; UK=0; output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goptions reset=all ;&lt;/P&gt;&lt;P&gt;options dev=actximg printerpath=png nodate nonumber;&lt;/P&gt;&lt;P&gt;ods printer file="I:\ALL.png"&amp;nbsp; dpi=500;&lt;/P&gt;&lt;P&gt;proc gmap map=wereldkaart data=uk all;&lt;/P&gt;&lt;P&gt;&amp;nbsp; id longname;&lt;/P&gt;&lt;P&gt;&amp;nbsp; choro UK / cdefault=white;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;ods printer close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goptions reset=all ;&lt;/P&gt;&lt;P&gt;options dev=actximg printerpath=png nodate nonumber;&lt;/P&gt;&lt;P&gt;ods printer file="I:\UK.png"&amp;nbsp; dpi=500;&lt;/P&gt;&lt;P&gt;proc gmap map=wereldkaart (where=(longname = "UNITED KINGDOM"))&amp;nbsp; data=uk all;&lt;/P&gt;&lt;P&gt;&amp;nbsp; id longname;&lt;/P&gt;&lt;P&gt;&amp;nbsp; choro UK / cdefault=white;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;ods printer close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goptions reset=all ;&lt;/P&gt;&lt;P&gt;options dev=actximg printerpath=png nodate nonumber;&lt;/P&gt;&lt;P&gt;ods printer file="I:\UK_others.png"&amp;nbsp; dpi=500;&lt;/P&gt;&lt;P&gt;proc gmap map=wereldkaart (where=(longname in ("BELGIUM","FRANCE","UNITED KINGDOM")))&amp;nbsp;&amp;nbsp;&amp;nbsp; data=uk all;&lt;/P&gt;&lt;P&gt;&amp;nbsp; id longname;&lt;/P&gt;&lt;P&gt;&amp;nbsp; choro UK / cdefault=white;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;ods printer close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goptions reset=all ;&lt;/P&gt;&lt;P&gt;options dev=actximg printerpath=png nodate nonumber;&lt;/P&gt;&lt;P&gt;ods printer file="I:\UK_others_ICELAND.png"&amp;nbsp; dpi=500;&lt;/P&gt;&lt;P&gt;proc gmap map=wereldkaart (where=(longname in ("BELGIUM","FRANCE","UNITED KINGDOM","ICELAND")))&amp;nbsp; data=uk all;&lt;/P&gt;&lt;P&gt;&amp;nbsp; id longname;&lt;/P&gt;&lt;P&gt;&amp;nbsp; choro UK / cdefault=white;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;ods printer close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2015 13:30:24 GMT</pubDate>
    <dc:creator>Sara_b</dc:creator>
    <dc:date>2015-07-07T13:30:24Z</dc:date>
    <item>
      <title>proc gmap: United Kingdom missing</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-United-Kingdom-missing/m-p/196965#M7328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to plot a world map with proc gmap but the UK is missing on the map although it is in the data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I started from the data set maps.world and I put the full name of the country into 'longname'.&lt;/P&gt;&lt;P&gt;In my second data set, I have a variable that is 1 for UK and 0 for all other countries.&lt;/P&gt;&lt;P&gt;If I make a map with all countries, United Kingdom is missing on the map.&lt;/P&gt;&lt;P&gt;If I make a map with only United Kingdom, United Kingdom is drawn in the map. (But there is a strange line in the map)&lt;/P&gt;&lt;P&gt;If I select United Kingdom and some other countries, United Kingdom is still in the map.&lt;/P&gt;&lt;P&gt;But as soon as I add for example Ireland or Iceland, United Kingdom is missing in the map.&lt;/P&gt;&lt;P&gt;Does somebody knows how to fix this?&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;Sara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;options fmtsearch=(sashelp.mapfmts);&lt;/P&gt;&lt;P&gt;data wereldkaart;&lt;/P&gt;&lt;P&gt;set maps.world;&lt;/P&gt;&lt;P&gt;longname=put(id,glcnlu.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data uk;&lt;/P&gt;&lt;P&gt;format longname $20. uk;&lt;/P&gt;&lt;P&gt;longname="ICELAND"; UK=0; output;longname="ALBANIA"; UK=0; output;longname="ITALY"; UK=0; output;longname="LATVIA"; UK=0; output;&lt;/P&gt;&lt;P&gt;longname="ROMANIA"; UK=0; output;longname="AUSTRIA"; UK=0; output;longname="CYPRUS"; UK=0; output;longname="CROATIA"; UK=0; output;&lt;/P&gt;&lt;P&gt;longname="ISRAEL"; UK=0; output;longname="TURKEY"; UK=0; output;longname="LITHUANIA"; UK=0; output;longname="GREECE"; UK=0; output;&lt;/P&gt;&lt;P&gt;longname="BULGARIA"; UK=0; output;longname="SWEDEN"; UK=0; output;longname="FRANCE"; UK=0; output;longname="ESTONIA"; UK=0; output;&lt;/P&gt;&lt;P&gt;longname="SLOVAKIA"; UK=0; output;longname="UKRAINE"; UK=0; output;longname="FINLAND"; UK=0; output;longname="NORWAY"; UK=0; output;&lt;/P&gt;&lt;P&gt;longname="NETHERLANDS"; UK=0; output;longname="DENMARK"; UK=0; output;longname="BELGIUM"; UK=0; output;longname="UNITED KINGDOM"; UK=1; output;&lt;/P&gt;&lt;P&gt;longname="SWITZERLAND"; UK=0; output;longname="SLOVENIA"; UK=0; output;longname="GERMANY"; UK=0; output;longname="POLAND"; UK=0; output;&lt;/P&gt;&lt;P&gt;longname="SPAIN"; UK=0; output;longname="IRELAND"; UK=0; output;longname="HUNGARY"; UK=0; output;longname="PORTUGAL"; UK=0; output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goptions reset=all ;&lt;/P&gt;&lt;P&gt;options dev=actximg printerpath=png nodate nonumber;&lt;/P&gt;&lt;P&gt;ods printer file="I:\ALL.png"&amp;nbsp; dpi=500;&lt;/P&gt;&lt;P&gt;proc gmap map=wereldkaart data=uk all;&lt;/P&gt;&lt;P&gt;&amp;nbsp; id longname;&lt;/P&gt;&lt;P&gt;&amp;nbsp; choro UK / cdefault=white;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;ods printer close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goptions reset=all ;&lt;/P&gt;&lt;P&gt;options dev=actximg printerpath=png nodate nonumber;&lt;/P&gt;&lt;P&gt;ods printer file="I:\UK.png"&amp;nbsp; dpi=500;&lt;/P&gt;&lt;P&gt;proc gmap map=wereldkaart (where=(longname = "UNITED KINGDOM"))&amp;nbsp; data=uk all;&lt;/P&gt;&lt;P&gt;&amp;nbsp; id longname;&lt;/P&gt;&lt;P&gt;&amp;nbsp; choro UK / cdefault=white;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;ods printer close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goptions reset=all ;&lt;/P&gt;&lt;P&gt;options dev=actximg printerpath=png nodate nonumber;&lt;/P&gt;&lt;P&gt;ods printer file="I:\UK_others.png"&amp;nbsp; dpi=500;&lt;/P&gt;&lt;P&gt;proc gmap map=wereldkaart (where=(longname in ("BELGIUM","FRANCE","UNITED KINGDOM")))&amp;nbsp;&amp;nbsp;&amp;nbsp; data=uk all;&lt;/P&gt;&lt;P&gt;&amp;nbsp; id longname;&lt;/P&gt;&lt;P&gt;&amp;nbsp; choro UK / cdefault=white;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;ods printer close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goptions reset=all ;&lt;/P&gt;&lt;P&gt;options dev=actximg printerpath=png nodate nonumber;&lt;/P&gt;&lt;P&gt;ods printer file="I:\UK_others_ICELAND.png"&amp;nbsp; dpi=500;&lt;/P&gt;&lt;P&gt;proc gmap map=wereldkaart (where=(longname in ("BELGIUM","FRANCE","UNITED KINGDOM","ICELAND")))&amp;nbsp; data=uk all;&lt;/P&gt;&lt;P&gt;&amp;nbsp; id longname;&lt;/P&gt;&lt;P&gt;&amp;nbsp; choro UK / cdefault=white;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;ods printer close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:30:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-United-Kingdom-missing/m-p/196965#M7328</guid>
      <dc:creator>Sara_b</dc:creator>
      <dc:date>2015-07-07T13:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: proc gmap: United Kingdom missing</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-United-Kingdom-missing/m-p/196966#M7329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The stray line on the UK map is an indication of something wrong.&amp;nbsp; The GLC code shows one LONGNAME for multiple IDs.&amp;nbsp; So, United Kingdom is 416, 588 and 925.&amp;nbsp; The UK has multiple GLC values in the country and you tried to treat them as one set of Polygons... thus it got confused when drawing them.&amp;nbsp; It will work if you use "ID ID;" in Proc GMAP, but you will need to add ID to the data set UK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be better to use the NEWER maps in the library MAPSGFK.&amp;nbsp; &lt;/P&gt;&lt;P&gt;There is much more information in the data set and a *_attr data set that contains even more information.&lt;/P&gt;&lt;P&gt;data map; set mapsgfk.WORLD;&amp;nbsp; if (ID="GB") then output; run;&lt;/P&gt;&lt;P&gt;proc gmap data=map map=map resolution=10; id id; choro id; run; quit;&lt;/P&gt;&lt;P&gt;or use the MAPSGFK.EUROPE data set: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;data map; set mapsgfk.EUROPE;&amp;nbsp; if (ID="GB") then output; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;proc gmap data=map map=map resolution=10; id id; choro id; run; quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 18:51:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-United-Kingdom-missing/m-p/196966#M7329</guid>
      <dc:creator>Darrell_sas</dc:creator>
      <dc:date>2015-07-07T18:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: proc gmap: United Kingdom missing</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-United-Kingdom-missing/m-p/196967#M7330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks! I could create the map I wanted &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 07:27:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-United-Kingdom-missing/m-p/196967#M7330</guid>
      <dc:creator>Sara_b</dc:creator>
      <dc:date>2015-07-08T07:27:49Z</dc:date>
    </item>
  </channel>
</rss>

