Open GoogleCodeExporter opened 8 years ago
Original comment by stephen5...@gmail.com
on 22 May 2009 at 3:30
maybe it would make sense to have a menu item on the cache page, where you can
creating projections and store them with the cache together with a name.
The dialog could start with the current location (editable) and then allow to
set
bearing and distance.
There would only be the question of correct spheric prjection though, which is
not
available as function as far as I have seen.
Original comment by jahwe2...@gmail.com
on 5 Jul 2009 at 7:05
I have just discovered this:
http://svn.berlios.de/wsvn/cachewolf/trunk/src/CacheWolf/navi/GeodeticCalculator
.java
The GeodeticCalculator class allows the calculation for the projection. It is
integrated in CacheWolf here, but has been developed seperately and may be
freely used.
The projection can be called like this:
/**
* Method to calculate a projected waypoint
* @param degrees Bearing
* @param distance Distance in km
* @return projected waypoint
*/
public CWPoint project(double degrees, double distance){
return new CWPoint(
GeodeticCalculator.calculateEndingGlobalCoordinates(TransformCoordinates.WGS84,
this,
degrees, distance * 1000.0) );
}
Original comment by jahwe2...@gmail.com
on 17 Aug 2009 at 2:15
Original issue reported on code.google.com by
stephen5...@gmail.com
on 22 May 2009 at 3:28