Hi Thomas,
> I am trying to compute an Azimuth between two points with as reference, not
> the geographic north, but the north of the map projection (in french, this
> kind of azimuth is called "Gisement" but I didn't find the english word !).
It's commonly called "grid north"
> I can't find how to do that... If somebody can help, it would be great !
If you working with a Cartesian projection (e.g. UTM) and your data
are uncomplicated (e.g. all location pairs within the same zone) it's
just a trig calculation. Here's one way to do it...
double atan = Math.atan2(y1 - y0, x1 - x0) * 180.0 / Math.PI;
double azimuth = (450.0 - atan) % 360;
There's bound to be a method in GeoTools that does this but I haven't
found it :-)
I'm not sure if I've answered the question that you were asking - if
not, please get back to us.
Michael
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users