<?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 with census zipcode data. Border lines are filling up the map area. in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP-with-census-zipcode-data-Border-lines-are-filling-up/m-p/140844#M5336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By merging the response data with the map data, you're making life more difficult than it has to be! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you leave the 'all' option off the proc gmap, then it will only draw the areas of the map= dataset that have a matching ID in the data= dataset. Therefore I think the following code will do what you're wanting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* import census zip code map */&lt;BR /&gt;proc mapimport&lt;BR /&gt; datafile="/folder/proj/&amp;amp;dir/&amp;amp;user/Notes/&amp;amp;prj/Data/tl_2013_us_zcta510.shp"&lt;BR /&gt; out=zipdata;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* import a list of all Florida's zip codes */&lt;BR /&gt;Data FL_Zips;&lt;BR /&gt; infile "/folder/proj/&amp;amp;dir/&amp;amp;user/Notes/&amp;amp;prj/Data/FL_Zips.csv" dlm=',' dsd firstobs=3;&lt;BR /&gt; input Zipcode : $5.;&lt;BR /&gt; format zipcode $5.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* make sure the id variable is named the same in both datasets */&lt;/P&gt;&lt;P&gt;Data FL_Zips; set Data FL_Zips;&lt;BR /&gt;ZCTA5CE10=Zipcode;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pattern1 v=s c=gray;&lt;/P&gt;&lt;P&gt;proc gmap data=FL_Zips map=Zipdata2 /* all */;&lt;BR /&gt; id ZCTA5CE10;&lt;BR /&gt; choro segment / levels=1 nolegend;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This little gmap paper I'm working on might also have some tips you can use...&lt;/P&gt;&lt;P&gt;&lt;A href="http://robslink.com/SAS/book1/Chapter_05_Maps.pdf" title="http://robslink.com/SAS/book1/Chapter_05_Maps.pdf"&gt;http://robslink.com/SAS/book1/Chapter_05_Maps.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 May 2014 17:17:40 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2014-05-01T17:17:40Z</dc:date>
    <item>
      <title>PROC GMAP with census zipcode data. Border lines are filling up the map area.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP-with-census-zipcode-data-Border-lines-are-filling-up/m-p/140842#M5334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to proc gmap an a specific state, and map the borders of the zip codes within that state. When I run the proc gmap I get a map that looks like the attachment - the black border lines fill up much of the map making it useless.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the zip code coordinates from the census website. The basics of the code is below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All help is appreciated, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* import census zip code data */&lt;/P&gt;&lt;P&gt;proc mapimport datafile="/folder/proj/&amp;amp;dir/&amp;amp;user/Notes/&amp;amp;prj/Data/tl_2013_us_zcta510.shp"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out=zipdata;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* import a list of all Florida's zip codes */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data FL_Zips;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile "/folder/proj/&amp;amp;dir/&amp;amp;user/Notes/&amp;amp;prj/Data/FL_Zips.csv"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dlm=',' dsd firstobs=3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Zipcode&amp;nbsp;&amp;nbsp; :&amp;nbsp; $5.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; format zipcode $5.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* filter for only florida zip codes */&lt;/P&gt;&lt;P&gt;proc sql; create table zipdata2 as&lt;/P&gt;&lt;P&gt;select distinct t1.ZCTA5CE10 as Census_Zip,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t1.X,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t1.Y&lt;/P&gt;&lt;P&gt;from zipdata t1 left join FL_Zips t2 on (t1.ZCTA5CE10=t2.Zipcode)&lt;/P&gt;&lt;P&gt;where t2.zipcode is not missing&lt;/P&gt;&lt;P&gt;order by Census_Zip;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gmap data=Zipdata2 map=Zipdata2 all;&lt;/P&gt;&lt;P&gt;id Census_ZIP;&lt;/P&gt;&lt;P&gt;choro census_zip / statistic=First ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11014iBF143F5995587EC4/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="screenshot.png" title="screenshot.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 15:19:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP-with-census-zipcode-data-Border-lines-are-filling-up/m-p/140842#M5334</guid>
      <dc:creator>Harvey_D</dc:creator>
      <dc:date>2014-05-01T15:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GMAP with census zipcode data. Border lines are filling up the map area.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP-with-census-zipcode-data-Border-lines-are-filling-up/m-p/140843#M5335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do not use proc sql to manage map boundary sets as it will reorder data. When the coordinates are scrambled, such as by sql, then the points are connected in a non-sequential order and will not generate a boundary.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 15:30:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP-with-census-zipcode-data-Border-lines-are-filling-up/m-p/140843#M5335</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-05-01T15:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GMAP with census zipcode data. Border lines are filling up the map area.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP-with-census-zipcode-data-Border-lines-are-filling-up/m-p/140844#M5336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By merging the response data with the map data, you're making life more difficult than it has to be! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you leave the 'all' option off the proc gmap, then it will only draw the areas of the map= dataset that have a matching ID in the data= dataset. Therefore I think the following code will do what you're wanting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* import census zip code map */&lt;BR /&gt;proc mapimport&lt;BR /&gt; datafile="/folder/proj/&amp;amp;dir/&amp;amp;user/Notes/&amp;amp;prj/Data/tl_2013_us_zcta510.shp"&lt;BR /&gt; out=zipdata;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* import a list of all Florida's zip codes */&lt;BR /&gt;Data FL_Zips;&lt;BR /&gt; infile "/folder/proj/&amp;amp;dir/&amp;amp;user/Notes/&amp;amp;prj/Data/FL_Zips.csv" dlm=',' dsd firstobs=3;&lt;BR /&gt; input Zipcode : $5.;&lt;BR /&gt; format zipcode $5.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* make sure the id variable is named the same in both datasets */&lt;/P&gt;&lt;P&gt;Data FL_Zips; set Data FL_Zips;&lt;BR /&gt;ZCTA5CE10=Zipcode;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pattern1 v=s c=gray;&lt;/P&gt;&lt;P&gt;proc gmap data=FL_Zips map=Zipdata2 /* all */;&lt;BR /&gt; id ZCTA5CE10;&lt;BR /&gt; choro segment / levels=1 nolegend;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This little gmap paper I'm working on might also have some tips you can use...&lt;/P&gt;&lt;P&gt;&lt;A href="http://robslink.com/SAS/book1/Chapter_05_Maps.pdf" title="http://robslink.com/SAS/book1/Chapter_05_Maps.pdf"&gt;http://robslink.com/SAS/book1/Chapter_05_Maps.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 17:17:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-GMAP-with-census-zipcode-data-Border-lines-are-filling-up/m-p/140844#M5336</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2014-05-01T17:17:40Z</dc:date>
    </item>
  </channel>
</rss>

