<?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 gps heat map using gps lat/long degrees in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/gps-heat-map-using-gps-lat-long-degrees/m-p/416710#M102337</link>
    <description>&lt;P&gt;I use the following US map. I would like to add to it gps lat/long coordinate in degrees to populate the US map with incident locations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;pattern v=e;
title 'US MAP Data set';

* use a SAS-supplied map data set (US) as both the map and response data sets;
proc gmap
	map=maps.us
	data=maps.us (obs=1)
	all;
	id state;
	choro state / nolegend;
run;

quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Typical gps lat/long degree inputs are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;50.512 -104.535&lt;BR /&gt;50.512 -104.535&lt;BR /&gt;50.512 -104.535&lt;BR /&gt;49.216 -122.848&lt;BR /&gt;49.216 -122.848&lt;BR /&gt;52.868 -122.431&lt;BR /&gt;52.870 -122.434&lt;BR /&gt;52.983 -122.485&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2017 15:10:15 GMT</pubDate>
    <dc:creator>capam</dc:creator>
    <dc:date>2017-11-28T15:10:15Z</dc:date>
    <item>
      <title>gps heat map using gps lat/long degrees</title>
      <link>https://communities.sas.com/t5/SAS-Programming/gps-heat-map-using-gps-lat-long-degrees/m-p/416710#M102337</link>
      <description>&lt;P&gt;I use the following US map. I would like to add to it gps lat/long coordinate in degrees to populate the US map with incident locations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;pattern v=e;
title 'US MAP Data set';

* use a SAS-supplied map data set (US) as both the map and response data sets;
proc gmap
	map=maps.us
	data=maps.us (obs=1)
	all;
	id state;
	choro state / nolegend;
run;

quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Typical gps lat/long degree inputs are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;50.512 -104.535&lt;BR /&gt;50.512 -104.535&lt;BR /&gt;50.512 -104.535&lt;BR /&gt;49.216 -122.848&lt;BR /&gt;49.216 -122.848&lt;BR /&gt;52.868 -122.431&lt;BR /&gt;52.870 -122.434&lt;BR /&gt;52.983 -122.485&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 15:10:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/gps-heat-map-using-gps-lat-long-degrees/m-p/416710#M102337</guid>
      <dc:creator>capam</dc:creator>
      <dc:date>2017-11-28T15:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: gps heat map using gps lat/long degrees</title>
      <link>https://communities.sas.com/t5/SAS-Programming/gps-heat-map-using-gps-lat-long-degrees/m-p/416730#M102344</link>
      <description>&lt;P&gt;You will have to convert lat, long to map coordinate x,y values to map onto the maps.us map data set.&lt;/P&gt;
&lt;P&gt;There are several examples here &lt;A href="http://support.sas.com/sassamples/graphgallery/PROC_GMAP_Graph_Elements_Annotation.html" target="_blank"&gt;http://support.sas.com/sassamples/graphgallery/PROC_GMAP_Graph_Elements_Annotation.html&lt;/A&gt; though these mostly use the maps.states map data set.&lt;/P&gt;
&lt;P&gt;If your locations are in in cities you may want to consider attempting a look up from maps.uscity though longitude in that set is positive and increasing to the west.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 15:45:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/gps-heat-map-using-gps-lat-long-degrees/m-p/416730#M102344</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-11-28T15:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: gps heat map using gps lat/long degrees</title>
      <link>https://communities.sas.com/t5/SAS-Programming/gps-heat-map-using-gps-lat-long-degrees/m-p/457848#M116136</link>
      <description>&lt;P&gt;data my_data;&lt;BR /&gt;input lat long;&lt;BR /&gt;datalines;&lt;BR /&gt;50.512 -104.535&lt;BR /&gt;50.512 -104.535&lt;BR /&gt;50.512 -104.535&lt;BR /&gt;49.216 -122.848&lt;BR /&gt;49.216 -122.848&lt;BR /&gt;52.868 -122.431&lt;BR /&gt;52.870 -122.434&lt;BR /&gt;52.983 -122.485&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data my_map; set mapsgfk.namerica (where=((id='US' and segment=1) or id='CA'));&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gproject data=my_map out=my_map latlong eastlong degrees dupok&lt;BR /&gt;parmout=work.projparm;&lt;BR /&gt;id id;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gproject data=my_data out=my_data latlong eastlong degrees dupok&lt;BR /&gt;parmin=work.projparm parmentry=my_map;&lt;BR /&gt;id;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data my_anno; set my_data;&lt;BR /&gt;length function $8 color $12;&lt;BR /&gt;xsys='2'; ysys='2'; hsys='3'; when='a';&lt;BR /&gt;function='pie'; size=1.0; rotate=360;&lt;BR /&gt;style='solid'; color='cyan'; output;&lt;BR /&gt;style='empty'; color='gray77'; output;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;pattern1 v=s c=white;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;title1 ls=1.5 "Lat/Long Markers on Map";&lt;BR /&gt;proc gmap data=my_map map=my_map all anno=my_anno;&lt;BR /&gt;id id;&lt;BR /&gt;choro segment / levels=1 nolegend coutline=gray;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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="namerica_dots.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20183i5796BDFBC2061426/image-size/large?v=v2&amp;amp;px=999" role="button" title="namerica_dots.png" alt="namerica_dots.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 17:55:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/gps-heat-map-using-gps-lat-long-degrees/m-p/457848#M116136</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2018-04-26T17:55:15Z</dc:date>
    </item>
  </channel>
</rss>

