Class CesiumGeoreferenceComponent
- Namespace
- LibreRally
- Assembly
- LibreRally.dll
Stores a reusable local-to-globe georeference for Stride scene entities.
[DataContract]
[ComponentCategory("LibreRally")]
public sealed class CesiumGeoreferenceComponent : EntityComponent, IIdentifiable
- Inheritance
-
CesiumGeoreferenceComponent
- Implements
-
IIdentifiable
- Inherited Members
Remarks
The component keeps the WGS84 origin and a configurable local origin separate so anchored entities can be reprojected if the local frame is rebased in the future.
Properties
LocalOrigin
Gets or sets the local Stride position that represents the configured globe origin.
public Vector3 LocalOrigin { get; set; }
Property Value
OriginHeightMeters
Gets or sets the ellipsoid height in meters for the local frame origin.
public double OriginHeightMeters { get; set; }
Property Value
OriginLatitudeDegrees
Gets or sets the WGS84 latitude in degrees for the local frame origin.
public double OriginLatitudeDegrees { get; set; }
Property Value
OriginLongitudeDegrees
Gets or sets the WGS84 longitude in degrees for the local frame origin.
public double OriginLongitudeDegrees { get; set; }
Property Value
Revision
Gets the monotonically increasing revision used by runtime scripts to detect rebasing or origin changes.
public int Revision { get; }
Property Value
Methods
ResolveEastUpNorthAxes(double, double, out Vector3, out Vector3, out Vector3)
Resolves east, up, and north axes for a WGS84 location in local Stride coordinates.
public void ResolveEastUpNorthAxes(double longitudeDegrees, double latitudeDegrees, out Vector3 east, out Vector3 up, out Vector3 north)
Parameters
longitudeDegreesdoubleLongitude in degrees.
latitudeDegreesdoubleLatitude in degrees.
eastVector3The east axis expressed in local Stride coordinates.
upVector3The up axis expressed in local Stride coordinates.
northVector3The north axis expressed in local Stride coordinates.
ToLocalPosition(double, double, double)
Converts a WGS84 position into local Stride coordinates using the current georeference.
public Vector3 ToLocalPosition(double longitudeDegrees, double latitudeDegrees, double heightMeters)
Parameters
longitudeDegreesdoubleLongitude in degrees.
latitudeDegreesdoubleLatitude in degrees.
heightMetersdoubleHeight above the ellipsoid in meters.
Returns
- Vector3
The local Stride position.