public static double getMetersAsWGS84 ( double meters , Coordinate c ) { GeodeticCalculator gc = new GeodeticCalculator ( DefaultGeographicCRS . WGS84 ) ; gc . setStartingGeographicPoint ( c . x , c . y ) ; gc . setDirection ( 90 , meters ) ; Point2D destinationGeographicPoint = gc . getDestinationGeographicPoint ( ) ; double degrees = Math . abs ( destinationGeographicPoint . getX ( ) - c . x ) ; return degrees ; }
Converts meters to degrees based on a given coordinate in 90 degrees direction .