Click or drag to resize

UsgsDigitalElevationModel Constructor (String)

Initializes a new instance using the specified DEM filename.

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(
	string fileName
)

Parameters

fileName
Type: SystemString
The full path and filename of the DEM file.
Exceptions
ExceptionCondition
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 is .
See Also