<?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: GPROJECT: Convert LAT-LONG to UTM in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/GPROJECT-Convert-LAT-LONG-to-UTM/m-p/252391#M9136</link>
    <description>&lt;P&gt;Guy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the projection that you are trying to convert into? &amp;nbsp;The values that you are getting from the proc for that EPSG value appear to be correct. I looked up the range of values for the UTM represented by EPSG:3347, and those returned values are in the expected range. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For reference, here is the definition of EPSG 3347 from spatialreference.org that I used:&lt;/P&gt;&lt;P&gt;&lt;A href="http://spatialreference.org/ref/epsg/nad83-statistics-canada-lambert/" target="_blank"&gt;http://spatialreference.org/ref/epsg/nad83-statistics-canada-lambert/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2016 15:24:37 GMT</pubDate>
    <dc:creator>ScottJackson</dc:creator>
    <dc:date>2016-02-25T15:24:37Z</dc:date>
    <item>
      <title>GPROJECT: Convert LAT-LONG to UTM</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GPROJECT-Convert-LAT-LONG-to-UTM/m-p/162075#M6061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-CA" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-CA" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-CA" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;This my first attempt to transform latitudes and longitudes into UTM (Zone 18) coordinates using SAS. &lt;STRONG&gt;PROC GPROJECT PROJECT=proj4&lt;/STRONG&gt; seems to be what I need but I can’t get the desired result :&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-CA" style="font-size: 10.0pt; font-family: 'Lucida Console';"&gt;data have;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-CA" style="font-size: 10.0pt; font-family: 'Lucida Console';"&gt;id=1; lat=45.5; long=73.5;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-CA" style="font-size: 10.0pt; font-family: 'Lucida Console';"&gt;run;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-CA" style="font-size: 10.0pt; font-family: 'Lucida Console';"&gt;proc gproject latlon degrees westlong&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-CA" style="font-size: 10.0pt; font-family: 'Lucida Console';"&gt;project=proj4 to="EPSG:32618"&amp;nbsp; /* WGS 84 / UTM zone 18N */&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-CA" style="font-size: 10.0pt; font-family: 'Lucida Console';"&gt;data=have out=want;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-CA" style="font-size: 10.0pt; font-family: 'Lucida Console';"&gt;id id;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-CA" style="font-size: 10.0pt; font-family: 'Lucida Console';"&gt;run;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-CA" style="font-size: 10.0pt; font-family: 'Lucida Console';"&gt;proc print data=want noobs; run;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-CA" style="font-size: 10pt; font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&amp;nbsp;&amp;nbsp;&amp;nbsp; id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lat&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; long&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="line-height: 1.5em; color: #0000ff; font-size: 10pt; font-family: 'courier new', courier;"&gt; 1.28282 0.79412&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 45.5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 73.5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-CA" style="font-size: 10.0pt; font-family: 'Lucida Console';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-CA" style="font-size: 10.0pt; font-family: 'Lucida Console';"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;X and Y are clearly not what I expect.&lt;/SPAN&gt; Please help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-CA" style="font-size: 10.0pt; font-family: 'Lucida Console';"&gt;PG&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 19:53:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GPROJECT-Convert-LAT-LONG-to-UTM/m-p/162075#M6061</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-11-07T19:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: GPROJECT: Convert LAT-LONG to UTM</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GPROJECT-Convert-LAT-LONG-to-UTM/m-p/162076#M6062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would try adding a few other points.&lt;/P&gt;&lt;P&gt;In 9.3 with any of the available projections except NONE a single points yields output of 0,0. So it may be an effect of not having something else to generate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 21:18:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GPROJECT-Convert-LAT-LONG-to-UTM/m-p/162076#M6062</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-11-07T21:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: GPROJECT: Convert LAT-LONG to UTM</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GPROJECT-Convert-LAT-LONG-to-UTM/m-p/162077#M6063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A __default_attr="260198" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a simplified example. I tried with almost 3000 coordinates and got all UTM coordinates between 0.5 and 1.5... Some of these coordinates are kilometers apart. All have distinct IDs however.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. I'm using SAS 9.4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 21:43:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GPROJECT-Convert-LAT-LONG-to-UTM/m-p/162077#M6063</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-11-07T21:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: GPROJECT: Convert LAT-LONG to UTM</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GPROJECT-Convert-LAT-LONG-to-UTM/m-p/162078#M6064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It has been awhile since I tried projecting any data from lat/long but my results back then seemed to yield a x in the -1 to 1 and y in -1 to 2 range. I suspect those results were just SAS drawing coordinate for GMap. Maybe something similar is happening here?!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 23:07:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GPROJECT-Convert-LAT-LONG-to-UTM/m-p/162078#M6064</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-11-07T23:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: GPROJECT: Convert LAT-LONG to UTM</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GPROJECT-Convert-LAT-LONG-to-UTM/m-p/162079#M6065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What numbers are you expecting?&lt;/P&gt;&lt;P&gt;The doc says: The DEGREES and EASTLONG options are enabled with the PROJ4 projection method.&lt;/P&gt;&lt;P&gt;I think that means you CANNOT turn on WESTLONG.&amp;nbsp; I think the doc isn't very clear on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, the PROJ4 doc says the LONG/LAT must be: -78.0000, 0.0000, -72.0000, 84.0000&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.spatialreference.org/ref/epsg/wgs-84-utm-zone-18n/" title="http://www.spatialreference.org/ref/epsg/wgs-84-utm-zone-18n/"&gt; (WGS 84 / UTM zone 18N: EPSG Projection -- Spatial Reference&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you need to change your value to EASTLONG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 14:46:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GPROJECT-Convert-LAT-LONG-to-UTM/m-p/162079#M6065</guid>
      <dc:creator>Darrell_sas</dc:creator>
      <dc:date>2014-11-10T14:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: GPROJECT: Convert LAT-LONG to UTM</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GPROJECT-Convert-LAT-LONG-to-UTM/m-p/162080#M6066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Darrell, I got it now. It turns out that options &lt;STRONG&gt;EASTLONG,&lt;/STRONG&gt; &lt;STRONG&gt;WESTLONG &lt;/STRONG&gt;and&lt;STRONG&gt; DEGREES&lt;/STRONG&gt; are ignored for &lt;STRONG&gt;METHOD=PROJ4&lt;/STRONG&gt;. Longitudes must be within the specified limits for the UTM zone (and negative), otherwise &lt;STRONG&gt;GPROJECT&lt;/STRONG&gt; gives garbage without any warning. The correct projection will be given by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 12.8000001907349px; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-CA" style="font-style: inherit; font-size: 10pt; font-family: 'Lucida Console';"&gt;data have;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 12.8000001907349px; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-CA" style="font-style: inherit; font-size: 10pt; font-family: 'Lucida Console';"&gt;id=1; lat=45.5; long=-73.5;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 12.8000001907349px; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-CA" style="font-style: inherit; font-size: 10pt; font-family: 'Lucida Console';"&gt;run;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 12.8000001907349px; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-CA" style="font-style: inherit; font-size: 10pt; font-family: 'Lucida Console';"&gt;proc gproject latlon&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 12.8000001907349px; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-CA" style="font-style: inherit; font-size: 10pt; font-family: 'Lucida Console';"&gt;project=proj4 to="EPSG:32618"&amp;nbsp; &lt;SPAN style="color: #008000;"&gt;/* WGS 84 / UTM zone 18N */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 12.8000001907349px; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-CA" style="font-style: inherit; font-size: 10pt; font-family: 'Lucida Console';"&gt;data=have out=want;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 12.8000001907349px; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-CA" style="font-style: inherit; font-size: 10pt; font-family: 'Lucida Console';"&gt;id id;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 12.8000001907349px; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-CA" style="font-style: inherit; font-size: 10pt; font-family: 'Lucida Console';"&gt;run;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 12.8000001907349px; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-CA" style="font-style: inherit; font-size: 10pt; font-family: 'Lucida Console';"&gt;proc print data=want noobs; run;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 12.8000001907349px; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-CA" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Lucida Console';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;&lt;STRONG&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&amp;nbsp;&amp;nbsp;&amp;nbsp; id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lat&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; long&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;&lt;STRONG&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; 617189.99&amp;nbsp;&amp;nbsp;&amp;nbsp; 5039590.76&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 45.5&amp;nbsp;&amp;nbsp;&amp;nbsp; -73.5&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 03:06:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GPROJECT-Convert-LAT-LONG-to-UTM/m-p/162080#M6066</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-11-11T03:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: GPROJECT: Convert LAT-LONG to UTM</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GPROJECT-Convert-LAT-LONG-to-UTM/m-p/252199#M9122</link>
      <description>&lt;P&gt;Hi, I have a problem somewhat similar...&amp;nbsp; here is a output test&amp;nbsp;; coordoninate are lat long from Canada territory.&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;data have ;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;id = "CA-1001" ; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;long = -52.7 ; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;lat&amp;nbsp; =&amp;nbsp; 47.5 ;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;run ;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;proc gproject latlon degrees eastlong&lt;BR /&gt;&amp;nbsp;&amp;nbsp;project=proj4 to="EPSG:3347"&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;data=have out=want;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;id id ;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;run ;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;proc print data=want noobs ;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;run ;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;To my understanding I am using the correct parameters... the results are at the bottom... but the x and y&amp;nbsp;result should be in a 0.45 for X and - 0.08 for Y... not 1026136... ?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I have been trying for the last sevral hours to do the right conversion for a map project... If someone can help I would appeciate... Best regards.&amp;nbsp; Guy&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;TABLE class="table" border="2" rules="all" frame="box" cellspacing="0" cellpadding="3" summary="Procedure Print: Table WORK.WANT"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="r header" scope="col"&gt;X&lt;/TH&gt;
