public class ChinaGpsOffset
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ChinaGpsOffset.LatLon
This simple inner class created so don't depend
on other existing class that is for use with db.
|
Constructor and Description |
---|
ChinaGpsOffset() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
static boolean |
outOfChina(double lat,
double lon)
Returns true if the lat/lon specified is within a rectangle that
very roughly describes China.
|
static ChinaGpsOffset.LatLon |
transform(double wgLat,
double wgLon)
World Geodetic System ==> Mars Geodetic System.
|
static ChinaGpsOffset.LatLon |
transformBack(double marsLat,
double marsLon)
Mars Geodetic System ==> World Geodetic System.
|
public static ChinaGpsOffset.LatLon transform(double wgLat, double wgLon)
wgLat
- wgLon
- public static ChinaGpsOffset.LatLon transformBack(double marsLat, double marsLon)
marsLat
- marsLon
- public static boolean outOfChina(double lat, double lon)
lat
- lon
- public static void main(java.lang.String[] args)