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, zoneFields 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 systemdoublee0()False Eastimg (metres)doublef0()Define scale factordoublelamda0()The central meridianstatic IrishGridFactory method to create a new IrishGrid point using a String containing a grid reference.doublen0()Define false northingdoublephi0()Define latitude of true origintoString()Provide a String representation for this IrishGridprotected static booleanvalidateEN(ENPair p) Methods inherited from class uk.co.mccombe.mapping.TransverseMercator
gridConvergence, pointScaleFactor, toENMethods 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:
defaultDatumin classCoordinateSystem- Returns:
- Datum.Ireland_1965
-
defaultEllipsoid
Define the default Ellipsoid for this system- Specified by:
defaultEllipsoidin classCoordinateSystem- Returns:
- Ellipsoid.MODIFIED_AIRY
-
toString
Provide a String representation for this IrishGrid- Specified by:
toStringin 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:
lamda0in classTransverseMercator- Returns:
- The central meridian (degrees)
-
e0
public double e0()False Eastimg (metres)- Specified by:
e0in classTransverseMercator- Returns:
- False easting value (metres)
-
n0
public double n0()Define false northing- Specified by:
n0in classTransverseMercator- Returns:
- False northing value (metres)
-
phi0
public double phi0()Define latitude of true origin- Specified by:
phi0in classTransverseMercator- Returns:
- Latitude of true origin (degrees)
-
f0
public double f0()Define scale factor- Specified by:
f0in classTransverseMercator- Returns:
- Scale factor at central meridian
-
validateEN
-