Click or drag to resize

NgaDigitalTerrainElevationDataCell Constructor (StreamFactory, TerrainCacheGroup)

Initializes a new instance with the specified stream factory.

Namespace:  AGI.Foundation.Terrain
Assembly:  AGI.Foundation.TerrainReaders (in AGI.Foundation.TerrainReaders.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public NgaDigitalTerrainElevationDataCell(
	StreamFactory streamFactory,
	TerrainCacheGroup cacheGroup
)

Parameters

streamFactory
Type: AGI.Foundation.InfrastructureStreamFactory
The factory to use to create streams to read the DT0, DT1, or DT2 file.
cacheGroup
Type: AGI.Foundation.TerrainTerrainCacheGroup
The cache group with which to associate this terrain provider.
Exceptions
ExceptionCondition
InvalidOperationException Thrown when the Earth instance in the current CalculationContext is not configured with a mean sea level (MSL).
InvalidDataException Thrown when the Stream created from the streamFactory ends unexpectedly before the required terrain data could be read.
InvalidDataException Thrown when the User Header Label at the start of the DTED cell does not have the expected format.
ArgumentNullException Thrown when streamFactory or cacheGroup is .
Remarks
The streams created by streamFactory must support seeking.
See Also