<?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: Latitude and Longitude in  proc gmap in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Latitude-and-Longitude-in-proc-gmap/m-p/630168#M19562</link>
    <description>&lt;P&gt;The Maps.Brazil data set contains Lat and Long variables. So if your annotate data does as well and have the &lt;STRONG&gt;same names&lt;/STRONG&gt; you may be able to use the LATLON option on Proc Gmap to use those instead of the X Y variables for plotting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc gmap map=maps.brazil anno=work.estados
   LATLON
;
   id id;
   choro segment / levels=1 nolegend coutline=gray88;
run;&lt;/PRE&gt;</description>
    <pubDate>Fri, 06 Mar 2020 17:30:22 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-03-06T17:30:22Z</dc:date>
    <item>
      <title>Latitude and Longitude in  proc gmap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Latitude-and-Longitude-in-proc-gmap/m-p/629834#M19557</link>
      <description>&lt;P&gt;I have this map with the Brazilian states:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data estados;
	set maps.brazil;
run;
&lt;BR /&gt;proc sort data = work.estados nodupkey;&lt;BR /&gt;by ID;&lt;BR /&gt;run;&lt;BR /&gt;
data estados;
set work.estados;
xsys='2'; ysys='2'; hsys='3'; when='a';
function='pie'; style='psolid'; rotate=360; size=1; color='red';
run;

title1 ls=1.5 "Estados Brasileiros";
pattern1 v=s c='white';

proc gmap map=maps.brazil anno=work.estados;
id id;
choro segment / levels=1 nolegend coutline=gray88;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the&amp;nbsp;&lt;CODE class=" language-sas"&gt;"anno=work.estados"&lt;/CODE&gt;&amp;nbsp;mark some states on the map.&lt;/P&gt;&lt;P&gt;I have a dataset with coordinates (latitude and longitude), someone know how i show a marker for each coordinate?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 15:20:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Latitude-and-Longitude-in-proc-gmap/m-p/629834#M19557</guid>
      <dc:creator>Danitinho</dc:creator>
      <dc:date>2020-03-05T15:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Latitude and Longitude in  proc gmap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Latitude-and-Longitude-in-proc-gmap/m-p/630168#M19562</link>
      <description>&lt;P&gt;The Maps.Brazil data set contains Lat and Long variables. So if your annotate data does as well and have the &lt;STRONG&gt;same names&lt;/STRONG&gt; you may be able to use the LATLON option on Proc Gmap to use those instead of the X Y variables for plotting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc gmap map=maps.brazil anno=work.estados
   LATLON
;
   id id;
   choro segment / levels=1 nolegend coutline=gray88;
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Mar 2020 17:30:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Latitude-and-Longitude-in-proc-gmap/m-p/630168#M19562</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-03-06T17:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Latitude and Longitude in  proc gmap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Latitude-and-Longitude-in-proc-gmap/m-p/630210#M19563</link>
      <description>&lt;P&gt;If you're working with lat/long point data, I would recommend projecting the map, and then projecting the point data (using the exact same parameters as were used to project the map). You could work with unprojected lat/long values, but having the code in place to apply any projection you want really adds a lot of flexibility (and is the best-practice way to go).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data my_map; set mapsgfk.brazil (where=(density&amp;lt;=3) drop=x y resolution);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gproject data=&lt;STRONG&gt;my_map&lt;/STRONG&gt; out=my_map latlong eastlong degrees &lt;STRONG&gt;parmout=projparm&lt;/STRONG&gt;;&lt;BR /&gt;id id;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data point_data;&lt;BR /&gt;input lat long;&lt;BR /&gt;datalines;&lt;BR /&gt;-11.3994052 -41.2813161&lt;BR /&gt;-9.0266125 -38.4466716&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gproject data=&lt;STRONG&gt;point_data&lt;/STRONG&gt; out=point_data latlong eastlong degrees &lt;STRONG&gt;parmin=projparm parmentry=my_map&lt;/STRONG&gt;;&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 point_data;&lt;BR /&gt;xsys='2'; ysys='2'; hsys='3'; when='a';&lt;BR /&gt;function='pie'; style='psolid'; rotate=360; size=1; color='red';&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;pattern1 v=s c=white;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;title "Brazil, with annotated lat/long point data";&lt;BR /&gt;proc gmap map=my_map data=my_map anno=anno_point_data;&lt;BR /&gt;id id;&lt;BR /&gt;choro segment / levels=1 nolegend coutline=gray77;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brazil_anno.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36644i5F2A4474E4691858/image-size/large?v=v2&amp;amp;px=999" role="button" title="brazil_anno.png" alt="brazil_anno.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 19:52:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Latitude-and-Longitude-in-proc-gmap/m-p/630210#M19563</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2020-03-06T19:52:03Z</dc:date>
    </item>
  </channel>
</rss>

