Package mccombe.mapping
Class IrishGrid
- java.lang.Object
-
- mccombe.mapping.CoordinateSystem
-
- mccombe.mapping.Projection
-
- mccombe.mapping.TransverseMercator
-
- mccombe.mapping.IrishGrid
-
public class IrishGrid extends TransverseMercator
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 mccombe.mapping.TransverseMercator
northernHemisphere, zone
-
Fields inherited from class mccombe.mapping.CoordinateSystem
locus, ref, sph
-
-
Constructor Summary
Constructors Constructor Description IrishGrid(ENPair point)
Create a new IrishGrid point for a specific pair of Eastings and Northings.IrishGrid(ENPair point, Ellipsoid e, Datum d)
Create a new IrishGrid point for a specific pair of Eastings and Northings, Ellipsoid and Datum.IrishGrid(Position p, Ellipsoid e, Datum d)
Create a new IrishGrid point for a specific Position, Ellipsoid and Datum.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Datum
defaultDatum()
Defines the default Datum for this systemEllipsoid
defaultEllipsoid()
Define the default Ellipsoid for this systemdouble
e0()
False Eastimg (metres)double
f0()
Define scale factordouble
lamda0()
The central meridianstatic IrishGrid
makePoint(java.lang.String gridref, Ellipsoid e, Datum d)
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 originjava.lang.String
toString()
Provide a String representation for this IrishGridprotected static boolean
validateEN(ENPair p)
-
Methods inherited from class mccombe.mapping.TransverseMercator
gridConvergence, pointScaleFactor, toEN
-
Methods inherited from class mccombe.mapping.CoordinateSystem
getDatum, getEllipsoid, getName, getPosition, getWGS84, parseDouble, toLatLong, toLatLongString
-
-
-
-
Constructor Detail
-
IrishGrid
public IrishGrid(Position p, Ellipsoid e, Datum d)
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
public IrishGrid(ENPair point, Ellipsoid e, Datum d)
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
public IrishGrid(ENPair point)
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 Detail
-
makePoint
public static IrishGrid makePoint(java.lang.String gridref, Ellipsoid e, Datum d) throws GridFormatException
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
public Datum defaultDatum()
Defines the default Datum for this system- Specified by:
defaultDatum
in classCoordinateSystem
- Returns:
- Datum.Ireland_1965
-
defaultEllipsoid
public Ellipsoid defaultEllipsoid()
Define the default Ellipsoid for this system- Specified by:
defaultEllipsoid
in classCoordinateSystem
- Returns:
- Ellipsoid.MODIFIED_AIRY
-
toString
public java.lang.String 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
protected static boolean validateEN(ENPair p)
-
-