Package uk.co.mccombe.mapping
Class IrishGrid
java.lang.Object
uk.co.mccombe.mapping.CoordinateSystem
uk.co.mccombe.mapping.Projection
uk.co.mccombe.mapping.TransverseMercator
uk.co.mccombe.mapping.IrishGrid
Implementation of the Irish Grid. Note that this is used throughout the island of Ireland,
North and South and that the OSGB grid is not applicable.
For a complete description of the Irish Grid, see http://www.osni.gov.uk/2.1_the_irish_grid.pdf
-
Field Summary
Fields inherited from class uk.co.mccombe.mapping.TransverseMercator
northernHemisphere, zone
Fields inherited from class uk.co.mccombe.mapping.CoordinateSystem
locus, ref, sph
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new IrishGrid point for a specific pair of Eastings and Northings.Create a new IrishGrid point for a specific pair of Eastings and Northings, Ellipsoid and Datum.Create a new IrishGrid point for a specific Position, Ellipsoid and Datum. -
Method Summary
Modifier and TypeMethodDescriptionDefines the default Datum for this systemDefine the default Ellipsoid for this systemdouble
e0()
False Eastimg (metres)double
f0()
Define scale factordouble
lamda0()
The central meridianstatic IrishGrid
Factory method to create a new IrishGrid point using a String containing a grid reference.double
n0()
Define false northingdouble
phi0()
Define latitude of true origintoString()
Provide a String representation for this IrishGridprotected static boolean
validateEN
(ENPair p) Methods inherited from class uk.co.mccombe.mapping.TransverseMercator
gridConvergence, pointScaleFactor, toEN
Methods inherited from class uk.co.mccombe.mapping.CoordinateSystem
getDatum, getEllipsoid, getName, getPosition, getWGS84, parseDouble, toLatLong, toLatLongString
-
Constructor Details
-
IrishGrid
Create a new IrishGrid point for a specific Position, Ellipsoid and Datum.- Parameters:
p
- Positione
- Ellipsoid to use with this instanced
- Datum to use
-
IrishGrid
Create a new IrishGrid point for a specific pair of Eastings and Northings, Ellipsoid and Datum.- Parameters:
point
- ENPair containing the easting and northing valuese
- Ellipsoid to use with this instanced
- Datum to use
-
IrishGrid
Create a new IrishGrid point for a specific pair of Eastings and Northings. Default values of Ellipsoid and Datum are used.- Parameters:
point
- ENPair containing the easting and northing values
-
-
Method Details
-
makePoint
Factory method to create a new IrishGrid point using a String containing a grid reference.- Parameters:
gridref
- A valid Irish grid reference String (e.g. R 212 712)e
- Ellipsoid to used
- Datum to use- Returns:
- A new IrishGrid point for the specified point, Ellipsoid and Datum
- Throws:
GridFormatException
- In case of syntax error in he grid reference
-
defaultDatum
Defines the default Datum for this system- Specified by:
defaultDatum
in classCoordinateSystem
- Returns:
- Datum.Ireland_1965
-
defaultEllipsoid
Define the default Ellipsoid for this system- Specified by:
defaultEllipsoid
in classCoordinateSystem
- Returns:
- Ellipsoid.MODIFIED_AIRY
-
toString
Provide a String representation for this IrishGrid- Specified by:
toString
in classCoordinateSystem
- Returns:
- A 10-figure Irish grid reference, with grid letter (e.g. R 21235 71262)
-
lamda0
public double lamda0()The central meridian- Specified by:
lamda0
in classTransverseMercator
- Returns:
- The central meridian (degrees)
-
e0
public double e0()False Eastimg (metres)- Specified by:
e0
in classTransverseMercator
- Returns:
- False easting value (metres)
-
n0
public double n0()Define false northing- Specified by:
n0
in classTransverseMercator
- Returns:
- False northing value (metres)
-
phi0
public double phi0()Define latitude of true origin- Specified by:
phi0
in classTransverseMercator
- Returns:
- Latitude of true origin (degrees)
-
f0
public double f0()Define scale factor- Specified by:
f0
in classTransverseMercator
- Returns:
- Scale factor at central meridian
-
validateEN
-