Package com.epimorphics.geo
Class GeoPoint
- java.lang.Object
-
- com.epimorphics.geo.GeoPoint
-
public class GeoPoint extends Object
A geographic point identified by an OS grid reference lat lon.- Author:
- Dave Reynolds
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GeoPointfromEastingNorthing(double easting, double northing)Construct point from OS easting/northing pairstatic GeoPointfromEastingNorthing(long easting, long northing)Construct point from OS easting/northing pairstatic GeoPointfromGridRef(String gridref)Construct point from OS grid referencestatic GeoPointfromLatLon(double lat, double lon)Construct point from lat lon pair in WGS84 CRS.static GeoPointfromLatLonOSGB36(double lat, double lon)Construct point from lat lon pair in OSGB36 CRS.longgetEasting()Return OS eastingOsGridRefgetGridRef()Return as a grid referenceStringgetGridRefString()Return OS grid reference stringStringgetGridRefString(int digits)Return OS grid reference with the given number of digit precision (10 = full precision, 5 digits for each numeric part)doublegetLat()Return WGS84 latitudeorg.apache.jena.rdf.model.RDFNodegetLatLiteral()Return WGS84 latitude as RDF literalLatLonEgetLatLon()Return as lat lon WGS84 pointdoublegetLon()Return WGS84 longitudeorg.apache.jena.rdf.model.RDFNodegetLonLiteral()Return WGS84 longitude as RDF literallonggetNorthing()Return OS northing
-
-
-
Method Detail
-
fromLatLon
public static GeoPoint fromLatLon(double lat, double lon)
Construct point from lat lon pair in WGS84 CRS.
-
fromLatLonOSGB36
public static GeoPoint fromLatLonOSGB36(double lat, double lon)
Construct point from lat lon pair in OSGB36 CRS.
-
fromEastingNorthing
public static GeoPoint fromEastingNorthing(long easting, long northing)
Construct point from OS easting/northing pair
-
fromEastingNorthing
public static GeoPoint fromEastingNorthing(double easting, double northing)
Construct point from OS easting/northing pair
-
fromGridRef
public static GeoPoint fromGridRef(String gridref)
Construct point from OS grid reference
-
getLatLon
public LatLonE getLatLon()
Return as lat lon WGS84 point
-
getGridRef
public OsGridRef getGridRef()
Return as a grid reference
-
getLat
public double getLat()
Return WGS84 latitude
-
getLon
public double getLon()
Return WGS84 longitude
-
getLatLiteral
public org.apache.jena.rdf.model.RDFNode getLatLiteral()
Return WGS84 latitude as RDF literal
-
getLonLiteral
public org.apache.jena.rdf.model.RDFNode getLonLiteral()
Return WGS84 longitude as RDF literal
-
getEasting
public long getEasting()
Return OS easting
-
getNorthing
public long getNorthing()
Return OS northing
-
getGridRefString
public String getGridRefString()
Return OS grid reference string
-
getGridRefString
public String getGridRefString(int digits)
Return OS grid reference with the given number of digit precision (10 = full precision, 5 digits for each numeric part)
-
-