How can I convert the from Latitude/Longitude to Lambert Conic Conformal using SQL?
I've been working on project that will require me to convert between NZTM And LCC projections. It's related to this post.
LINZ don't provide a formula to convert directly between NZTM and LCC, but both can be converted to/from Lat/Long. I've been very fortunate in getting some help with the NZTM conversion and am now working on the LCC conversion.
Best Answer
The following SQL code is an implementation of the projection conversion formulas provided by LINZ. I'm sharing here in the hope it may help someone else.
To convert from Lat/Long to LCC:
To Convert back:
The 2nd formula uses an iterative loop to achieve convergence.