<?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: Help with GEOCODE/GPROJECT/Annotate in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-GEOCODE-GPROJECT-Annotate/m-p/107038#M3983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, as always that was a big help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Apr 2013 16:58:01 GMT</pubDate>
    <dc:creator>P5C768</dc:creator>
    <dc:date>2013-04-30T16:58:01Z</dc:date>
    <item>
      <title>Help with GEOCODE/GPROJECT/Annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-GEOCODE-GPROJECT-Annotate/m-p/107035#M3980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to map some street addresses and have them show up as icons (stars) using the maps.us table as my mapping table and the annotate process.&amp;nbsp; I've found some great examples of what I want to do online:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/graphref/63022/HTML/default/viewer.htm#a003359249.htm" title="http://support.sas.com/documentation/cdl/en/graphref/63022/HTML/default/viewer.htm#a003359249.htm"&gt;SAS/GRAPH(R) 9.2: Reference, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nesug.org/proceedings/nesug08/np/np05.pdf" title="http://www.nesug.org/proceedings/nesug08/np/np05.pdf"&gt;http://www.nesug.org/proceedings/nesug08/np/np05.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I can't seem to get my locations to show up.&amp;nbsp; Here is my process:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc geocode &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; method=STREET&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; data=temp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; out=GEOCODED&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; lookupstreet=SASHELP.GEOEXM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; attributevar=(TRACTCE00); &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data anno;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set GEOCODED;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length function style color text $8;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format X Y comma12.10;&lt;/P&gt;&lt;P&gt;&amp;nbsp; xsys='2'; &lt;/P&gt;&lt;P&gt;&amp;nbsp; ysys='2'; &lt;/P&gt;&lt;P&gt;&amp;nbsp; hsys='3'; &lt;/P&gt;&lt;P&gt;&amp;nbsp; when='A'; &lt;/P&gt;&lt;P&gt;&amp;nbsp; function = 'label';&lt;/P&gt;&lt;P&gt;&amp;nbsp; style='special';&lt;/P&gt;&lt;P&gt;&amp;nbsp; text='M'; &lt;/P&gt;&lt;P&gt;&amp;nbsp; color='Red';&lt;/P&gt;&lt;P&gt;&amp;nbsp; size=5; &lt;/P&gt;&lt;P&gt;&amp;nbsp; position='E'; &lt;/P&gt;&lt;P&gt;&amp;nbsp; segment=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; x=atan(1)/45 * x;&lt;/P&gt;&lt;P&gt;&amp;nbsp; y=atan(1)/45 * y * -1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gproject data=anno out=annop;&lt;/P&gt;&lt;P&gt;&amp;nbsp; id segment; &lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;proc gmap&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; map=maps.us&lt;/P&gt;&lt;P&gt;&amp;nbsp; data=maps.us&lt;/P&gt;&lt;P&gt;&amp;nbsp; anno=annop;&lt;/P&gt;&lt;P&gt;&amp;nbsp; id statecode;&lt;/P&gt;&lt;P&gt;&amp;nbsp; choro statecode / nolegend;&lt;/P&gt;&lt;P&gt;&amp;nbsp; where statecode not in ("AK", "HI", "PR");&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem has something to do with the radians/degrees conversion, but I'm not sure if I need to have my map set and annotate set in the same table.&amp;nbsp; Any help is appreciated.&amp;nbsp; Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 21:59:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-GEOCODE-GPROJECT-Annotate/m-p/107035#M3980</guid>
      <dc:creator>P5C768</dc:creator>
      <dc:date>2013-04-12T21:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with GEOCODE/GPROJECT/Annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-GEOCODE-GPROJECT-Annotate/m-p/107036#M3981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to plot lat/long values on a map, you'll need to gproject those coordinates the exact same way the map was projected.&amp;nbsp; The way that you will see in most examples is to start with an unprojected map, combine the annotate &amp;amp; map, project them both at the same time, and then separate them again.&amp;nbsp; Before you combine the map and the annotate, you'll want to make sure their x/y (long/lat) are in the same units (degrees or radians, eastlong or westlong).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that maps.us is already projected (and doesn't contain unprojected coordinates), and therefore cannot be used with this technique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd recommend you start with a working example, and then modify that to use your data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 23:14:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-GEOCODE-GPROJECT-Annotate/m-p/107036#M3981</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2013-04-12T23:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help with GEOCODE/GPROJECT/Annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-GEOCODE-GPROJECT-Annotate/m-p/107037#M3982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's one example that uses Proc Geocode to look up lat/long, and then plots the results on a U.S. state map:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://robslink.com/SAS/democd61/meningitis.htm"&gt;http://robslink.com/SAS/democd61/meningitis.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://robslink.com/SAS/democd61/meningitis_info.htm" title="http://robslink.com/SAS/democd61/meningitis_info.htm"&gt;http://robslink.com/SAS/democd61/meningitis_info.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that it only looks up the address based on the zipcode (rather than street address) -- this is usually quicker, and depending on what you're plotting, zipcode centroids are usually adequate when plotting on a U.S. state map (of course, you could also use street-level geocoding with this code if you want!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 23:36:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-GEOCODE-GPROJECT-Annotate/m-p/107037#M3982</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2013-04-12T23:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with GEOCODE/GPROJECT/Annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-GEOCODE-GPROJECT-Annotate/m-p/107038#M3983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, as always that was a big help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 16:58:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-GEOCODE-GPROJECT-Annotate/m-p/107038#M3983</guid>
      <dc:creator>P5C768</dc:creator>
      <dc:date>2013-04-30T16:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help with GEOCODE/GPROJECT/Annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-GEOCODE-GPROJECT-Annotate/m-p/107039#M3984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The concept of mapping some street addresses and have them show up as icons (stars) using the maps.us table and &lt;A href="http://www.rasteredge.com/how-to/vb-net-imaging/image-annotating/"&gt;annotate&lt;/A&gt; processing is similar with adding annotation to document page or image within a document image &lt;A href="http://www.rasteredge.com/how-to/vb-net-imaging/annotate-online/"&gt;annotation&lt;/A&gt; application. You can first save and store you map in any supportable image or document form, like jpeg, png, gif, tiff or pdf, and then embed and load your map into the annotation project to highlight and note and underline the necessary streets addresses. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 02:49:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-GEOCODE-GPROJECT-Annotate/m-p/107039#M3984</guid>
      <dc:creator>BenthamLEE</dc:creator>
      <dc:date>2014-03-17T02:49:34Z</dc:date>
    </item>
  </channel>
</rss>

