<?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: proc gmap MSA mapimport in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-MSA-mapimport/m-p/233128#M8451</link>
    <description>&lt;P&gt;Given that, is&amp;nbsp;there no way to display a map using MSA boundaries via SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Nov 2015 18:06:02 GMT</pubDate>
    <dc:creator>sophia_SAS</dc:creator>
    <dc:date>2015-11-04T18:06:02Z</dc:date>
    <item>
      <title>proc gmap MSA mapimport</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-MSA-mapimport/m-p/232977#M8445</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Mapimport, I imported the US Census Metropolitian Division 2010 shp file into SAS. &amp;nbsp;However, when I combine the map file ("metdiv_shp") with my data ("test"), my final&amp;nbsp;map only includes a small fraction of my observations though there should be many more. &amp;nbsp;Here's a sample of my code. &amp;nbsp;The ID variable ("METDIVFP10")&amp;nbsp;for both the&amp;nbsp;data file and the&amp;nbsp;map file are exactly the same. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts on why my output is limited to a few&amp;nbsp;observations? &amp;nbsp; Am I missing something with my proc gmap code? Or the import command? When I use the SAS supplied maps (i.e. maps.us), it works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;mapimport&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;datafile&lt;/SPAN&gt;="r:\tl_2010_us_metdiv10.shp"&amp;nbsp;&lt;SPAN class="s2"&gt;out&lt;/SPAN&gt;=metdiv_shp;&amp;nbsp;&lt;SPAN class="s1"&gt;run&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; test;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;input&lt;/SPAN&gt; METDIVFP10 &lt;SPAN class="s3"&gt;$5.&lt;/SPAN&gt; poptest &lt;SPAN class="s3"&gt;&lt;STRONG&gt;8.2&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p3"&gt;datalines&lt;SPAN class="s4"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;00080 5.56&lt;/P&gt;&lt;P class="p2"&gt;00120 11.76&lt;/P&gt;&lt;P class="p2"&gt;00160 7.01&lt;/P&gt;&lt;P class="p2"&gt;00200 22.22&lt;/P&gt;&lt;P class="p2"&gt;00220 75.00&lt;/P&gt;&lt;P class="p2"&gt;00240 5.88&lt;/P&gt;&lt;P class="p2"&gt;00320 40.00&lt;/P&gt;&lt;P class="p2"&gt;00380 83.34&lt;/P&gt;&lt;P class="p2"&gt;19000 61.20&lt;/P&gt;&lt;P class="p2"&gt;37200 43.20&lt;/P&gt;&lt;P class="p2"&gt;;;&lt;/P&gt;&lt;P class="p4"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN class="s4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;gmap&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;=test &lt;SPAN class="s2"&gt;map&lt;/SPAN&gt;=metdiv_shp &lt;SPAN class="s2"&gt;all&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;id&lt;/SPAN&gt; METDIVFP10;&lt;/P&gt;&lt;P class="p3"&gt;choro&lt;SPAN class="s4"&gt; poptest /&lt;/SPAN&gt;discrete coutline&lt;SPAN class="s4"&gt;=black;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p5"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN class="s4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p4"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;SPAN class="s4"&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 21:18:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-MSA-mapimport/m-p/232977#M8445</guid>
      <dc:creator>sophia_SAS</dc:creator>
      <dc:date>2015-11-03T21:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: proc gmap MSA mapimport</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-MSA-mapimport/m-p/233078#M8446</link>
      <description>&lt;P&gt;I loaded down same Census file and I don't see any values of the variable METDIVFP10 from the data set TEST that match the data set METDIV_SHP.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 14:32:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-MSA-mapimport/m-p/233078#M8446</guid>
      <dc:creator>Darrell_sas</dc:creator>
      <dc:date>2015-11-04T14:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc gmap MSA mapimport</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-MSA-mapimport/m-p/233081#M8447</link>
      <description>&lt;P&gt;Thank you for your reply!&amp;nbsp; I'm sorry for the copy and paste issue.&amp;nbsp;Please find below the correct 'test' dataset,&amp;nbsp; With that said, when I run the updated datset with the right METDIVFP10 values, I still get the same problem.&amp;nbsp; Below is the updated 'test' dataset.&amp;nbsp; What do you see when you run it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; test;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;input&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; METDIVFP10 &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;$5.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; poptest &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;8.2&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;datalines&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;14484 5.56&lt;/P&gt;&lt;P&gt;15764 11.76&lt;/P&gt;&lt;P&gt;15804 7.01&lt;/P&gt;&lt;P&gt;29404 22.22&lt;/P&gt;&lt;P&gt;31084 5.88&lt;/P&gt;&lt;P&gt;36084 61.20&lt;/P&gt;&lt;P&gt;13644 43.20&lt;/P&gt;&lt;P&gt;19124 88.05&lt;/P&gt;&lt;P&gt;;;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 14:41:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-MSA-mapimport/m-p/233081#M8447</guid>
      <dc:creator>sophia_SAS</dc:creator>
      <dc:date>2015-11-04T14:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: proc gmap MSA mapimport</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-MSA-mapimport/m-p/233093#M8448</link>
      <description>&lt;P&gt;Your TEST data set doesn't have all of the of the values for METDIVFP10 (13644, for example), so some polygons are shown as a "blank" (no color other than the outline) with GMAP. &amp;nbsp;The map (METDIV_SHP) itself is showing everthing that it has. &amp;nbsp;I looked at the Shapefile directly with another product and it was the same as in SAS. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is that your problem or is there something I am missing?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 15:13:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-MSA-mapimport/m-p/233093#M8448</guid>
      <dc:creator>Darrell_sas</dc:creator>
      <dc:date>2015-11-04T15:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: proc gmap MSA mapimport</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-MSA-mapimport/m-p/233105#M8449</link>
      <description>&lt;P&gt;Hi Darrell,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reponse. I think you've got the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attahed a pdf of my output.&amp;nbsp; As you can see I have a combination of 'blank' (i.e. no color other than outline), colored polygons and lots of empty space.&amp;nbsp; The colored polygons matched the 8 observations from my "test" dataset.&amp;nbsp; However, I thought by using the "all" options on proc gmap, the output would include all values for METDIVFP10, even if they were not included in my 'test' dataset.&amp;nbsp;&amp;nbsp; Does this make sense?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 16:01:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-MSA-mapimport/m-p/233105#M8449</guid>
      <dc:creator>sophia_SAS</dc:creator>
      <dc:date>2015-11-04T16:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: proc gmap MSA mapimport</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-MSA-mapimport/m-p/233111#M8450</link>
      <description>&lt;P&gt;Yes.&amp;nbsp; ALL is what causes GMAP to put up the "blank" polygons.&amp;nbsp; If you didn't have ALL, then it wouldn't even put up the outlines on the "blank" polygons.&amp;nbsp; The empty space has no polygons in the shapefile.&amp;nbsp; There is just nothing there.&amp;nbsp; This &amp;nbsp;map is just the shapefile using a NON-SAS product to display it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Shapefile.PNG" alt="Shapefile.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/717i3B040BBEC628BDD0/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 16:18:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-MSA-mapimport/m-p/233111#M8450</guid>
      <dc:creator>Darrell_sas</dc:creator>
      <dc:date>2015-11-04T16:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: proc gmap MSA mapimport</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-MSA-mapimport/m-p/233128#M8451</link>
      <description>&lt;P&gt;Given that, is&amp;nbsp;there no way to display a map using MSA boundaries via SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 18:06:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-MSA-mapimport/m-p/233128#M8451</guid>
      <dc:creator>sophia_SAS</dc:creator>
      <dc:date>2015-11-04T18:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc gmap MSA mapimport</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-MSA-mapimport/m-p/233175#M8452</link>
      <description>&lt;P&gt;It isn't SAS.&amp;nbsp; It is the Census map data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are several MSAs.&amp;nbsp; Metropolitian Statistical Areas and Micropolitian Statistical Areas.&amp;nbsp; I'm not sure Metropolitian Divisions are the same thing.&amp;nbsp; "&lt;STRONG&gt;Metropolitan Divisions&lt;/STRONG&gt; are smaller groupings of counties or equivalent entities defined within a metropolitan statistical area containing a single core with a population of at least 2.5 million. &amp;nbsp;Not all metropolitan statistical areas with urbanized areas of this size will contain metropolitan divisions."&lt;/P&gt;
&lt;P&gt;I wonder if you want Metropolitian Statistical Areas and Micropolitian Statistical Areas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Read this explanation of CBSAs on the Census site:&amp;nbsp; &lt;A href="https://www.census.gov/geo/reference/gtc/gtc_cbsa.html" target="_self"&gt;https://www.census.gov/geo/reference/gtc/gtc_cbsa.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can get the various files from here: &lt;A href="https://www.census.gov/geo/maps-data/data/tiger-line.html" target="_self"&gt;https://www.census.gov/geo/maps-data/data/tiger-line.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 20:38:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gmap-MSA-mapimport/m-p/233175#M8452</guid>
      <dc:creator>Darrell_sas</dc:creator>
      <dc:date>2015-11-04T20:38:43Z</dc:date>
    </item>
  </channel>
</rss>

