<?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: Map data points in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Map-data-points/m-p/823558#M325187</link>
    <description>&lt;P&gt;Many of us will not download Excel files as they are security threats. The best way to provide data is via SAS data step code (and not in any other format). &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;Instructions&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But also, show us what you have tried. Have you looked at the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/grmapref/n18zwxj3couxmgn161trks2usk2v.htm" target="_self"&gt;PROC SGMAP documentation&lt;/A&gt;?&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jul 2022 16:51:55 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-07-15T16:51:55Z</dc:date>
    <item>
      <title>Map data points</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Map-data-points/m-p/823557#M325186</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;attached are two datasets, first one(Baltimore city) contains longitude and latitude for a city in Baltimore, and in second&amp;nbsp; one are few data points with location information which i need to place on map and color by tower Cell.&lt;BR /&gt;I am able to do it in R but not in SAS.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 16:47:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Map-data-points/m-p/823557#M325186</guid>
      <dc:creator>sascode</dc:creator>
      <dc:date>2022-07-15T16:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Map data points</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Map-data-points/m-p/823558#M325187</link>
      <description>&lt;P&gt;Many of us will not download Excel files as they are security threats. The best way to provide data is via SAS data step code (and not in any other format). &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;Instructions&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But also, show us what you have tried. Have you looked at the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/grmapref/n18zwxj3couxmgn161trks2usk2v.htm" target="_self"&gt;PROC SGMAP documentation&lt;/A&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 16:51:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Map-data-points/m-p/823558#M325187</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-07-15T16:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Map data points</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Map-data-points/m-p/823622#M325221</link>
      <description>&lt;P&gt;Calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13585"&gt;@GraphGuy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2022 10:42:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Map-data-points/m-p/823622#M325221</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-07-16T10:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Map data points</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Map-data-points/m-p/823628#M325225</link>
      <description>&lt;P&gt;As others have suggested, start with the doc. Here is an example that overlays points and lines on a map:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grmapref/n0x9p71lic5q5an15063k0qjo8er.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grmapref/n0x9p71lic5q5an15063k0qjo8er.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should also look at the dozens of examples in the SAS blogs. For example, Google quickly located this one:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sastraining/2017/03/29/plotting-markers-on-a-map-at-zip-code-locations-using-gmap-or-sgplot/" target="_blank"&gt;https://blogs.sas.com/content/sastraining/2017/03/29/plotting-markers-on-a-map-at-zip-code-locations-using-gmap-or-sgplot/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2022 11:18:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Map-data-points/m-p/823628#M325225</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-07-16T11:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Map data points</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Map-data-points/m-p/824014#M325397</link>
      <description>Thank you for your suggestions.&lt;BR /&gt;Much appreciated it.</description>
      <pubDate>Tue, 19 Jul 2022 02:29:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Map-data-points/m-p/824014#M325397</guid>
      <dc:creator>sascode</dc:creator>
      <dc:date>2022-07-19T02:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Map data points</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Map-data-points/m-p/824273#M325511</link>
      <description>&lt;P&gt;As PaigeMiller mentioned, it would be interesting to see what you've tried.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That being said, here is one solution ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile="/home/u59782200/datapoints.xlsx" out=datapoints dbms=xlsx;
run;

proc import datafile="/home/u59782200/balt_city.xlsx" out=balt_city dbms=xlsx;
run;

proc sgmap mapdata=balt_city plotdata=datapoints;
openstreetmap;
choromap / mapid=subregion lineattrs=(color=red thickness=2px);
scatter x=long y=lat / group=tower 
 markerattrs=(symbol=circlefilled size=12px) 
 /* More current versions let you specify colors via colormodel=(cxd7191c yellow) */
 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="baltimore_towers.png" style="width: 741px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73515i4950818C9AD5B7CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="baltimore_towers.png" alt="baltimore_towers.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 02:23:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Map-data-points/m-p/824273#M325511</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2022-07-20T02:23:53Z</dc:date>
    </item>
  </channel>
</rss>

