Class GeoLocation
- All Implemented Interfaces:
AutoCloseable
GeoLocation represents a location and orientation on the globe.
It allows you to convert local coordinates into georeferenced coordinates using an affine 3D transformation.
The local Z-axis is the up direction, and will be mapped as perpendicular to the Earth. The local XY-plane is mapped tangentially to the Earth's ellipsoidal surface.
With an azimuth of 0, the local Y-axis is mapped to the north direction, and the local X-axis to the east direction (both still tangential to the Earth). This is commonly also referred to as an ENU (East-North-Up) projection.
- Since:
- 2026.1
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanprotected voidfinalize()Returns the point in the local reference that, once transformed, will correspond to the target location.Returns the transformation matrix.Returns the target location to which the local origin will be transformed.Returns the target reference of this transformation.inthashCode()Returns the hash of thisGeoLocation.static GeoLocation.BuilderCreates a new builder.
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
newBuilder
Creates a new builder.- Returns:
- a new builder.
-
getLocalOrigin
Returns the point in the local reference that, once transformed, will correspond to the target location.- Returns:
- the point in the local reference that, once transformed, will correspond to the target location.
-
getTargetLocation
Returns the target location to which the local origin will be transformed.Note: this
Pointdoes not necessarily have the same reference as thetarget reference. For example, it is possible that theGeoLocation's target reference is geocentric, and the target location is expressed in longitude/latitude/height.- Returns:
- the target location to which the local origin will be transformed.
-
getTargetReference
Returns the target reference of this transformation.This is the reference in which the points returned by
Matrix4x4#transformPointare defined.Note: this reference is not necessarily the same as the
target location's reference. For example, it is possible that theGeoLocation's target reference is geocentric, and the target location is expressed in longitude/latitude/height.- Returns:
- the target reference of this transformation.
-
getMatrix
Returns the transformation matrix.You can use this matrix to
transformfrom points in the local reference, to points in thetarget reference.- Returns:
- the transformation matrix.
-
hashCode
public int hashCode()Returns the hash of thisGeoLocation.- Overrides:
hashCodein classObject- Returns:
- the hash of this
GeoLocation.
-
equals
-