Class GeodeticCoordinate
java.lang.Object
org.episteme.natural.earth.coordinates.GeodeticCoordinate
- All Implemented Interfaces:
GeometricObject<EarthCoordinate>, Positioned<EarthCoordinate>, EarthCoordinate
Represents a point on the Earth defined by latitude, longitude, and height.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
ConstructorsConstructorDescriptionGeodeticCoordinate(double latDeg, double lonDeg) Creates a coordinate from latitude and longitude in degrees (height = 0).GeodeticCoordinate(double latDeg, double lonDeg, double hMeters) GeodeticCoordinate(Quantity<Angle> latitude, Quantity<Angle> longitude, Quantity<Length> height, ReferenceEllipsoid ellipsoid) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the dimension of the ambient space containing this object.Returns a human-readable description of this geometric object.intReturns the intrinsic dimension of this geometric object.Returns the coordinate system name (e.g., "WGS84", "UTM", "MGRS").Returns the reference ellipsoid used by this coordinate.Calculates the internal radius of curvature in the prime vertical (N).toECEF()Converts to Earth-Centered, Earth-Fixed (ECEF) Cartesian coordinates.Converts this coordinate to geodetic (lat/lon/height) form.toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface EarthCoordinate
distanceTo, getPosition
-
Constructor Details
-
GeodeticCoordinate
-
GeodeticCoordinate
public GeodeticCoordinate(double latDeg, double lonDeg, double hMeters) -
GeodeticCoordinate
public GeodeticCoordinate(double latDeg, double lonDeg) Creates a coordinate from latitude and longitude in degrees (height = 0).
-
-
Method Details
-
getLatitude
-
getLongitude
-
getHeight
-
getEllipsoid
Description copied from interface:EarthCoordinateReturns the reference ellipsoid used by this coordinate.- Specified by:
getEllipsoidin interfaceEarthCoordinate- Returns:
- the ellipsoid model
-
getPrimeVerticalRadius
Calculates the internal radius of curvature in the prime vertical (N). N = a / sqrt(1 - e^2 * sin^2(phi))- Returns:
- N as Real
-
toECEF
Converts to Earth-Centered, Earth-Fixed (ECEF) Cartesian coordinates. Uses Real for all intermediate products to prevent rounding drift.- Specified by:
toECEFin interfaceEarthCoordinate- Returns:
- ECEFCoordinate [X, Y, Z]
-
getCoordinateSystem
Description copied from interface:EarthCoordinateReturns the coordinate system name (e.g., "WGS84", "UTM", "MGRS").- Specified by:
getCoordinateSystemin interfaceEarthCoordinate- Returns:
- the coordinate system identifier
-
toGeodetic
Description copied from interface:EarthCoordinateConverts this coordinate to geodetic (lat/lon/height) form.- Specified by:
toGeodeticin interfaceEarthCoordinate- Returns:
- the geodetic representation
-
dimension
public int dimension()Description copied from interface:GeometricObjectReturns the intrinsic dimension of this geometric object.Examples:
- Point: 0
- Line/Segment: 1
- Plane/Surface: 2
- Volume: 3
- Specified by:
dimensionin interfaceEarthCoordinate- Specified by:
dimensionin interfaceGeometricObject<EarthCoordinate>- Returns:
- the dimension
-
ambientDimension
public int ambientDimension()Description copied from interface:GeometricObjectReturns the dimension of the ambient space containing this object.For example, a 2D plane in 3D space has dimension=2 but ambientDimension=3.
- Specified by:
ambientDimensionin interfaceEarthCoordinate- Specified by:
ambientDimensionin interfaceGeometricObject<EarthCoordinate>- Returns:
- the ambient space dimension
-
description
Description copied from interface:GeometricObjectReturns a human-readable description of this geometric object.- Specified by:
descriptionin interfaceEarthCoordinate- Specified by:
descriptionin interfaceGeometricObject<EarthCoordinate>- Returns:
- description string
-
toString
-