|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.geometry.projection.Nad2Nad
public class Nad2Nad
Ported, copied, and outright stolen (legally!) from proj. See cleanslate/tools/nad2bin.py for the tool to make the regions file.
Copyright 2004-2009 Partner Software
| Method Summary | |
|---|---|
Point |
nad27ToNad83(double longitudeDegrees,
double latitudeDegrees)
Synchronized because the Packrat reader it uses is not thread-safe (I think?). |
Point |
nad83ToNad27(double longitudeDegrees,
double latitudeDegrees)
Synchronized because the Packrat reader it uses is not thread-safe (I think?). |
static Nad2Nad |
singleton()
This is synchronized because it can get called from the GPS device thread and the GUI thread, and there is a race condition where both threads see that instance is null and initialize it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Nad2Nad singleton()
This is synchronized because it can get called from the GPS device thread and the GUI thread, and there is a race condition where both threads see that instance is null and initialize it. The double initialization was causing some strange errors. You wanna see the errors? You wanna know what they are? You can't handle them. They are too much. Too, too much.
public Point nad27ToNad83(double longitudeDegrees,
double latitudeDegrees)
Synchronized because the Packrat reader it uses is not thread-safe (I think?).
longitudeDegrees - latitudeDegrees -
public Point nad83ToNad27(double longitudeDegrees,
double latitudeDegrees)
Synchronized because the Packrat reader it uses is not thread-safe (I think?).
longitudeDegrees - latitudeDegrees -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||