<?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: Coordinates Not Being Displayed in proc gmap in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Coordinates-Not-Being-Displayed-in-proc-gmap/m-p/887371#M24029</link>
    <description>&lt;P&gt;Also, since you're projecting the map and annotate data separately, you'll need to save the projection parameters from the map dataset, and use them when you project the annotate data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example where I do this:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://robslink.com/SAS/democd103/largest_high_school_basketball_gyms.htm" target="_blank"&gt;https://robslink.com/SAS/democd103/largest_high_school_basketball_gyms.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://robslink.com/SAS/democd103/largest_high_school_basketball_gyms.sas" target="_blank"&gt;https://robslink.com/SAS/democd103/largest_high_school_basketball_gyms.sas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Specifically, pay close attention to the parmout= and parmin= and parmentry=:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc gproject data=my_map out=my_map latlong eastlong degrees
 parmout=work.projparm;
id statecode;
run;

proc gproject data=my_data out=my_data latlong eastlong degrees
 parmin=work.projparm parmentry=my_map;
id;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2023 18:44:11 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2023-08-01T18:44:11Z</dc:date>
    <item>
      <title>Coordinates Not Being Displayed in proc gmap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Coordinates-Not-Being-Displayed-in-proc-gmap/m-p/887343#M24027</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm very new to this and am trying to use SAS Studio to map several coordinates. I have four different maps by zip code. I was successful in plotting the coordinates on three of the maps, but when I run the same code on the fourth map, coordinates do not display. Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*Sacramento Shapefile*/&lt;/P&gt;&lt;P&gt;proc mapimport&lt;BR /&gt;datafile = "/home/username/cm480wn0393.shp"&lt;BR /&gt;out = sacramentocounty;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*Sacramento Data*/&lt;BR /&gt;data sacramentonew;&lt;BR /&gt;set sacramentocounty;&lt;BR /&gt;ZCTA5CE10 = PUT(ZIP5, $5.);&lt;BR /&gt;length ZCTA5CE10 $5.;&lt;BR /&gt;drop ZIP5;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=sacramentonew out=sacramentonew2;&lt;BR /&gt;by ZCTA5CE10;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data sacramentodata;&lt;BR /&gt;merge risktime2 sacramentonew2;&lt;BR /&gt;by ZCTA5CE10;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc gproject data=sacramentonew2 out=sacramentonew2 degrees eastlong project=none;&lt;BR /&gt;id ZCTA5CE10;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data latlongdata;&lt;BR /&gt;input lat long;&lt;BR /&gt;datalines;&lt;BR /&gt;38.6785 -121.2258&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc gproject data=latlongdata out=latlongdata latlong degrees eastlong parmout=sacramentodata parmentry=sacramentonew2 project=none;&lt;BR /&gt;id;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data anno_point_data; set latlongdata;&lt;BR /&gt;xsys='2'; ysys='2'; hsys='3'; when='a';&lt;BR /&gt;function='pie'; style='psolid'; rotate=360; size=3; color='black';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pattern1 value=solid color='CXADFCAE';&lt;BR /&gt;pattern2 value=solid color='CXD5FCAD';&lt;BR /&gt;pattern3 value=solid color='CXF6FCAD';&lt;BR /&gt;pattern4 value=solid color='CXFCDEAD';&lt;BR /&gt;pattern5 value=solid color='CXFCB5AD';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc gmap map=sacramentodata data=sacramentodata anno=anno_point_data;&lt;BR /&gt;id ZCTA5CE10;&lt;BR /&gt;choro score / coutline=black levels=5;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 16:45:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Coordinates-Not-Being-Displayed-in-proc-gmap/m-p/887343#M24027</guid>
      <dc:creator>jjjjvvvv0000</dc:creator>
      <dc:date>2023-08-01T16:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinates Not Being Displayed in proc gmap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Coordinates-Not-Being-Displayed-in-proc-gmap/m-p/887370#M24028</link>
      <description>&lt;P&gt;Right after you use proc mapimport to import the shapefile, use a proc print to verify that the coordinates are unprojected coordinates. Presumably if you got all 4 maps from the same source, and the other three contained unprojected coordinates then this 4th one also does ... but try printing a few lines of the dataset just to be sure (in addition to printing a few lines of the map dataset, you might want to try printing a few lines of your other datasets just as a sanity check).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data=&lt;SPAN&gt;sacramentocounty (obs=10); run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 18:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Coordinates-Not-Being-Displayed-in-proc-gmap/m-p/887370#M24028</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2023-08-01T18:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinates Not Being Displayed in proc gmap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Coordinates-Not-Being-Displayed-in-proc-gmap/m-p/887371#M24029</link>
      <description>&lt;P&gt;Also, since you're projecting the map and annotate data separately, you'll need to save the projection parameters from the map dataset, and use them when you project the annotate data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example where I do this:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://robslink.com/SAS/democd103/largest_high_school_basketball_gyms.htm" target="_blank"&gt;https://robslink.com/SAS/democd103/largest_high_school_basketball_gyms.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://robslink.com/SAS/democd103/largest_high_school_basketball_gyms.sas" target="_blank"&gt;https://robslink.com/SAS/democd103/largest_high_school_basketball_gyms.sas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Specifically, pay close attention to the parmout= and parmin= and parmentry=:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc gproject data=my_map out=my_map latlong eastlong degrees
 parmout=work.projparm;
id statecode;
run;

proc gproject data=my_data out=my_data latlong eastlong degrees
 parmin=work.projparm parmentry=my_map;
id;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 18:44:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Coordinates-Not-Being-Displayed-in-proc-gmap/m-p/887371#M24029</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2023-08-01T18:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinates Not Being Displayed in proc gmap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Coordinates-Not-Being-Displayed-in-proc-gmap/m-p/887388#M24030</link>
      <description>&lt;P&gt;I don't know what it was that did the trick, but something you mentioned below worked (lol). Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 20:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Coordinates-Not-Being-Displayed-in-proc-gmap/m-p/887388#M24030</guid>
      <dc:creator>jjjjvvvv0000</dc:creator>
      <dc:date>2023-08-01T20:53:04Z</dc:date>
    </item>
  </channel>
</rss>

