Table of Contents

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

Vector3

OriginHeightMeters

Gets or sets the ellipsoid height in meters for the local frame origin.

public double OriginHeightMeters { get; set; }

Property Value

double

OriginLatitudeDegrees

Gets or sets the WGS84 latitude in degrees for the local frame origin.

public double OriginLatitudeDegrees { get; set; }

Property Value

double

OriginLongitudeDegrees

Gets or sets the WGS84 longitude in degrees for the local frame origin.

public double OriginLongitudeDegrees { get; set; }

Property Value

double

Revision

Gets the monotonically increasing revision used by runtime scripts to detect rebasing or origin changes.

public int Revision { get; }

Property Value

int

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

longitudeDegrees double

Longitude in degrees.

latitudeDegrees double

Latitude in degrees.

east Vector3

The east axis expressed in local Stride coordinates.

up Vector3

The up axis expressed in local Stride coordinates.

north Vector3

The 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

longitudeDegrees double

Longitude in degrees.

latitudeDegrees double

Latitude in degrees.

heightMeters double

Height above the ellipsoid in meters.

Returns

Vector3

The local Stride position.