energyplug / geobeagle

Automatically exported from code.google.com/p/geobeagle
0 stars 0 forks source link

Project waypoints #34

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
From the mailing list:

Is there any way to projectct waypoints? For example...

Cache says to stand at coordinates and project a waypoint at 50
degrees 375 feet.

Being able to do this would save a whole lot of counting off paces.
Maybe it could be added to the "edit cache" page?

Original issue reported on code.google.com by stephen5...@gmail.com on 22 May 2009 at 3:28

GoogleCodeExporter commented 8 years ago

Original comment by stephen5...@gmail.com on 22 May 2009 at 3:30

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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