<?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: Which Esri basemaps are compatible with Proc Sgmap in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Which-Esri-basemaps-are-compatible-with-Proc-Sgmap/m-p/957419#M373756</link>
    <description>&lt;P&gt;The Base SAS procedures SGMAP and GMAP aren't really for true GIS maps with layers - rather, they create cartographic maps over which you can layer things like a SCATTER plot, etc.&amp;nbsp; As far as I know, to do what you're trying to do with Base SAS, you would need to find or create a dataset with the lat/long coordinates of all the cities, etc., of interest that you want to show as features (literally just a SAS dataset with columns, CITY, LAT, LONG), then use the SCATTER statement to overlay those on top of the ESRIMAP statement that you use to create the base map (in the same way that you're currently overlaying triangles).&amp;nbsp; The SCATTER statement provides an option to specify a variable name (in your case, CITY) with which to label the various X,Y coordinates.&amp;nbsp; This can definitely be tricky.&amp;nbsp; I have found that GMAP can do some things that SGMAP can't and vice versa.&amp;nbsp; Overall, I'd say that you can create pretty decent looking maps with Base SAS (as opposed to the separate package, SAS/GIS), but the process can be pretty tricky and involve a fair amount of trial and error, esp. if you need to deal with projections.&amp;nbsp; Good luck.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2025 02:05:30 GMT</pubDate>
    <dc:creator>quickbluefish</dc:creator>
    <dc:date>2025-01-28T02:05:30Z</dc:date>
    <item>
      <title>Which Esri basemaps are compatible with Proc Sgmap</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Which-Esri-basemaps-are-compatible-with-Proc-Sgmap/m-p/957415#M373753</link>
      <description>&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;I am trying to create maps with proc sgmap and am having trouble finding a suitable basemap using the esrimap statement.&amp;nbsp;I have successfully loaded various basemaps, but I'm trying to find something more like the Esri Human Geography map (&lt;A href="https://www.arcgis.com/home/item.html?id=3582b744bba84668b52a16b0b6942544" target="_blank"&gt;https://www.arcgis.com/home/item.html?id=3582b744bba84668b52a16b0b6942544&lt;/A&gt;). In my provided example, the Light Gray Base map doesn't have enough labels and the Light Gray Reference doesn't have enough features. I'm trying to find something that combines the two, but I'm not sure which specific esri basemaps are attainable via sgmap. Thanks in advance for any input.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chelepi_0-1738027431317.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/104061iD90D02FA451F73B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chelepi_0-1738027431317.png" alt="chelepi_0-1738027431317.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chelepi_1-1738027446804.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/104062i79B947047FE4D9D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chelepi_1-1738027446804.png" alt="chelepi_1-1738027446804.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;Data sample_coords;&amp;nbsp;
input lat long ;
Datalines ;&amp;nbsp;
33.941270 -118.403977
34.121079 -118.300805
;
run;&amp;nbsp;

/*World Light Gray Base*/
proc sgmap&amp;nbsp;
plotdata=sample_coords
NOAUTOLEGEND ;
esrimap
&amp;nbsp; &amp;nbsp; &amp;nbsp; url='https://services.arcgisonline.com/ArcGIS/rest/services/canvas/World_Light_Gray_Base';
scatter x=long y=lat / markerattrs=(symbol=trianglefilled size=8 color=red)
;
title "World Light Gray Base";&amp;nbsp;
run;&amp;nbsp;

/*World Light Gray Reference*/
proc sgmap&amp;nbsp;
plotdata=sample_coords
NOAUTOLEGEND ;
esrimap
&amp;nbsp; &amp;nbsp; &amp;nbsp; url='https://services.arcgisonline.com/ArcGIS/rest/services/canvas/World_Light_Gray_Reference';
scatter x=long y=lat/ markerattrs=(symbol=trianglefilled size=10 color=red)&amp;nbsp;
;
title "World Light Gray Reference";&amp;nbsp;
run;&amp;nbsp;

&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Jan 2025 01:29:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Which-Esri-basemaps-are-compatible-with-Proc-Sgmap/m-p/957415#M373753</guid>
      <dc:creator>chelepi</dc:creator>
      <dc:date>2025-01-28T01:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Which Esri basemaps are compatible with Proc Sgmap</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Which-Esri-basemaps-are-compatible-with-Proc-Sgmap/m-p/957419#M373756</link>
      <description>&lt;P&gt;The Base SAS procedures SGMAP and GMAP aren't really for true GIS maps with layers - rather, they create cartographic maps over which you can layer things like a SCATTER plot, etc.&amp;nbsp; As far as I know, to do what you're trying to do with Base SAS, you would need to find or create a dataset with the lat/long coordinates of all the cities, etc., of interest that you want to show as features (literally just a SAS dataset with columns, CITY, LAT, LONG), then use the SCATTER statement to overlay those on top of the ESRIMAP statement that you use to create the base map (in the same way that you're currently overlaying triangles).&amp;nbsp; The SCATTER statement provides an option to specify a variable name (in your case, CITY) with which to label the various X,Y coordinates.&amp;nbsp; This can definitely be tricky.&amp;nbsp; I have found that GMAP can do some things that SGMAP can't and vice versa.&amp;nbsp; Overall, I'd say that you can create pretty decent looking maps with Base SAS (as opposed to the separate package, SAS/GIS), but the process can be pretty tricky and involve a fair amount of trial and error, esp. if you need to deal with projections.&amp;nbsp; Good luck.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 02:05:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Which-Esri-basemaps-are-compatible-with-Proc-Sgmap/m-p/957419#M373756</guid>
      <dc:creator>quickbluefish</dc:creator>
      <dc:date>2025-01-28T02:05:30Z</dc:date>
    </item>
  </channel>
</rss>

