EGM96Geoid

actual open class EGM96Geoid(offsetsFile: AssetResource, scope: CoroutineScope) : AbstractEGM96Geoid
expect open class EGM96Geoid(offsetsFile: AssetResource = AssetsMR.assets.EGM96_dat, scope: CoroutineScope = GlobalScope) : AbstractEGM96Geoid
actual open class EGM96Geoid(offsetsFile: AssetResource, scope: CoroutineScope) : AbstractEGM96Geoid

iOS port of EGM96Geoid. Resolves the offsets file via the moko-resources AssetResource (which carries its own NSBundle reference to the packed :worldwind bundle), then parses 16-bit big-endian signed shorts into a Kotlin ShortArray.

On macOS hosts the moko-resources pack action runs as part of the iOS link, so the EGM96.dat file is already inside the framework's resource bundle — no host-app intervention required. On Windows hosts the pack action is stripped (the bundle name's : is illegal in NTFS), in which case host apps must either provide their own bundle with the matching CFBundleIdentifier or pass an alternate AssetResource manually.

actual open class EGM96Geoid(offsetsFile: AssetResource, scope: CoroutineScope) : AbstractEGM96Geoid
actual open class EGM96Geoid(offsetsFile: AssetResource, scope: CoroutineScope) : AbstractEGM96Geoid

Constructors

Link copied to clipboard
actual constructor(offsetsFile: AssetResource, scope: CoroutineScope)
expect constructor(offsetsFile: AssetResource = AssetsMR.assets.EGM96_dat, scope: CoroutineScope = GlobalScope)
actual constructor(offsetsFile: AssetResource, scope: CoroutineScope)
actual constructor(offsetsFile: AssetResource, scope: CoroutineScope)
actual constructor(offsetsFile: AssetResource, scope: CoroutineScope)

Properties

displayName
Link copied to clipboard
open override val displayName: String

This Gravitational Model display name.

open override val displayName: String

This Gravitational Model display name.

open override val displayName: String

This Gravitational Model display name.

open override val displayName: String

This Gravitational Model display name.

open override val displayName: String

This Gravitational Model display name.

Functions

awaitDataLoaded
Link copied to clipboard
suspend fun awaitDataLoaded()

Suspend until the offsets grid is resident (requesting the load if needed), so callers that bake offsets into long-lived data never read the 0 fallback getOffset returns while loading.

suspend fun awaitDataLoaded()

Suspend until the offsets grid is resident (requesting the load if needed), so callers that bake offsets into long-lived data never read the 0 fallback getOffset returns while loading.

suspend fun awaitDataLoaded()

Suspend until the offsets grid is resident (requesting the load if needed), so callers that bake offsets into long-lived data never read the 0 fallback getOffset returns while loading.

suspend fun awaitDataLoaded()

Suspend until the offsets grid is resident (requesting the load if needed), so callers that bake offsets into long-lived data never read the 0 fallback getOffset returns while loading.

suspend fun awaitDataLoaded()

Suspend until the offsets grid is resident (requesting the load if needed), so callers that bake offsets into long-lived data never read the 0 fallback getOffset returns while loading.

ensureDataLoaded
Link copied to clipboard

Request data load once

Request data load once

Request data load once

Request data load once

Request data load once

getOffset
Link copied to clipboard
open override fun getOffset(latitude: Angle, longitude: Angle): Float

Calculates Gravitational Model offset at specified location

open override fun getOffset(latitude: Angle, longitude: Angle): Float

Calculates Gravitational Model offset at specified location

open override fun getOffset(latitude: Angle, longitude: Angle): Float

Calculates Gravitational Model offset at specified location

open override fun getOffset(latitude: Angle, longitude: Angle): Float

Calculates Gravitational Model offset at specified location

open override fun getOffset(latitude: Angle, longitude: Angle): Float

Calculates Gravitational Model offset at specified location

Link copied to clipboard
actual open override fun release()

Release loaded data to free memory

expect open override fun release()

Release loaded data to free memory

actual open override fun release()

Release loaded data to free memory

actual open override fun release()

Release loaded data to free memory

actual open override fun release()

Release loaded data to free memory