Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


734 posts

Ultimate Geek
+1 received by user: 27

Trusted

Topic # 145469 19-May-2014 10:28
Send private message

Good day guys,

I'm wondering if anyone has made an Excel spreadsheet to convert between NZ Map Grid to WGS 1984 Co-Ordinate systems? I normally use the LINZ website but I have run into a situation where it would not work (namely some of my data rows have no Northings/Eastings). LINZ has the formulas on their website and it's been on the radar to make one of these sheets myself, however I do not have the time right now to do so.

Therefore I thought I would crowdsource - has anyone done it and be willing to share it?

Cheers,

Cru




Homebuilt High Performance Desktop: Windows 10 Professional (x64)
Toshiba Encore Write 2: Windows 10
Nokia 930: Windows Phone 10
Samsung Tab4 7": Android Lolipop
XBL: CruciasNZ
PSN: CruciasNZ
Steam: Lienhart2005


Create new topic
6314 posts

Uber Geek
+1 received by user: 380

Moderator
Trusted
Lifetime subscriber

  Reply # 1047903 19-May-2014 11:09
Send private message

How many rows of data? I've had to do this in the past for a client and if you're happy with a one-off conversion, I could possibly translate these for you.

319 posts

Ultimate Geek
+1 received by user: 77

Trusted

  Reply # 1047941 19-May-2014 12:16
Send private message

Not easily have you seen the formula ;)

http://www.linz.govt.nz/geodetic/conversion-coordinates/projection-conversions/projection-to-geographic-nzmg-to-nzgd1949

There is a download of the C code for doing the conversion so I guess you could make a small app to do the conversion, I wouldnt even try that in vba
http://www.linz.govt.nz/geodetic/software-downloads





lemontv.co.nz | Search NZ streaming sites

2341 posts

Uber Geek
+1 received by user: 1133


  Reply # 1047947 19-May-2014 12:26
Send private message

I've converted the C into Java... happy to share that.

See also http://forums.gps.org.nz/viewtopic.php?f=6&t=3146

1453 posts

Uber Geek
+1 received by user: 177


  Reply # 1047958 19-May-2014 12:39
Send private message

Yup not so easy to convert NZ Map Grid to WGS84 (or the other way around). The problem is that they are on different (underlying) datums and the shift between datums uses a complex formula.

NZ Transverse Mercator uses a datum which is basically the same as WGS84 so much simpler to convert.

Best bet is to use the LINZ web site or find someone with some GIS software.

If the data isn't commercially sensitive I can convert it for you if you want (I work for a GIS software vendor).





734 posts

Ultimate Geek
+1 received by user: 27

Trusted

  Reply # 1047978 19-May-2014 13:10
Send private message

Hey cheers for the replies.

I have seen the formula which is exactly why I don't have the time :D

The problem with using LINZ is it can't handle rows of blanks, so I'd need to feed it each 'chunk' of points sequentially. The data I am working on is road condition data for the State Highways and so is under confidentiality agreements unfortunately. Hence the desire to get a working Excel conversion.

Guess I'll just skip GPS (it's a nice to have, not a need to have for this project thank god).




Homebuilt High Performance Desktop: Windows 10 Professional (x64)
Toshiba Encore Write 2: Windows 10
Nokia 930: Windows Phone 10
Samsung Tab4 7": Android Lolipop
XBL: CruciasNZ
PSN: CruciasNZ
Steam: Lienhart2005


2341 posts

Uber Geek
+1 received by user: 1133


  Reply # 1048081 19-May-2014 14:50
Send private message

Google for "Redfearn's formula XLS".... 

This is a bit simpler than what LINZ offers, and it's what I used. Whilst the formula looks horrendous, it actually isn't that bad... just long.

It's a general purpose formula to convert  IIRC any Transverse Mercator projection to degrees/minutes/seconds and vice versa. There are eight constants to plug into the formula to make it a NZTM projection, plus your (x,y) coordinates.

One Excel example is at www.icsm.gov.au/gda/gdatm/redfearn.xls


Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

N4L helping TAKA Trust bridge the digital divide for Lower Hutt students
Posted 18-Jun-2018 13:08


Winners Announced for 2018 CIO Awards
Posted 18-Jun-2018 13:03


Logitech Rally sets new standard for USB-connected video conference cameras
Posted 18-Jun-2018 09:27


Russell Stanners steps down as Vodafone NZ CEO
Posted 12-Jun-2018 09:13


Intergen recognised as 2018 Microsoft Country Partner of the Year for New Zealand
Posted 12-Jun-2018 08:00


Finalists Announced For Microsoft NZ Partner Awards
Posted 6-Jun-2018 15:12


Vocus Group and Vodafone announce joint venture to accelerate fibre innovation
Posted 5-Jun-2018 10:52


Kogan.com to launch Kogan Mobile in New Zealand
Posted 4-Jun-2018 14:34


Enable doubles fibre broadband speeds for its most popular wholesale service in Christchurch
Posted 2-Jun-2018 20:07


All or Nothing: New Zealand All Blacks arrives on Amazon Prime Video
Posted 2-Jun-2018 16:21


Innovation Grant, High Tech Awards and new USA office for Kiwi tech company SwipedOn
Posted 1-Jun-2018 20:54


Commerce Commission warns Apple for misleading consumers about their rights
Posted 30-May-2018 13:15


IBM leads Call for Code to use cloud, data, AI, blockchain for natural disaster relief
Posted 25-May-2018 14:12


New FUJIFILM X-T100 aims to do better job than smartphones
Posted 24-May-2018 20:17


Stuff takes 100% ownership of Stuff Fibre
Posted 24-May-2018 19:41



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.