SpecifiedCentralBodyCoverageGrid Constructor (CentralBody, TerrainProvider, IListCartographic, IListCartographicExtent, Boolean, Boolean) |
Construct a new instance based on a given reference terrain, a list of
Cartographic points, and the
corresponding extents of each grid cell.
Namespace:
AGI.Foundation.Geometry.Discrete
Assembly:
AGI.Foundation.Spatial (in AGI.Foundation.Spatial.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax public SpecifiedCentralBodyCoverageGrid(
CentralBody centralBody,
TerrainProvider terrainProvider,
IList<Cartographic> points,
IList<CartographicExtent> gridPointExtents,
bool useCellSurfaceAreaForWeight,
bool saveGridCell
)
Public Sub New (
centralBody As CentralBody,
terrainProvider As TerrainProvider,
points As IList(Of Cartographic),
gridPointExtents As IList(Of CartographicExtent),
useCellSurfaceAreaForWeight As Boolean,
saveGridCell As Boolean
)
public:
SpecifiedCentralBodyCoverageGrid(
CentralBody^ centralBody,
TerrainProvider^ terrainProvider,
IList<Cartographic>^ points,
IList<CartographicExtent^>^ gridPointExtents,
bool useCellSurfaceAreaForWeight,
bool saveGridCell
)
new :
centralBody : CentralBody *
terrainProvider : TerrainProvider *
points : IList<Cartographic> *
gridPointExtents : IList<CartographicExtent> *
useCellSurfaceAreaForWeight : bool *
saveGridCell : bool -> SpecifiedCentralBodyCoverageGrid
Parameters
- centralBody
- Type: AGI.Foundation.CelestialCentralBody
The central body on which this grid is defined. - terrainProvider
- Type: AGI.Foundation.TerrainTerrainProvider
The TerrainProvider used to generate the height of the grid points. - points
- Type: System.Collections.GenericIListCartographic
The planetodetic locations of the grid points. - gridPointExtents
- Type: System.Collections.GenericIListCartographicExtent
The extents of the grid point cells. - useCellSurfaceAreaForWeight
- Type: SystemBoolean
Specifies if the surface area of the relevant extent is used for the grid weight, otherwise the value of 1 is used. - saveGridCell
- Type: SystemBoolean
Specifies if the grid cell is to be saved.
Exceptions Exception | Condition |
---|
ArgumentException | Thrown if the length of points does not match the length of gridPointExtents. |
ArgumentNullException | Thrown if terrainProvider, centralBody, points, or gridPointExtents is . |
Remarks When specifying
Cartographic values, a rectangular grid point cell is assumed.
If a non-rectangular grid cell is desired, extend
CentralBodyCoverageGrid to implement the gridding
algorithm along with the method to define the grid cell boundaries.
See Also