UsgsDigitalElevationModel Constructor (String, TerrainCacheGroup) |
Initializes a new instance using the specified DEM filename.
Namespace:
AGI.Foundation.Terrain
Assembly:
AGI.Foundation.TerrainReaders (in AGI.Foundation.TerrainReaders.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public UsgsDigitalElevationModel(
string fileName,
TerrainCacheGroup cacheGroup
)
Public Sub New (
fileName As String,
cacheGroup As TerrainCacheGroup
)
public:
UsgsDigitalElevationModel(
String^ fileName,
TerrainCacheGroup^ cacheGroup
)
new :
fileName : string *
cacheGroup : TerrainCacheGroup -> UsgsDigitalElevationModel
Parameters
- fileName
- Type: SystemString
The full path and filename of the DEM file. - cacheGroup
- Type: AGI.Foundation.TerrainTerrainCacheGroup
The cache group with which to associate this terrain provider.
Exceptions Exception | Condition |
---|
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 fileName or cacheGroup is .
|
See Also