<?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: How to buile a map to show about 2,000 LTA(local trading area) defined from 40,000 U.S. zip code in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-buile-a-map-to-show-about-2-000-LTA-local-trading-area/m-p/624280#M19447</link>
    <description>&lt;P&gt;What size display are you looking at?&lt;/P&gt;
&lt;P&gt;Do you intend to show the geographic boundaries of a zip code to show the LTA, or do you want to place a symbol, such as a dot, on the map of a location for an LTA?&lt;/P&gt;
&lt;P&gt;If the symbol is all you want do you intend to place a label on the map or have a pop-up to indicate the LTA identifier?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to show zip code geographic areas then you may have a significant problem as there are Zip codes assigned to single buildings when enough mail is involved that could be contained in other areas. Also finding an actual boundary map for Zip codes is problematic for much of the western states in areas of low population density. The US&amp;nbsp;Census site has boundary files for Zipcode Tabulation areas but that has lots of "holes" where no one lives or the population density is low.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SASHELP.ZIPCODE data set you should have includes Latitude and Longitude variables for the estimated geographic center of&amp;nbsp;the 5 digit&amp;nbsp;Zip code. If you SAS Install is a bit old you can get an updated Zipcode data set from the SAS site for map data. If you need to have a Zip +4 then you may be out of luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I asked about the display size because you may even at just showing points have a lot of crowding and be unable to show much detail if trying to cram a map&amp;nbsp;of the entire US with Alaska and Hawaii into a 6 inch by 6 inch display.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Feb 2020 18:41:29 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-02-12T18:41:29Z</dc:date>
    <item>
      <title>How to buile a map to show about 2,000 LTA(local trading area) defined from 40,000 U.S. zip codes?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-buile-a-map-to-show-about-2-000-LTA-local-trading-area/m-p/624275#M19446</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I try to create a map to show about 2,000 LTA(local trading area) group from about 40,000 U.S. zip codes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each LTA has its own unique ID# from&amp;nbsp;"0001" to "2000".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've used "Proc GMAP" and "Proc SGMAP" on SAS version 9.4M6.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I don't know how to best handle those 2,000 geography areas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any insight would be highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ethan&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 18:26:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-buile-a-map-to-show-about-2-000-LTA-local-trading-area/m-p/624275#M19446</guid>
      <dc:creator>t75wez1</dc:creator>
      <dc:date>2020-02-12T18:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to buile a map to show about 2,000 LTA(local trading area) defined from 40,000 U.S. zip code</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-buile-a-map-to-show-about-2-000-LTA-local-trading-area/m-p/624280#M19447</link>
      <description>&lt;P&gt;What size display are you looking at?&lt;/P&gt;
&lt;P&gt;Do you intend to show the geographic boundaries of a zip code to show the LTA, or do you want to place a symbol, such as a dot, on the map of a location for an LTA?&lt;/P&gt;
&lt;P&gt;If the symbol is all you want do you intend to place a label on the map or have a pop-up to indicate the LTA identifier?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to show zip code geographic areas then you may have a significant problem as there are Zip codes assigned to single buildings when enough mail is involved that could be contained in other areas. Also finding an actual boundary map for Zip codes is problematic for much of the western states in areas of low population density. The US&amp;nbsp;Census site has boundary files for Zipcode Tabulation areas but that has lots of "holes" where no one lives or the population density is low.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SASHELP.ZIPCODE data set you should have includes Latitude and Longitude variables for the estimated geographic center of&amp;nbsp;the 5 digit&amp;nbsp;Zip code. If you SAS Install is a bit old you can get an updated Zipcode data set from the SAS site for map data. If you need to have a Zip +4 then you may be out of luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I asked about the display size because you may even at just showing points have a lot of crowding and be unable to show much detail if trying to cram a map&amp;nbsp;of the entire US with Alaska and Hawaii into a 6 inch by 6 inch display.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 18:41:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-buile-a-map-to-show-about-2-000-LTA-local-trading-area/m-p/624280#M19447</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-02-12T18:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to buile a map to show about 2,000 LTA(local trading area) defined from 40,000 U.S. zip code</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-buile-a-map-to-show-about-2-000-LTA-local-trading-area/m-p/624359#M19448</link>
      <description>&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;1)I use the goption below in my code:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;goptions&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;reset&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;all&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;device&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=png &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;xpixels&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;2000&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ypixels&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1500&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;gsfname&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=gout&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;cback&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=aliceblue &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ftext&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'arial/bo'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;htext&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;gunit&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;pct&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;2) I downloaded the TIGER zip code shape files "tl_2018_zcta510.shp" to obtain all latitude &amp;amp; longitude of boundaries&amp;nbsp;for each zip code.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;3)Use SAS function &lt;/FONT&gt;polycont to form the area.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But struggling with limited # of colors to show.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 22:35:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-buile-a-map-to-show-about-2-000-LTA-local-trading-area/m-p/624359#M19448</guid>
      <dc:creator>t75wez1</dc:creator>
      <dc:date>2020-02-12T22:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to buile a map to show about 2,000 LTA(local trading area) defined from 40,000 U.S. zip code</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-buile-a-map-to-show-about-2-000-LTA-local-trading-area/m-p/624369#M19449</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/23924"&gt;@t75wez1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;1)I use the goption below in my code:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;goptions&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;reset&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;all&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;device&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=png &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;xpixels&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;2000&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ypixels&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1500&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;gsfname&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=gout&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;cback&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=aliceblue &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ftext&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'arial/bo'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;htext&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;gunit&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;pct&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;2) I downloaded the TIGER zip code shape files "tl_2018_zcta510.shp" to obtain all latitude &amp;amp; longitude of boundaries&amp;nbsp;for each zip code.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;3)Use SAS function &lt;/FONT&gt;polycont to form the area.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But struggling with limited # of colors to show.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The ZCTA in &lt;FONT face="Courier New" size="2"&gt;tl_2018_zcta510.shp stands for Zip Code Tabulation Area. So will likely have the issue about not complete coverage or funny looking boundaries in some places.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;SHOW the actual code using to make the map. I don't see that. I'm not sure what you may have been doing with POLYCONT. Proc Mapimport would typically be the better way to get a SHP file into a SAS format.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;You are going to have a very hard time getting 2000 colors that are going to make sense. So describe what you are trying to do with that many colors. So describe what/how you want to use color.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Likely one thing you would need to do is remove the boundaries between zip codes that make up an LTA assuming they are contiguous areas. and assign an identification variable in the map data that matches that of your LTA.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;PIXELS are generally a poor measurement unit as it depends on the display device. Better would be to set either XMAX and YMAX or HSIZE and VSIZE&amp;nbsp;in inches, cm or mm for consistency.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 23:39:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-buile-a-map-to-show-about-2-000-LTA-local-trading-area/m-p/624369#M19449</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-02-12T23:39:42Z</dc:date>
    </item>
  </channel>
</rss>

