NgaDigitalTerrainElevationData Constructor (FileStreamFactory, TerrainCacheGroup) |
Initializes a new instance with the specified file stream factory for a DMED file.
Namespace:
AGI.Foundation.Terrain
Assembly:
AGI.Foundation.TerrainReaders (in AGI.Foundation.TerrainReaders.dll) Version: 25.2.423.0 (25.2.423.0)
Syntaxpublic NgaDigitalTerrainElevationData(
FileStreamFactory dmedFileStreamFactory,
TerrainCacheGroup cacheGroup
)
Public Sub New (
dmedFileStreamFactory As FileStreamFactory,
cacheGroup As TerrainCacheGroup
)
public:
NgaDigitalTerrainElevationData(
FileStreamFactory^ dmedFileStreamFactory,
TerrainCacheGroup^ cacheGroup
)
new :
dmedFileStreamFactory : FileStreamFactory *
cacheGroup : TerrainCacheGroup -> NgaDigitalTerrainElevationDataParameters
- dmedFileStreamFactory
- Type: AGI.Foundation.InfrastructureFileStreamFactory
The factory to use to create streams to read the DMED file. - cacheGroup
- Type: AGI.Foundation.TerrainTerrainCacheGroup
The cache group with which to associate this terrain provider.
Exceptions| Exception | Condition |
|---|
| InvalidOperationException |
Thrown when the Earth instance in the current
CalculationContext is not configured with a mean sea level (MSL).
|
| InvalidDataException |
Thrown when the DMED file does not have the expected format, or the stream ends unexpectedly.
|
| ArgumentNullException |
Thrown when dmedFileStreamFactory or cacheGroup is .
|
See Also