|
|
Hi(gh)!
This is not a truly POV-Ray-related question, but rather a geographical
one... it seems to be hopeless to google for it, so I try it here.
The problem: UTM data tiles provide only grid-east and grid-north
values, usually in metres. When reading in those data from ASCII files,
I need to know an algorithm to calculate latitudes and longitudes. For
example:
32342000.00,5658000.00,45.11 (one measuring point)
The value in the first column is grid-east (longitude) and first has to
be clipped to 342000.00 (the "32" indicates the UTM zone) and then
500000.00 has to be subtracted, which translates to -158000 metres east
(i. e. 158000 metres west) from the reference meridian, which is 9° E.
The second column contains the distance to the equator (grid-north) -
but as due to the Earth's flattening, latitudes are not equally spaced,
I have no clue how to calculate the accurate latitude from something
like 5658000.00 - and seemingly, in the entire Internet, only automatic
calculation services can be found, but not the very algorithm!
Should I better content myself with stupid flat landscapes not following
the curvature of Earth and derived from manually pixeled topographic maps?
Programming hurts!!!
See you in Khyberspace!
Yadgar
Post a reply to this message
|
|