public class GeoPoint extends Object
| Constructor and Description |
|---|
GeoPoint(LatLonE point) |
GeoPoint(OsGridRef gridref) |
| Modifier and Type | Method and Description |
|---|---|
static GeoPoint |
fromEastingNorthing(double easting,
double northing)
Construct point from OS easting/northing pair
|
static GeoPoint |
fromEastingNorthing(long easting,
long northing)
Construct point from OS easting/northing pair
|
static GeoPoint |
fromGridRef(String gridref)
Construct point from OS grid reference
|
static GeoPoint |
fromLatLon(double lat,
double lon)
Construct point from lat lon pair in WGS84 CRS.
|
static GeoPoint |
fromLatLonOSGB36(double lat,
double lon)
Construct point from lat lon pair in OSGB36 CRS.
|
long |
getEasting()
Return OS easting
|
OsGridRef |
getGridRef()
Return as a grid reference
|
String |
getGridRefString()
Return OS grid reference string
|
String |
getGridRefString(int digits)
Return OS grid reference with the given number of digit precision (10 = full precision, 5 digits for each numeric part)
|
double |
getLat()
Return WGS84 latitude
|
org.apache.jena.rdf.model.RDFNode |
getLatLiteral()
Return WGS84 latitude as RDF literal
|
LatLonE |
getLatLon()
Return as lat lon WGS84 point
|
double |
getLon()
Return WGS84 longitude
|
org.apache.jena.rdf.model.RDFNode |
getLonLiteral()
Return WGS84 longitude as RDF literal
|
long |
getNorthing()
Return OS northing
|
public GeoPoint(LatLonE point)
public GeoPoint(OsGridRef gridref)
public static GeoPoint fromLatLon(double lat, double lon)
public static GeoPoint fromLatLonOSGB36(double lat, double lon)
public static GeoPoint fromEastingNorthing(long easting, long northing)
public static GeoPoint fromEastingNorthing(double easting, double northing)
public static GeoPoint fromGridRef(String gridref)
public LatLonE getLatLon()
public OsGridRef getGridRef()
public double getLat()
public double getLon()
public org.apache.jena.rdf.model.RDFNode getLatLiteral()
public org.apache.jena.rdf.model.RDFNode getLonLiteral()
public long getEasting()
public long getNorthing()
public String getGridRefString()
public String getGridRefString(int digits)
Copyright © 2019. All rights reserved.