<?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: SAS MAPS latitude longitude in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760773#M240605</link>
    <description>Thanks ballardw, I added the ID variable in my dataset too for country code and I could generate the map. However, what I was looking for is drilling down to specific location within the country. Using country code as ID, it helps in showing the data for country but not for specific location within the country. Hence, I was using ID variable as LONG. &lt;BR /&gt;&lt;BR /&gt;Is it possible to drill down to specific location within country?</description>
    <pubDate>Tue, 10 Aug 2021 22:46:23 GMT</pubDate>
    <dc:creator>Tommer</dc:creator>
    <dc:date>2021-08-10T22:46:23Z</dc:date>
    <item>
      <title>SAS MAPS latitude longitude</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760742#M240585</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;I am trying to use sas&amp;nbsp;mapsgfk.world dataset. I have a separate dataset where latitudes and longitudes are collected in decimal degrees. Mapsgft.world has LONG, LAT, X and Y variables.&lt;/P&gt;
&lt;P&gt;The values in LONG, LAT doesn't match entirely with the dataset I have.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ex: From within united states, I have co-ordinates longitude: -164.7520065 and latitude:64.4912815 in my dataset however, this does not match any latitude longitude co-ordinates from&amp;nbsp;mapsgfk.world so I can use these as id variables in proc gmap.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any thoughts please?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 20:02:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760742#M240585</guid>
      <dc:creator>Tommer</dc:creator>
      <dc:date>2021-08-10T20:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MAPS latitude longitude</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760744#M240587</link>
      <description>Why would you expect them to match exactly? &lt;BR /&gt;The maps data set is a boundary file designed to map the world entirely, it doesn't have every point mapped.  &lt;BR /&gt;&lt;BR /&gt;What are you trying to do that you think will not work?&lt;BR /&gt;Have you tried a basic SGMAP to visualize your data?&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Aug 2021 20:13:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760744#M240587</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-08-10T20:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MAPS latitude longitude</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760755#M240593</link>
      <description>Thanks Reeza! So when I tried to map the co-ordinates I have using proc gmap and using Mapsgft.world and id variable as LONG, LAT nothing showed up, not even the world map. Hence I started to wonder if they have to match the co-ordinates exactly.&lt;BR /&gt;&lt;BR /&gt;I have not used proc sgmap.</description>
      <pubDate>Tue, 10 Aug 2021 20:55:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760755#M240593</guid>
      <dc:creator>Tommer</dc:creator>
      <dc:date>2021-08-10T20:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MAPS latitude longitude</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760756#M240594</link>
      <description>ID variable should be what unique identifies your points, not your lat/long either way. So each location should have a unique ID. It's not as important for point data - it's more important for spatial data where the ID helps to identify a unique polygon or shape. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://support.sas.com/rnd/datavisualization/mapsonline/html/geocode_gmap.html" target="_blank"&gt;https://support.sas.com/rnd/datavisualization/mapsonline/html/geocode_gmap.html&lt;/A&gt;</description>
      <pubDate>Tue, 10 Aug 2021 20:57:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760756#M240594</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-08-10T20:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MAPS latitude longitude</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760757#M240595</link>
      <description>Post your code. Your data and base map are different data sets in this case, perhaps in others they were the same?</description>
      <pubDate>Tue, 10 Aug 2021 20:58:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760757#M240595</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-08-10T20:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MAPS latitude longitude</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760758#M240596</link>
      <description>This is what I am doing since 'long' is unique to each record:&lt;BR /&gt;My dataset:&lt;BR /&gt;Common_name     lat                      long               bucket&lt;BR /&gt;Bar-tailed Godwit	64.4912815	-164.7520065	5&lt;BR /&gt;Bar-tailed Godwit	37.0946519	-122.2786759	1&lt;BR /&gt;Bar-tailed Godwit	34.6303	         -76.5328	        1&lt;BR /&gt;Bar-tailed Godwit	44.5088097	-124.0803623	1&lt;BR /&gt;Bar-tailed Godwit	41.373717	-112.133503	1&lt;BR /&gt;Bar-tailed Godwit	46.516505	-124.027205	1&lt;BR /&gt;&lt;BR /&gt;CODE:&lt;BR /&gt;&lt;BR /&gt;proc format;&lt;BR /&gt;	value bucket 1   = "&amp;lt;=5"&lt;BR /&gt;				 2   ="&amp;lt;=10"&lt;BR /&gt;				 3	 ="&amp;lt;=15"&lt;BR /&gt;				 4 	 ="&amp;lt;=20"&lt;BR /&gt;				 5	 ="&amp;gt;20"&lt;BR /&gt;					;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%let name=us;&lt;BR /&gt;filename odsout '/sasuserhome/stok';&lt;BR /&gt;ODS LISTING CLOSE;&lt;BR /&gt;ODS HTML path=odsout body="&amp;amp;name..htm"&lt;BR /&gt;(title="Godwit migration")&lt;BR /&gt;style=sasweb;&lt;BR /&gt;&lt;BR /&gt;goptions border;&lt;BR /&gt;goptions cback=CXFFFFFF ctext=black;&lt;BR /&gt;goptions xpixels=900 ypixels=600;&lt;BR /&gt;&lt;BR /&gt;pattern1 value=solid color=CX60497B;&lt;BR /&gt;pattern2 value=solid color=CXE5E0EC;&lt;BR /&gt;pattern3 value=solid color=CXCCC0DA;&lt;BR /&gt;pattern4 value=solid color=CXB2A1C7;&lt;BR /&gt;pattern5 value=solid color=RED;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;goptions gunit=pct htitle=6 ftitle="Calibri/Bold" htext=2.7 ftext="Calibri";&lt;BR /&gt;legend1 label=none shape=bar(3,1) value=(justify=left "&amp;lt;=5" "&amp;lt;=10" "&amp;lt;=15" "&amp;lt;=20" "&amp;gt;20" )&lt;BR /&gt;across=1 origin=(75,12) mode=share;&lt;BR /&gt;title1 lspace= 5 "Migration";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc gmap data=birds map=mapsgfk.world all;&lt;BR /&gt;id long ;&lt;BR /&gt;choro bucket/ midpoints=1 2 3 4 5 coutline=black legend=legend1 des="First" name="FY2021" ;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ODS HTML CLOSE;&lt;BR /&gt;ODS LISTING;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Aug 2021 21:12:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760758#M240596</guid>
      <dc:creator>Tommer</dc:creator>
      <dc:date>2021-08-10T21:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MAPS latitude longitude</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760759#M240597</link>
      <description>Posted the code above. Any idea if I am doing something terribly wrong?</description>
      <pubDate>Tue, 10 Aug 2021 21:27:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760759#M240597</guid>
      <dc:creator>Tommer</dc:creator>
      <dc:date>2021-08-10T21:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MAPS latitude longitude</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760761#M240598</link>
      <description>Are you sure SGMAPS are not more appropriate for what you're trying to do here? They're much simpler to use if you have the latest version.&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2019/05/14/geocoding-us-street-addresses-and-plotting-them-with-proc-sgmap/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2019/05/14/geocoding-us-street-addresses-and-plotting-them-with-proc-sgmap/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If not, I think this is the closest example I can find to what you're trying to do and should have everything you need to follow along. &lt;BR /&gt;Map:&lt;BR /&gt;&lt;A href="https://robslink.com/SAS/democd16/office.htm" target="_blank"&gt;https://robslink.com/SAS/democd16/office.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Code:&lt;A href="https://robslink.com/SAS/democd16/office.sas" target="_blank"&gt;https://robslink.com/SAS/democd16/office.sas&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Aug 2021 21:43:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760761#M240598</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-08-10T21:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MAPS latitude longitude</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760765#M240602</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/284458"&gt;@Tommer&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Posted the code above. Any idea if I am doing something terribly wrong?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Using LONG as an ID variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you examine the map data set the ID variable is using a two letter country abbreviation as the ID, i.e. AD for Andorra.&lt;/P&gt;