&lt;TH class="r header" scope="col"&gt;Y&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;id&lt;/TH&gt;
&lt;TH class="r header" scope="col"&gt;long&lt;/TH&gt;
&lt;TH class="r header" scope="col"&gt;lat&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="r data"&gt;10261036.29&lt;/TD&gt;
&lt;TD class="r data"&gt;2376434.81&lt;/TD&gt;
&lt;TD class="l data"&gt;CA-1001&lt;/TD&gt;
&lt;TD class="r data"&gt;-52.7&lt;/TD&gt;
&lt;TD class="r data"&gt;
&lt;P&gt;47.5&amp;nbsp;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Feb 2016 20:26:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GPROJECT-Convert-LAT-LONG-to-UTM/m-p/252199#M9122</guid>
      <dc:creator>CandidedeVoltaire</dc:creator>
      <dc:date>2016-02-24T20:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: GPROJECT: Convert LAT-LONG to UTM</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GPROJECT-Convert-LAT-LONG-to-UTM/m-p/252391#M9136</link>
      <description>&lt;P&gt;Guy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the projection that you are trying to convert into? &amp;nbsp;The values that you are getting from the proc for that EPSG value appear to be correct. I looked up the range of values for the UTM represented by EPSG:3347, and those returned values are in the expected range. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For reference, here is the definition of EPSG 3347 from spatialreference.org that I used:&lt;/P&gt;&lt;P&gt;&lt;A href="http://spatialreference.org/ref/epsg/nad83-statistics-canada-lambert/" target="_blank"&gt;http://spatialreference.org/ref/epsg/nad83-statistics-canada-lambert/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 15:24:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GPROJECT-Convert-LAT-LONG-to-UTM/m-p/252391#M9136</guid>
      <dc:creator>ScottJackson</dc:creator>
      <dc:date>2016-02-25T15:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: GPROJECT: Convert LAT-LONG to UTM</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GPROJECT-Convert-LAT-LONG-to-UTM/m-p/252930#M9149</link>
      <description>&lt;P&gt;I found the ligth at the end of the tunnel... The problem was not a conversion problem.... I was in the Mapsgfk.canada and Mapsgfk.canada_attr map files.&amp;nbsp; The X and Y variables used in those maps were generated by the map provider... I could not find any way of converting external points in Latitude and longitude to those internal coordinates.&amp;nbsp; The solution was so simple, I imported the Canadian&amp;nbsp;SHP map file from open data Stat Can with MAPIMPORT... The coordinates X Y in the map is in Latitude and longitude... so I repeated the program and all is good.&amp;nbsp; Hoping my experience can be useful for&amp;nbsp;someone in the future.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best retards Scott&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 14:59:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GPROJECT-Convert-LAT-LONG-to-UTM/m-p/252930#M9149</guid>
      <dc:creator>CandidedeVoltaire</dc:creator>
      <dc:date>2016-02-27T14:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: GPROJECT: Convert LAT-LONG to UTM</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GPROJECT-Convert-LAT-LONG-to-UTM/m-p/252931#M9150</link>
      <description>&lt;P&gt;Best Regards &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 15:09:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GPROJECT-Convert-LAT-LONG-to-UTM/m-p/252931#M9150</guid>
      <dc:creator>CandidedeVoltaire</dc:creator>
      <dc:date>2016-02-27T15:09:01Z</dc:date>
    </item>
  </channel>
</rss>

