UsgsDigitalElevationModel 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.3.420.0 (24.3.420.0)
Syntax public UsgsDigitalElevationModel(
StreamFactory streamFactory,
TerrainCacheGroup cacheGroup
)
Public Sub New (
streamFactory As StreamFactory,
cacheGroup As TerrainCacheGroup
)
public:
UsgsDigitalElevationModel(
StreamFactory^ streamFactory,
TerrainCacheGroup^ cacheGroup
)
new :
streamFactory : StreamFactory *
cacheGroup : TerrainCacheGroup -> UsgsDigitalElevationModel
Parameters
- streamFactory
- Type: AGI.Foundation.InfrastructureStreamFactory
The factory to use to create streams to read the terrain data. - cacheGroup
- Type: AGI.Foundation.TerrainTerrainCacheGroup
The cache group with which to associate this terrain provider.
Exceptions Exception | Condition |
---|
InvalidDataException |
Thrown when the Stream from the streamFactory ended
unexpectedly before the required terrain data could be read.
|
InvalidDataException |
Thrown when any of the following conditions are met:
- The DEM file specifies an unsupported ground planimetric reference system code.
- The vertical datum specified by the DEM file is unsupported.
- The horizontal datum specified by the DEM file is unsupported.
- The unit of measure for ground planimetric coordinates specified by the DEM file is unsupported.
- The coordinates of the bounding quadrangle in the DEM file do not define a rectangle.
- The number of profiles in the DEM file is different from the number of longitude posts expected based on the DEM extent and resolution.
|
InvalidOperationException |
Thrown when the Earth instance in the CalculationContext is not configured with a mean sea level (MSL).
|
ArgumentNullException |
Thrown when streamFactory or cacheGroup is .
|
Remarks
The streams created by streamFactory must support seeking.
See Also