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.


CruciasNZ

877 posts

Ultimate Geek

Trusted

#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




Professional Forum Lurker


Create new topic
nate
6469 posts

Uber Geek

Moderator
Trusted
Lifetime subscriber

  #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.

 
 
 

You will find anything you want at MightyApe (affiliate link).
Killerkiwi2005
374 posts

Ultimate Geek

Trusted

  #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


frankv
5583 posts

Uber Geek

Lifetime subscriber

  #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



tchart
2299 posts

Uber Geek

ID Verified
Trusted

  #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).



CruciasNZ

877 posts

Ultimate Geek

Trusted

  #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).




Professional Forum Lurker


frankv
5583 posts

Uber Geek

Lifetime subscriber

  #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





News and reviews »

New Air Traffic Management Platform and Resilient Buildings a Milestone for Airways
Posted 6-Dec-2023 05:00


Logitech G Launches New Flagship Console Wireless Gaming Headset Astro A50 X
Posted 5-Dec-2023 21:00


NordVPN Helps Users Protect Themselves From Vulnerable Apps
Posted 5-Dec-2023 14:27


First-of-its-Kind Flight Trials Integrate Uncrewed Aircraft Into Controlled Airspace
Posted 5-Dec-2023 13:59


Prodigi Technology Services Announces Strategic Acquisition of Conex
Posted 4-Dec-2023 09:33


Samsung Announces Galaxy AI
Posted 28-Nov-2023 14:48


Epson Launches EH-LS650 Ultra Short Throw Smart Streaming Laser Projector
Posted 28-Nov-2023 14:38


Fitbit Charge 6 Review 
Posted 27-Nov-2023 16:21


Cisco Launches New Research Highlighting Gap in Preparedness for AI
Posted 23-Nov-2023 15:50


Seagate Takes Block Storage System to New Heights Reaching 2.5 PB
Posted 23-Nov-2023 15:45


Seagate Nytro 4350 NVMe SSD Delivers Consistent Application Performance and High QoS to Data Centers
Posted 23-Nov-2023 15:38


Amazon Fire TV Stick 4k Max (2nd Generation) Review
Posted 14-Nov-2023 16:17


Over half of New Zealand adults surveyed concerned about AI shopping scams
Posted 3-Nov-2023 10:42


Super Mario Bros. Wonder Launches on Nintendo Switch
Posted 24-Oct-2023 10:56


Google Releases Nest WiFi Pro in New Zealand
Posted 24-Oct-2023 10:18









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.







NordVPN