S
Simon Brooke
Patricia said:If your current problem is mainly local walking, you can do a temporary
flat-Earth approximation to use until you get your atan2 working.
Do spherical geometry, in a full Java environment, to get the surface
distance corresponding to a degree of latitude and longitude in your
area. If you approximate to a sphere, the latitude distance is a
constant, and only longitude depends on location.
Pick an arbitrary local origin, and calculate flat Earth cartesian
coordinates relative to it by multiplying the differences longitude and
latitude by the conversion factors.
I agree that's a pragmatic approach, but I dislike special-case solutions.
The thing ought to work anywhere. I'll get there; enough kind people have
given me enough good approaches to work on.
--
(e-mail address removed) (Simon Brooke) http://www.jasmine.org.uk/~simon/
.::;===r==\
/ /___||___\____
//==\- ||- | /__\( MS Windows IS an operating environment.
//____\__||___|_// \|: C++ IS an object oriented programming language.
\__/ ~~~~~~~~~ \__/ Citroen 2cv6 IS a four door family saloon.