{"id":1772,"date":"2017-08-10T23:45:32","date_gmt":"2017-08-10T23:45:32","guid":{"rendered":"http:\/\/blogs.lincoln.ac.nz\/gis\/?p=1772"},"modified":"2023-05-07T03:42:35","modified_gmt":"2023-05-07T03:42:35","slug":"how-to-be-in-two-or-more-places-at-once","status":"publish","type":"post","link":"https:\/\/blogs.lincoln.ac.nz\/gis\/how-to-be-in-two-or-more-places-at-once\/","title":{"rendered":"How to be in two (or more) places at once"},"content":{"rendered":"<p><em>Multiple coordinate systems are covered in this post.<\/em><\/p>\n<p>In these busy, busy times, wouldn&#8217;t it be nice to be in more than one place at a time?\u00a0 Good news!\u00a0 You can!\u00a0 In fact you have been !\u00a0 <a href=\"https:\/\/www.youtube.com\/watch?v=H7BvEldVEHU\" target=\"_blank\" rel=\"noopener noreferrer\">You&#8217;re soaking in it!<\/a>\u00a0 &#8220;How?&#8221; you may well ask.\u00a0 All thanks to multiple coordinate systems.\u00a0 This ties in with some earlier discussions we&#8217;ve had about <a href=\"http:\/\/blogs.lincoln.ac.nz\/gis\/map-projections-part-2-the-allegory-of-the-cave\/\" target=\"_blank\" rel=\"noopener noreferrer\">map projections<\/a>.\u00a0 With every map projection we also get a coordinate system thrown in for good measure (sorry, pun intended&#8230;) &#8211; it&#8217;s the coordinate system, after all, that allows us to make measurements of area and length in real world units (like metres).<\/p>\n<p>We saw earlier that most of our New Zealand data and maps have adopted <a href=\"http:\/\/www.linz.govt.nz\/data\/geodetic-system\/datums-projections-and-heights\/projections\/new-zealand-transverse-mercator-2000\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>New Zealand Transverse Mercator<\/strong><\/a> (NZTM) as their coordinate system.\u00a0 With NZTM I can specify any location within New Zealand with two elements: an easting (the x-coordinate) and a northing (the y-coordinate).\u00a0 So, for example, if I&#8217;m standing in front of the Forbes building,<\/p>\n<figure id=\"attachment_1812\" aria-describedby=\"caption-attachment-1812\" style=\"width: 432px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2017\/08\/IMGP2119-Medium.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1812 size-full\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2017\/08\/IMGP2119-Medium.jpg\" alt=\"\" width=\"432\" height=\"768\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2017\/08\/IMGP2119-Medium.jpg 432w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2017\/08\/IMGP2119-Medium-169x300.jpg 169w\" sizes=\"auto, (max-width: 432px) 100vw, 432px\" \/><\/a><figcaption id=\"caption-attachment-1812\" class=\"wp-caption-text\"><em>Photo courtesy of Geoff Kerr, who just happened to be looking out his window, camera in hand, at just the right moment.<\/em><\/figcaption><\/figure>\n<p>I could tell you exactly where I am using the NZTM coordinates:<\/p>\n<p>Easting: 1557067.60 \u00a0\u00a0\u00a0 Northing: 5167552.88<\/p>\n<p>There&#8217;s one of my places.<\/p>\n<p>An easy second one has to do with the fact that NZTM is a projection from the <a href=\"http:\/\/www.linz.govt.nz\/data\/geodetic-system\/datums-projections-and-heights\/geodetic-datums\/new-zealand-geodetic-datum-2000-nzgd2000\" target=\"_blank\" rel=\"noopener noreferrer\">NZGD2000<\/a> datum (<a href=\"http:\/\/blogs.lincoln.ac.nz\/gis\/map-projections-3-the-tour-de-topo\/\">as we&#8217;ve seen<\/a>), which is based on the GRS80 elipsoid and on that elipsoid, that same location has coordinates:<\/p>\n<p>Longitude: 172.4677 \u00b0 E \u00a0\u00a0 Latitude: 43.6438 \u00b0 S<\/p>\n<p>(Note: these units are <a href=\"https:\/\/en.wikipedia.org\/wiki\/Decimal_degrees\" target=\"_blank\" rel=\"noopener noreferrer\">decimal degrees<\/a>.\u00a0 In the Degrees\/Minutes\/Seconds format, those same coordinates are: 172\u00b0 28&#8242; 3.66705&#8221;, -43\u00b0 38&#8242; 37.60688&#8221;)<\/p>\n<p>But wait, there&#8217;s more.\u00a0 While NZTM is what we currently use for maps and data, <a href=\"http:\/\/www.linz.govt.nz\/data\/geodetic-system\/datums-projections-heights\/projections\/new-zealand-map-grid-nzmg\" target=\"_blank\" rel=\"noopener noreferrer\">New Zealand Map Grid<\/a> is what we used to use and the older 260 series of topographic maps had their own coordinates.\u00a0 In NZMG, that some location is at:<\/p>\n<p>Easting: 2467062.15 \u00a0\u00a0\u00a0 Northing: 5729260.66<\/p>\n<p>And NZMG is based on <a href=\"http:\/\/www.linz.govt.nz\/data\/geodetic-system\/datums-projections-and-heights\/geodetic-datums\/new-zealand-geodetic-datum-1949-nzgd1949\" target=\"_blank\" rel=\"noopener noreferrer\">NZGD1949<\/a>, which has coordinates:<\/p>\n<p>Longitude: 172.4676 \u00b0 E\u00a0 Latitude: 43.6455 \u00b0 S<\/p>\n<p>As a side note, the image below may not really make any sense, but it shows the NZ coastline (in light blue) in NZTM and the coastline in NZMG in darker blue.\u00a0 I edited the NZMG layer so that it doesn&#8217;t have any information on the layer&#8217;s projection, so it&#8217;s just placed it within the coordinate system of NZTM (I hope that made sense).\u00a0 This just gives you a sense of the two systems being in different places, even though they&#8217;re the same place (how very Inception-like):<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2017\/08\/TMvMG.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1808\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2017\/08\/TMvMG.jpg\" alt=\"\" width=\"677\" height=\"674\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2017\/08\/TMvMG.jpg 677w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2017\/08\/TMvMG-300x300.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2017\/08\/TMvMG-150x150.jpg 150w\" sizes=\"auto, (max-width: 677px) 100vw, 677px\" \/><\/a><\/p>\n<p>But that&#8217;s not all.\u00a0 If we think about <a href=\"http:\/\/gisgeography.com\/wgs84-world-geodetic-system\/\" target=\"_blank\" rel=\"noopener noreferrer\">WGS84<\/a>, the spheroid used by GPS, we get yet another set of coordinates.<\/p>\n<p>Longitude: 172.4677 \u00b0 E\u00a0 Latitude: 43.6438 \u00b0 S<\/p>\n<p>Quite similar to the second set above, which shouldn&#8217;t be too surprising as NZGD2000 almost exactly corresponds to WGS84.<\/p>\n<p>Let&#8217;s throw another one in for good measure.\u00a0 In addition to NZTM, we also have a set of smaller, more local coordinate systems, mainly used by surveyors for marking out property boundaries.\u00a0 These are the local surveyors, or <a href=\"http:\/\/www.linz.govt.nz\/data\/geodetic-system\/datums-projections-and-heights\/projections\/nzgd2000-meridional-circuits\" target=\"_blank\" rel=\"noopener noreferrer\">meridional circuits<\/a> and there are 28 that cover New Zealand.\u00a0 Here&#8217;s how they are spread around the place:<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2017\/08\/nzgd2000-meridional-circuits.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1803\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2017\/08\/nzgd2000-meridional-circuits.jpg\" alt=\"\" width=\"464\" height=\"655\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2017\/08\/nzgd2000-meridional-circuits.jpg 464w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2017\/08\/nzgd2000-meridional-circuits-213x300.jpg 213w\" sizes=\"auto, (max-width: 464px) 100vw, 464px\" \/><\/a><\/p>\n<p>For us, it&#8217;s the Mount Pleasant circuit so that same location also has coordinates:<\/p>\n<p>Easting: 379081.80\u00a0\u00a0 Northing: 794053.88<\/p>\n<p>So there you have it &#8211; six places at once.\u00a0 (<em>No extra points for those who recognise that these all relate to the same place; but they are all different because they&#8217;re all in different coordinate systems.)<\/em><\/p>\n<p>One of the fundamental characteristics of any GIS feature is where it is.\u00a0 All GIS data will contain a location based on some coordinate system.\u00a0 Best practice is that there are some additional data (metadata) that specify exactly <em>which<\/em> coordinate system.\u00a0 When you add a data layer to a map, the software pickups up the x, y coordinates and places that feature on the map.\u00a0 With the right information, ArcMap also knows what units the data are in (metres?\u00a0 cubits?).\u00a0 ArcMap also uses this information if you add a new data layer that&#8217;s in a different coordinate system.\u00a0 So if I&#8217;ve got data on a map in NZTM (the first layer added sets the coordinate system of the map) and then try and add a layer in WGS84, ArcMap\u00a0 projects the data\u00a0(lingo alert) &#8220;on the fly&#8221;, meaning it knows where stuff should be and places it there.\u00a0 <em>(Best practice would be to take my WGS84 layer and use the <a href=\"http:\/\/pro.arcgis.com\/en\/pro-app\/tool-reference\/data-management\/project.htm\" target=\"_blank\" rel=\"noopener noreferrer\">Project tool<\/a> to convert it to NZTM)\u00a0 <\/em>My two layers can live and play happily together on the same map because of this extra information.\u00a0 In the image of TM and MG above, if I had included the projection data, ArcMap would have arranged the two layers in the same place.<\/p>\n<p>(By the way, there&#8217;s nothing exceptionally special about NZTM, apart from it makes it much easier to deal with GPS data.\u00a0 It&#8217;s just that we&#8217;ve all tacitly agreed to use it).<\/p>\n<p>I hope that helps put you in your place.<\/p>\n<p>C<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Multiple coordinate systems are covered in this post. In these busy, busy times, wouldn&#8217;t it be nice to be in more than one place at a time?\u00a0 Good news!\u00a0 You can!\u00a0 In fact you have been !\u00a0 You&#8217;re soaking in it!\u00a0 &#8220;How?&#8221; you may well ask.\u00a0 All thanks to multiple coordinate systems.\u00a0 This ties in [&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-1772","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts\/1772","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=1772"}],"version-history":[{"count":1,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts\/1772\/revisions"}],"predecessor-version":[{"id":4132,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts\/1772\/revisions\/4132"}],"wp:attachment":[{"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/media?parent=1772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/categories?post=1772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/tags?post=1772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}