<?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 do i get lat/longs from my GIS shape file? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/how-do-i-get-lat-longs-from-my-GIS-shape-file/m-p/251717#M9112</link>
    <description>&lt;P&gt;First thing to try is to chose another UTM zone&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%UTM2latLong(dsn,y=Y,x=X,&lt;FONT color="#FF0000"&gt;zone=16N&lt;/FONT&gt;);&lt;/P&gt;</description>
    <pubDate>Tue, 23 Feb 2016 03:58:36 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2016-02-23T03:58:36Z</dc:date>
    <item>
      <title>how do i get lat/longs from my GIS shape file?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-do-i-get-lat-longs-from-my-GIS-shape-file/m-p/251665#M9105</link>
      <description>&lt;P&gt;I am a novice with GIS files, and was given my first SHAPE file as one of my inputs for my analysis investigation. The first thing I like to do is to get convert/input data to SAS format.&amp;nbsp; So I ran Proc Mapimport and now Have over a million records describing the boundaries and shapes for my 53K properties of interest.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My SAS file contains data given to me describing one county in the US -which ought to match what I'd pull myself from SAS's Tiger Shape files from the census - but I wish to start with what my client sent me.&amp;nbsp;&amp;nbsp;&amp;nbsp; my SAS file shows me Parcel ID's with&amp;nbsp; x and y values.&amp;nbsp; But i do not know what sort of projection system SAS proc mapimport used to produce their &lt;SPAN&gt;geographic coordinate system &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mapping systems are complicated -- as I understand that one &lt;SPAN&gt;location on the ground will have many different latitude-longitude values depending on which geographic coordinate system is used.&amp;nbsp;&amp;nbsp; does SAS have code to run to produce the geographic (datum) transformations to reconcile the x and y's to lat/longs &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I am not clear on the dimension or unit of measurement that i starting with.&amp;nbsp; Found a conversion macro UTM2latlong&amp;nbsp; but when i input the x an y from proc mapimport,&amp;nbsp; the macro gave me values not in in the proper part of the US -- so i must not have started with X&lt;STRONG&gt; and Y (in meters).&amp;nbsp; when I look on the&amp;nbsp; ArcGIS website I see there are ways to export a raster to a netCDF file.&amp;nbsp;&amp;nbsp;&amp;nbsp; is that what I have ?&amp;nbsp; Raster cell values are exported as a netCDF variable?&amp;nbsp; &lt;BR /&gt; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;geez - this area is new to me - i am struggling simply to pose my question to this forum!&amp;nbsp; yikes!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 23:03:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-do-i-get-lat-longs-from-my-GIS-shape-file/m-p/251665#M9105</guid>
      <dc:creator>marygc</dc:creator>
      <dc:date>2016-02-22T23:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: how do i get lat/longs from my GIS shape file?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-do-i-get-lat-longs-from-my-GIS-shape-file/m-p/251717#M9112</link>
      <description>&lt;P&gt;First thing to try is to chose another UTM zone&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%UTM2latLong(dsn,y=Y,x=X,&lt;FONT color="#FF0000"&gt;zone=16N&lt;/FONT&gt;);&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 03:58:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-do-i-get-lat-longs-from-my-GIS-shape-file/m-p/251717#M9112</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-02-23T03:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: how do i get lat/longs from my GIS shape file?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-do-i-get-lat-longs-from-my-GIS-shape-file/m-p/251763#M9114</link>
      <description>&lt;P&gt;First, Proc MAPIMPORT just takes the same coordinates that was in the shapefile.&amp;nbsp; It just converts the shapefile into a SAS Date set.&amp;nbsp; (Note, you may need to use the ID statement.&amp;nbsp; See the doc and examples).&lt;/P&gt;
&lt;P&gt;Second, If you are using MAPS for your map it is likely in Radians.&amp;nbsp; If you are using the newer MAPSGFK maps, then it is in Degrees.&amp;nbsp; The shapefile is probably in Degrees.&lt;/P&gt;
&lt;P&gt;Third, you need to know what projection your shapefile is in.&amp;nbsp; It may be unprojected.&amp;nbsp; In that case, you would need to take your MAPS or your MAPSGFK data as unprojected too (MAPS must be converted to degrees).&amp;nbsp; Use Proc GPROJECT to project your data.&amp;nbsp; You need to combine both the maps and the coordinates together.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 13:53:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-do-i-get-lat-longs-from-my-GIS-shape-file/m-p/251763#M9114</guid>
      <dc:creator>Darrell_sas</dc:creator>
      <dc:date>2016-02-23T13:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: how do i get lat/longs from my GIS shape file?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-do-i-get-lat-longs-from-my-GIS-shape-file/m-p/251799#M9115</link>
      <description>&lt;P&gt;UTM zone -- yes that was one of my questions when i found the macro.&lt;/P&gt;
&lt;P&gt;OK&amp;nbsp; - after googling&amp;nbsp;what a UTM zone is -- and finding the 2 digit numeric&amp;nbsp;that matches the county and state I am interested in,&lt;/P&gt;
&lt;P&gt;I put that code in the macro and&lt;/P&gt;
&lt;P&gt;and getting closer.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; my latitudes are now in the right ballpark -- but the longitudes are still off.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;does&amp;nbsp;the alph in the third position of the UTM code refer to the positioning system.&amp;nbsp; I see N and S and others to verify...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 16:28:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-do-i-get-lat-longs-from-my-GIS-shape-file/m-p/251799#M9115</guid>
      <dc:creator>marygc</dc:creator>
      <dc:date>2016-02-23T16:28:43Z</dc:date>
    </item>
  </channel>
</rss>