&lt;P&gt;So none of your Long values will match the ID in the map data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know what you may have used before but with this map data set you would have to provide an ID that matches. Which means doing some Geocoding to get the the country code to add to the summary values before mapping.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 22:15:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760765#M240602</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-08-10T22:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MAPS latitude longitude</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760773#M240605</link>
      <description>Thanks ballardw, I added the ID variable in my dataset too for country code and I could generate the map. However, what I was looking for is drilling down to specific location within the country. Using country code as ID, it helps in showing the data for country but not for specific location within the country. Hence, I was using ID variable as LONG. &lt;BR /&gt;&lt;BR /&gt;Is it possible to drill down to specific location within country?</description>
      <pubDate>Tue, 10 Aug 2021 22:46:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760773#M240605</guid>
      <dc:creator>Tommer</dc:creator>
      <dc:date>2021-08-10T22:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MAPS latitude longitude</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760779#M240607</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/284458"&gt;@Tommer&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thanks ballardw, I added the ID variable in my dataset too for country code and I could generate the map. However, what I was looking for is drilling down to specific location within the country. Using country code as ID, it helps in showing the data for country but not for specific location within the country. Hence, I was using ID variable as LONG. &lt;BR /&gt;&lt;BR /&gt;Is it possible to drill down to specific location within country?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Specific location within an area in Gmap usually means an Annotate data set. You add some extra variables to describe what you want to appear, such as marker size and shape and/or text, along with the coordinates to place the information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are a number of examples at &lt;A href="https://support.sas.com/sassamples/graphgallery/PROC_GMAP_Graph_Elements_Annotation.html" target="_blank"&gt;https://support.sas.com/sassamples/graphgallery/PROC_GMAP_Graph_Elements_Annotation.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Example Sample 24906 shows placing city markers and names on a world map using the Maps.world map data set. Similar should be an easy transfer the the GFK version if you use the LATLON option you wouldn't need to project your coordinates.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 23:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760779#M240607</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-08-10T23:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MAPS latitude longitude</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760781#M240608</link>
      <description>Or use SGMAP which is much easier for plotting point data.</description>
      <pubDate>Tue, 10 Aug 2021 23:28:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-MAPS-latitude-longitude/m-p/760781#M240608</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-08-10T23:28:06Z</dc:date>
    </item>
  </channel>
</rss>

