GridDefinition¶
Namespace: ThinkGeo.Core
Defines the spatial extent, resolution, and input points used to generate grid-based data.
public class GridDefinition
Inheritance Object → GridDefinition
Properties¶
DataPointsFeatureSource¶
In addition to DataPoints, we can also define point data using DataPointsFeatureSource and DataPointsFeatureSourceColumnName, which typically generate grids with much better performance when spatial indexing is enabled, especially for InverseDistanceWeightedGridInterpolationModel.
public FeatureSource DataPointsFeatureSource { get; set; }
Property Value¶
DataPointsFeatureSourceColumnName¶
In addition to DataPoints, we can also define point data using DataPointsFeatureSource and DataPointsFeatureSourceColumnName, which typically generate grids with much better performance when spatial indexing is enabled, especially for InverseDistanceWeightedGridInterpolationModel.
public string DataPointsFeatureSourceColumnName { get; set; }
Property Value¶
GridExtent¶
Gets or sets the world extent the grid covers.
public RectangleShape GridExtent { get; set; }
Property Value¶
DataPoints¶
Gets the collection of sample points and their associated values.
public Dictionary<PointShape, double> DataPoints { get; }
Property Value¶
Dictionary<PointShape, Double>
CellSize¶
Gets or sets the size of each grid cell.
public double CellSize { get; set; }
Property Value¶
NoDataValue¶
Gets or sets the value used to represent missing data.
public double NoDataValue { get; set; }
Property Value¶
Constructors¶
GridDefinition()¶
Initializes a new instance with default extent, resolution, and no-data value.
public GridDefinition()
GridDefinition(RectangleShape, Double, Double, Dictionary<PointShape, Double>)¶
Initializes a new instance using the provided extent, resolution, no-data value, and point data.
public GridDefinition(RectangleShape gridExtent, double cellSize, double noDataValue, Dictionary<PointShape, double> dataPoints)
Parameters¶
gridExtent RectangleShape
cellSize Double
noDataValue Double
dataPoints Dictionary<PointShape, Double>