{"id":1317,"date":"2016-07-28T01:38:46","date_gmt":"2016-07-28T01:38:46","guid":{"rendered":"http:\/\/blogs.lincoln.ac.nz\/gis\/?p=1317"},"modified":"2023-05-07T04:04:43","modified_gmt":"2023-05-07T04:04:43","slug":"getting-to-the-points","status":"publish","type":"post","link":"https:\/\/blogs.lincoln.ac.nz\/gis\/getting-to-the-points\/","title":{"rendered":"Getting to the Point(s)"},"content":{"rendered":"<p><em>In this post we look at how points can be mapped from their raw coordinates in a text file or table.<\/em><\/p>\n<p>So the <a href=\"http:\/\/blog.capterra.com\/wp-content\/uploads\/2015\/01\/dangerous.gif\" target=\"_blank\" rel=\"noopener\">GIS Helpdesk<\/a> got a call last week &#8211; a postgrad was having some trouble mapping some points.\u00a0 Ah, it reminds me of that time all those years ago, before I knew about GIS, when, after doing some GPS surveying I simply wanted to see all those points on a map so I could tell if they were in the right place.\u00a0 I saw how easy it was and, for better or worse, I was hooked.<\/p>\n<p>And that&#8217;s a familiar scenario &#8211; you&#8217;ve got some x and y coordinates recorded somewhere and want to translate them to a map.\u00a0 It&#8217;s not a difficult task, once you know how.\u00a0 So in this case, the student wanted to map the locations of meteorological stations in the Waipara catchment.\u00a0 Amongst his 25 data files of rainfall, humidity and solar radiation, he had one that looked like this:<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/StationFile.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1318\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/StationFile.jpg\" alt=\"StationFile\" width=\"350\" height=\"275\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/StationFile.jpg 350w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/StationFile-300x236.jpg 300w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/a><\/p>\n<p>This is mapping gold and gives us all we need to get the points on a map.\u00a0 Starting with the first line, we&#8217;ve got details about the station data; an ID number, name, latitude, longitude and elevation.\u00a0 Then a line for each station with commas separating each item.\u00a0 For mapping purposes it&#8217;s the latitude and longitude that we&#8217;re most interested in.\u00a0 The negative in front of the latitude is pretty unambiguous &#8211; we are either north or south of the equator.\u00a0 There&#8217;s a bit of ambiguity in the longitude as we could be either east or west, but the absence of a negative sign will be taken as east of the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Prime_meridian\" target=\"_blank\" rel=\"noopener\">prime meridian<\/a> at Greenwich.\u00a0 Importantly, these are in decimal degrees rather than degrees minutes and seconds, which makes things a tad bit easier.\u00a0 So a quick inspection shows us that we&#8217;ve got the data we need to map these eight points.<\/p>\n<p>Next, we&#8217;ll add this text file straight into ArcGIS &#8211; I&#8217;ll use <a href=\"http:\/\/blogs.lincoln.ac.nz\/gis\/a-new-window-on-the-world-arcgis-pro\/\" target=\"_blank\" rel=\"noopener\">Pro <\/a>here and just add the text file straight onto a new map:<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/ProAddData.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1320\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/ProAddData.jpg\" alt=\"ProAddData\" width=\"1439\" height=\"860\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/ProAddData.jpg 1439w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/ProAddData-300x179.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/ProAddData-1024x612.jpg 1024w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/ProAddData-768x459.jpg 768w\" sizes=\"auto, (max-width: 1439px) 100vw, 1439px\" \/><\/a><\/p>\n<p>We could just have easily added an Excel sheet or a dbf table.\u00a0 Once on the map I can open the table with a right-click.\u00a0 Because it uses commas to separate values, it&#8217;s easily read in:<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/TextTable.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1321\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/TextTable.jpg\" alt=\"TextTable\" width=\"854\" height=\"350\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/TextTable.jpg 854w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/TextTable-300x123.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/TextTable-768x315.jpg 768w\" sizes=\"auto, (max-width: 854px) 100vw, 854px\" \/><\/a><\/p>\n<p>To map those points, all I need to do is right-click on the table name and go to &#8220;Display X Y Data&#8221;<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/DisplayXY.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1322\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/DisplayXY.jpg\" alt=\"DisplayXY\" width=\"282\" height=\"560\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/DisplayXY.jpg 282w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/DisplayXY-151x300.jpg 151w\" sizes=\"auto, (max-width: 282px) 100vw, 282px\" \/><\/a><\/p>\n<p>This will open up a new tool in a pane at the right where I can set some parameters about which field is my x coordinate and which my y.\u00a0 It&#8217;s &#8220;smart&#8221; enough to recognise Long and Lat appropriately:<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/DisplayXYTool.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1323\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/DisplayXYTool.jpg\" alt=\"DisplayXYTool\" width=\"287\" height=\"378\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/DisplayXYTool.jpg 287w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/DisplayXYTool-228x300.jpg 228w\" sizes=\"auto, (max-width: 287px) 100vw, 287px\" \/><\/a><\/p>\n<p>It&#8217;s also recognised that the data&#8217;s coordinate system is <a href=\"http:\/\/www.linz.govt.nz\/data\/geodetic-system\/datums-projections-and-heights\/geodetic-datums\/world-geodetic-system-1984-wgs84\" target=\"_blank\" rel=\"noopener\">WGS84<\/a> (the lat\/long system used with GPS).\u00a0 Clicking &#8220;Run at the bottom of the tool should deliver up some points on the map:<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/PointsOnMap.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1326\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/PointsOnMap.jpg\" alt=\"PointsOnMap\" width=\"1438\" height=\"857\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/PointsOnMap.jpg 1438w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/PointsOnMap-300x179.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/PointsOnMap-1024x610.jpg 1024w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2016\/07\/PointsOnMap-768x458.jpg 768w\" sizes=\"auto, (max-width: 1438px) 100vw, 1438px\" \/><\/a><\/p>\n<p>Et voila!\u00a0 I&#8217;ve also added the Waipara catchment boundary to the map to give it some context.\u00a0 If I&#8217;m happy enough with this for mapping purposes, I could next create a layout.\u00a0 If I were thinking of using these points for some analysis, my next step would likely be to convert the layer&#8217;s coordinate system from lat\/long to New Zealand Transverse Mercator, as the rest of my data would likely be in that system.<\/p>\n<p>So mapping points is quite easy as long as you&#8217;ve got the right information (the coordinates).\u00a0 And that&#8217;s the whole point.<\/p>\n<p>C<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post we look at how points can be mapped from their raw coordinates in a text file or table. So the GIS Helpdesk got a call last week &#8211; a postgrad was having some trouble mapping some points.\u00a0 Ah, it reminds me of that time all those years ago, before I knew about [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1317","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts\/1317","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/comments?post=1317"}],"version-history":[{"count":1,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts\/1317\/revisions"}],"predecessor-version":[{"id":4146,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts\/1317\/revisions\/4146"}],"wp:attachment":[{"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/media?parent=1317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/categories?post=1317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/tags?post=1317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}