Navigation
API > API/Plugins > API/Plugins/GeoReferencing
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- AActor
- AInfo
- AGeoReferencingSystem
References
| Module | GeoReferencing |
| Header | /Engine/Plugins/Runtime/GeoReferencing/Source/GeoReferencing/Public/GeoReferencingSystem.h |
| Include | #include "GeoReferencingSystem.h" |
Syntax
UCLASS&40;HideCategories&61;&40;Transform, Replication, Actor, Cooking&41;&41;
class AGeoReferencingSystem : public AInfo
Remarks
This AInfos enable you to define a correspondance between the UE origin and an actual geographic location on a planet Once done it offers different functions to convert coordinates between UE and Geographic coordinates
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bOriginAtPlanetCenter | If true, the UE origin is located at the Planet Center, otherwise, the UE origin is assuming to be defined at one specific point of the planet surface, defined by the properties below. | |
| bool | bOriginLocationInProjectedCRS | If true, the UE origin georeference is expressed in the PROJECTED CRS. | |
| FString | GeographicCRS | String that describes the GEOGRAPHIC CRS of choice. | |
| double | OriginAltitude | Altitude of UE Origin on planet | |
| double | OriginLatitude | Latitude of UE Origin on planet | |
| double | OriginLongitude | Longitude of UE Origin on planet | |
| double | OriginProjectedCoordinatesEasting | Easting position of UE Origin on planet, express in the Projected CRS Frame | |
| double | OriginProjectedCoordinatesNorthing | Northing position of UE Origin on planet, express in the Projected CRS Frame | |
| double | OriginProjectedCoordinatesUp | Up position of UE Origin on planet, express in the Projected CRS Frame | |
| EPlanetShape | PlanetShape | This mode has to be set consistently with the way you authored your ground geometry. | |
| FString | ProjectedCRS | String that describes the PROJECTED CRS of choice. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
AGeoReferencingSystem
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | In case you want to change the Origin or CRS definition properties during application execution, you need to call this function to update the internal transformation cache. | ||
| void | ECEFToEngine
(
const FVector& ECEFCoordinates, |
Convert a Vector expressed in ECEF CRS to ENGINE space | |
| void | ECEFToGeographic
(
const FVector& ECEFCoordinates, |
Convert a Coordinate expressed in ECEF CRS to GEOGRAPHIC CRS | |
| void | ECEFToProjected
(
const FVector& ECEFCoordinates, |
Convert a Coordinate expressed in ECEF CRS to PROJECTED CRS | |
| void | EngineToECEF
(
const FVector& EngineCoordinates, |
Convert a Vector expressed in ENGINE space to the ECEF CRS | |
| void | EngineToGeographic
(
const FVector& EngineCoordinates, |
Convert a Vector expressed in ENGINE space to the GEOGRAPHIC CRS | |
| void | EngineToProjected
(
const FVector& EngineCoordinates, |
Convert a Vector expressed in ENGINE space to the PROJECTED CRS | |
| void | GeographicToECEF
(
const FGeographicCoordinates& GeographicCoordinates, |
Convert a Coordinate expressed in GEOGRAPHIC CRS to ECEF CRS | |
| void | GeographicToEngine
(
const FGeographicCoordinates& GeographicCoordinates, |
Convert a Vector expressed in GEOGRAPHIC CRS to ENGINE space | |
| void | GeographicToProjected
(
const FGeographicCoordinates& GeographicCoordinates, |
Convert a Coordinate expressed in GEOGRAPHIC CRS to PROJECTED CRS | |
| void | GetECEFENUVectorsAtECEFLocation
(
const FVector& ECEFCoordinates, |
Get the East North Up vectors at a specific location - Not in engine frame, but in pure ECEF Frame ! | |
| void | GetENUVectorsAtECEFLocation
(
const FVector& ECEFCoordinates, |
Get the East North Up vectors at a specific location | |
| void | GetENUVectorsAtEngineLocation
(
const FVector& EngineCoordinates, |
Get the East North Up vectors at a specific location | |
| void | GetENUVectorsAtGeographicLocation
(
const FGeographicCoordinates& GeographicCoordinates, |
Get the East North Up vectors at a specific location | |
| void | GetENUVectorsAtProjectedLocation
(
const FVector& ProjectedCoordinates, |
Get the East North Up vectors at a specific location | |
| double | Find the underlying Geographic CRS Ellipsoid and return its maximum radius | ||
| double | Find the underlying Geographic CRS Ellipsoid and return its minimum radius | ||
| AGeoReferencingSystem * | GetGeoReferencingSystem
(
UObject* WorldContextObject |
||
| FTransform | Set this transform to an Ellipsoid to have it positioned tangent to the origin. | ||
| double | Find the underlying Projected CRS Ellipsoid and return its maximum radius | ||
| double | Find the underlying Projected CRS Ellipsoid and return its minimum radius | ||
| FTransform | GetTangentTransformAtECEFLocation
(
const FVector& ECEFCoordinates |
Get the the transform to locate an object tangent to Ellipsoid at a specific location | |
| FTransform | GetTangentTransformAtEngineLocation
(
const FVector& EngineCoordinates |
Get the the transform to locate an object tangent to Ellipsoid at a specific location | |
| FTransform | GetTangentTransformAtGeographicLocation
(
const FGeographicCoordinates& GeographicCoordinates |
Get the the transform to locate an object tangent to Ellipsoid at a specific location | |
| FTransform | GetTangentTransformAtProjectedLocation
(
const FVector& ProjectedCoordinates |
Get the the transform to locate an object tangent to Ellipsoid at a specific location | |
| bool | IsCRSStringValid
(
FString CRSString, |
Check if the string corresponds to a valid CRS descriptor | |
| void | K2_ECEFToEngine
(
const FVector& ECEFCoordinates, |
Convert a Vector expressed in ECEF CRS to ENGINE space | |
| void | K2_ECEFToGeographic
(
const FVector& ECEFCoordinates, |
Convert a Coordinate expressed in ECEF CRS to GEOGRAPHIC CRS | |
| void | K2_ECEFToProjected
(
const FVector& ECEFCoordinates, |
Convert a Coordinate expressed in ECEF CRS to PROJECTED CRS | |
| void | K2_EngineToECEF
(
const FVector& EngineCoordinates, |
Convert a Vector expressed in ENGINE space to the ECEF CRS | |
| void | K2_EngineToProjected
(
const FVector& EngineCoordinates, |
We want to keep the same function names, but with a change in some argument types. | |
| void | K2_GeographicToECEF
(
const FGeographicCoordinates& GeographicCoordinates, |
Convert a Coordinate expressed in GEOGRAPHIC CRS to ECEF CRS | |
| void | K2_GeographicToProjected
(
const FGeographicCoordinates& GeographicCoordinates, |
Convert a Coordinate expressed in GEOGRAPHIC CRS to PROJECTED CRS | |
| void | K2_GetECEFENUVectorsAtECEFLocation
(
const FVector& ECEFCoordinates, |
Get the East North Up vectors at a specific location - Not in engine frame, but in pure ECEF Frame ! | |
| void | K2_GetENUVectorsAtECEFLocation
(
const FVector& ECEFCoordinates, |
Get the East North Up vectors at a specific location | |
| void | K2_GetENUVectorsAtProjectedLocation
(
const FVector& ProjectedCoordinates, |
Get the East North Up vectors at a specific location | |
| FTransform | K2_GetTangentTransformAtECEFLocation
(
const FVector& ECEFCoordinates |
Get the the transform to locate an object tangent to Ellipsoid at a specific location | |
| FTransform | K2_GetTangentTransformAtProjectedLocation
(
const FVector& ProjectedCoordinates |
Get the the transform to locate an object tangent to Ellipsoid at a specific location | |
| void | K2_ProjectedToECEF
(
const FVector& ProjectedCoordinates, |
Convert a Coordinate expressed in PROJECTED CRS to ECEF CRS | |
| void | K2_ProjectedToEngine
(
const FVector& ProjectedCoordinates, |
Convert a Vector expressed in PROJECTED CRS to ENGINE space | |
| void | K2_ProjectedToGeographic
(
const FVector& ProjectedCoordinates, |
Convert a Coordinate expressed in PROJECTED CRS to GEOGRAPHIC CRS | |
| void | ProjectedToECEF
(
const FVector& ProjectedCoordinates, |
Convert a Coordinate expressed in PROJECTED CRS to ECEF CRS | |
| void | ProjectedToEngine
(
const FVector& ProjectedCoordinates, |
Convert a Vector expressed in PROJECTED CRS to ENGINE space | |
| void | ProjectedToGeographic
(
const FVector& ProjectedCoordinates, |
Convert a Coordinate expressed in PROJECTED CRS to GEOGRAPHIC CRS |
Overridden from AActor
| Type | Name | Description | |
|---|---|---|---|
| void | Called when an actor is done spawning into the world (from UWorld::SpawnActor), both in the editor and during gameplay For actors with a root component, the location and rotation will have already been set. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FGeoReferencingSystemInternals |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ECEFToEngine
(
const FCartesianCoordinates& ECEFCoordinates, |
FCartesianCoordinates is deprecated : Use the version that uses a FVector instead. | |
| void | ECEFToGeographic
(
const FCartesianCoordinates& ECEFCoordinates, |
FCartesianCoordinates is deprecated : Use the version that uses a FVector instead. | |
| void | ECEFToProjected
(
const FCartesianCoordinates& ECEFCoordinates, |
FCartesianCoordinates is deprecated : Use the version that uses a FVector instead. | |
| void | EngineToECEF
(
const FVector& EngineCoordinates, |
FCartesianCoordinates is deprecated : Use the version that uses a FVector instead. | |
| PRAGMA_DISABLE_DEPRECATION_WARNINGSvoid | EngineToProjected
(
const FVector& EngineCoordinates, |
FCartesianCoordinates is deprecated : Use the version that uses a FVector instead. | |
| void | GeographicToECEF
(
const FGeographicCoordinates& GeographicCoordinates, |
FCartesianCoordinates is deprecated : Use the version that uses a FVector instead. | |
| void | GeographicToProjected
(
const FGeographicCoordinates& GeographicCoordinates, |
FCartesianCoordinates is deprecated : Use the version that uses a FVector instead. | |
| void | GetECEFENUVectorsAtECEFLocation
(
const FCartesianCoordinates& ECEFCoordinates, |
FCartesianCoordinates is deprecated : Use the version that uses a FVector instead. | |
| void | GetENUVectorsAtECEFLocation
(
const FCartesianCoordinates& ECEFCoordinates, |
FCartesianCoordinates is deprecated : Use the version that uses a FVector instead. | |
| void | GetENUVectorsAtProjectedLocation
(
const FCartesianCoordinates& ProjectedCoordinates, |
FCartesianCoordinates is deprecated : Use the version that uses a FVector instead. | |
| FTransform | GetTangentTransformAtECEFLocation
(
const FCartesianCoordinates& ECEFCoordinates |
FCartesianCoordinates is deprecated : Use the version that uses a FVector instead. | |
| FTransform | GetTangentTransformAtProjectedLocation
(
const FCartesianCoordinates& ProjectedCoordinates |
FCartesianCoordinates is deprecated : Use the version that uses a FVector instead. | |
| void | ProjectedToECEF
(
const FCartesianCoordinates& ProjectedCoordinates, |
FCartesianCoordinates is deprecated : Use the version that uses a FVector instead. | |
| void | ProjectedToEngine
(
const FCartesianCoordinates& ProjectedCoordinates, |
FCartesianCoordinates is deprecated : Use the version that uses a FVector instead. | |
| void | ProjectedToGeographic
(
const FCartesianCoordinates& ProjectedCoordinates, |
FCartesianCoordinates is deprecated : Use the version that uses a FVector instead. |