[geotk] Meter convertion in Geographic CRS

theuns theunsheydenrych at gmail.com
Thu Sep 17 09:43:57 EDT 2009


Thanks Martin 
Exactly what i looked for thanks

On Thu, 2009-09-17 at 15:33 +0200, Martin Desruisseaux wrote:
> theuns a écrit :
> > How would one go about to convert say 100m to a length in decimal
> > degrees?
> 
> It depends if you want degrees or latitude or degrees of longitude. In the later 
> case, it additionnaly depends on your location on Earth (to be more specific, on 
> your latitude).
> 
> You can try GeodeticCalculator again. Use:
> 
>    setStartingPosition(P1);
>    setDirection(azimuth, distance);
>    P2 = getDestinationPosition();
>    deltaLongitude = P2.x - P1.x;
>    deltaLatitude  = P2.y - P1.y;
> 
> Use an azimuth of 0° for a difference in degrees of latitudes, or an azimuth of 
> 90° for a difference in degrees of longituge, or an other angle for a 
> combinaison of both.
> 
> 	Martin



More information about the Geotoolkit mailing list