Class CoordinateConverter
java.lang.Object
org.episteme.natural.earth.coordinates.CoordinateConverter
High-level utility for seamless coordinate conversions.
Supports Geodetic, ECEF, UTM, MGRS, and Topocentric systems.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LambertAzimuthalEqualAreaCoordinate.LAEAParametersParameters for the Lambert Azimuthal Equal-Area projection centered on Europe.static final BonneCoordinate.BonneParametersParameters for the Bonne projection as used for the French "Carte de l'État-Major".static final CassiniSoldnerCoordinate.CassiniParametersParameters for the Cassini-Soldner projection used by the UK Ordnance Survey (e.g., for the Great Britain National Grid). -
Method Summary
Modifier and TypeMethodDescriptionstatic GeodeticCoordinatefromECEF(ECEFCoordinate ecef) Converts ECEF to Geodetic.static GeodeticCoordinatefromUTM(UTMCoordinate utm) Converts UTM back to Geodetic.static AlbersEqualAreaCoordinatetoAlbers(GeodeticCoordinate geodetic, AlbersEqualAreaCoordinate.AlbersParameters params) Converts a geodetic point to Albers Equal-Area Conic.static BonneCoordinatetoBonne(GeodeticCoordinate geodetic, BonneCoordinate.BonneParameters params) Converts a geodetic point to Bonne.static CassiniSoldnerCoordinatetoCassini(GeodeticCoordinate geodetic, CassiniSoldnerCoordinate.CassiniParameters params) Converts a geodetic point to Cassini-Soldner.static ECEFCoordinatetoECEF(GeodeticCoordinate geodetic) Converts a geodetic point to ECEF XYZ.toLAEA(GeodeticCoordinate geodetic, LambertAzimuthalEqualAreaCoordinate.LAEAParameters params) Converts a geodetic point to Lambert Azimuthal Equal-Area.toLambert(GeodeticCoordinate geodetic, LambertConformalConicCoordinate.LCCParams params) Converts a geodetic point to Lambert Conformal Conic.static AERCoordinatetoLocalAER(GeodeticCoordinate target, GeodeticCoordinate observer) Converts a target geodetic point to local AER (Azimuth, Elevation, Range) relative to an observer.static ENUCoordinatetoLocalENU(GeodeticCoordinate target, GeodeticCoordinate observer) Converts a target geodetic point to local ENU relative to an observer.static MercatorCoordinatetoMercator(GeodeticCoordinate geodetic, boolean webMercator) Converts a geodetic point to Mercator.static MGRSCoordinatetoMGRS(GeodeticCoordinate geodetic) Converts a geodetic point to MGRS.static PolyconicCoordinatetoPolyconic(GeodeticCoordinate geodetic, PolyconicCoordinate.PolyconicParameters params) Converts a geodetic point to Polyconic.static UPSCoordinatetoUPS(GeodeticCoordinate geodetic) Converts a geodetic point to UPS (Universal Polar Stereographic).static UTMCoordinatetoUTM(GeodeticCoordinate geodetic) Converts a geodetic point to UTM.
-
Field Details
-
EUROPE_LAEA
Parameters for the Lambert Azimuthal Equal-Area projection centered on Europe. -
FRANCE_STATE_MAJOR_BONNE
Parameters for the Bonne projection as used for the French "Carte de l'État-Major". -
UK_ORDNANCE_SURVEY_CASSINI
Parameters for the Cassini-Soldner projection used by the UK Ordnance Survey (e.g., for the Great Britain National Grid).
-
-
Method Details
-
toAlbers
public static AlbersEqualAreaCoordinate toAlbers(GeodeticCoordinate geodetic, AlbersEqualAreaCoordinate.AlbersParameters params) Converts a geodetic point to Albers Equal-Area Conic. -
toCassini
public static CassiniSoldnerCoordinate toCassini(GeodeticCoordinate geodetic, CassiniSoldnerCoordinate.CassiniParameters params) Converts a geodetic point to Cassini-Soldner. -
toPolyconic
public static PolyconicCoordinate toPolyconic(GeodeticCoordinate geodetic, PolyconicCoordinate.PolyconicParameters params) Converts a geodetic point to Polyconic. -
toLAEA
public static LambertAzimuthalEqualAreaCoordinate toLAEA(GeodeticCoordinate geodetic, LambertAzimuthalEqualAreaCoordinate.LAEAParameters params) Converts a geodetic point to Lambert Azimuthal Equal-Area. -
toBonne
public static BonneCoordinate toBonne(GeodeticCoordinate geodetic, BonneCoordinate.BonneParameters params) Converts a geodetic point to Bonne. -
toLambert
public static LambertConformalConicCoordinate toLambert(GeodeticCoordinate geodetic, LambertConformalConicCoordinate.LCCParams params) Converts a geodetic point to Lambert Conformal Conic. -
toMercator
Converts a geodetic point to Mercator. -
toUPS
Converts a geodetic point to UPS (Universal Polar Stereographic). -
toUTM
Converts a geodetic point to UTM. -
toMGRS
Converts a geodetic point to MGRS. -
toECEF
Converts a geodetic point to ECEF XYZ. -
toLocalENU
Converts a target geodetic point to local ENU relative to an observer. -
toLocalAER
Converts a target geodetic point to local AER (Azimuth, Elevation, Range) relative to an observer. -
fromECEF
Converts ECEF to Geodetic. -
fromUTM
Converts UTM back to Geodetic.
-