public class OsGridRef extends Object
| Constructor and Description |
|---|
OsGridRef(double easting,
double northing) |
OsGridRef(long easting,
long northing) |
| Modifier and Type | Method and Description |
|---|---|
String |
format(int digits)
Return as a grid reference string to given total digit precision (i.e.
|
static OsGridRef |
fromLatLon(LatLonE point)
Create grid reference from OSGB36 or WGS84 lat, lon
|
static OsGridRef |
fromLatLonOSGB36(LatLonE point)
Create grid reference from OSGB36 lat, lon
|
long |
getEasting() |
long |
getNorthing() |
static OsGridRef |
parse(String gridref)
Parse grid reference to easting/northing form
|
LatLonE |
toLatLon()
Return as a lat lon point in WGS84
|
LatLonE |
toLotLonOSGB36()
Return as a lat lon point in OSGB36
|
public OsGridRef(long easting,
long northing)
public OsGridRef(double easting,
double northing)
public long getEasting()
public long getNorthing()
public String format(int digits)
public static OsGridRef fromLatLon(LatLonE point)
public static OsGridRef fromLatLonOSGB36(LatLonE point)
public LatLonE toLotLonOSGB36()
public LatLonE toLatLon()
Copyright © 2015. All rights reserved.