Represents a single band of raster datasource. Please refer to GDAL documentation for more details information.
More...
|
| GridColorScheme | Classify (double MinValue, double MaxValue, tkClassificationType classification, int NumCategories) |
| | Builds classification for the raster band. More...
|
| |
| bool | ComputeLocalStatistics (int Column, int Row, int range, out double Minimum, out double Maximum, out double mean, out double stdDev, out int Count) |
| | Computes local statistics for the data in the vicinity of particular pixel. More...
|
| |
| bool | ComputeMinMax (bool allowApproximate, out double Minimum, out double Maximum) |
| | Computes the minimum and maximum value for the raster band. More...
|
| |
| string | get_MetadataItem (int itemIndex) |
| | Gets the specified metadata item. More...
|
| |
| GdalRasterBand | get_Overview (int overviewIndex) |
| | Gets specified overview of the raster band. More...
|
| |
| bool | get_Value (int Column, int Row, out double pVal) |
| | Gets the value of the specified pixel. More...
|
| |
| Histogram | GetDefaultHistogram (bool forceCalculate) |
| | Gets the default histogram. More...
|
| |
| Histogram | GetHistogram (double MinValue, double MaxValue, int NumBuckets, bool includeOutOfRange, bool allowApproximate) |
| | Gets custom histogram for the raster band. More...
|
| |
| bool | GetStatistics (bool allowApproximate, bool forceCalculation, out double Minimum, out double Maximum, out double mean, out double stdDev) |
| | Gets statistics for the raster band. More...
|
| |
| bool | GetUniqueValues (int maxCount, out object arr) |
| | Gets unique values of the band. More...
|
| |
Represents a single band of raster datasource. Please refer to GDAL documentation for more details information.
- New API 4.9.4:
- Added in version 4.9.4
◆ Classify()
Builds classification for the raster band.
- Parameters
-
| MinValue | The minimum value. |
| MaxValue | The maximum value. |
| classification | The classification type. |
| NumCategories | The number of categories. |
- Returns
- Resulting classification.
◆ ComputeLocalStatistics()
| bool GdalRasterBand.ComputeLocalStatistics |
( |
int |
Column, |
|
|
int |
Row, |
|
|
int |
range, |
|
|
out double |
Minimum, |
|
|
out double |
Maximum, |
|
|
out double |
mean, |
|
|
out double |
stdDev, |
|
|
out int |
Count |
|
) |
| |
Computes local statistics for the data in the vicinity of particular pixel.
- Parameters
-
| Column | The column. |
| Row | The row. |
| range | Number of pixel on each side to be included in calculation. |
| Minimum | The minimum value. |
| Maximum | The maximum value. |
| mean | The mean. |
| stdDev | The standard deviation. |
| Count | The count. |
- Returns
- True on success.
◆ ComputeMinMax()
| bool GdalRasterBand.ComputeMinMax |
( |
bool |
allowApproximate, |
|
|
out double |
Minimum, |
|
|
out double |
Maximum |
|
) |
| |
Computes the minimum and maximum value for the raster band.
- Parameters
-
| allowApproximate | If set to true the approximate calculation will be allowed. |
| Minimum | The minimum value. |
| Maximum | The maximum value. |
- Returns
- True on success.
◆ get_MetadataItem()
| string GdalRasterBand.get_MetadataItem |
( |
int |
itemIndex | ) |
|
Gets the specified metadata item.
- Parameters
-
| itemIndex | Index of the item. |
- Returns
- String with metadata.
◆ get_Overview()
Gets specified overview of the raster band.
- Parameters
-
| overviewIndex | Index of the overview. |
- Returns
- The overview as another instance of GdalRasterBand.
◆ get_Value()
| bool GdalRasterBand.get_Value |
( |
int |
Column, |
|
|
int |
Row, |
|
|
out double |
pVal |
|
) |
| |
Gets the value of the specified pixel.
- Parameters
-
| Column | The column. |
| Row | The row. |
| pVal | The value. |
- Returns
- True on success.
◆ GetDefaultHistogram()
| Histogram GdalRasterBand.GetDefaultHistogram |
( |
bool |
forceCalculate | ) |
|
Gets the default histogram.
- Parameters
-
| forceCalculate | If set to true and there is no dialog available, it will be calculated. |
- Returns
- The histogram.
◆ GetHistogram()
| Histogram GdalRasterBand.GetHistogram |
( |
double |
MinValue, |
|
|
double |
MaxValue, |
|
|
int |
NumBuckets, |
|
|
bool |
includeOutOfRange, |
|
|
bool |
allowApproximate |
|
) |
| |
Gets custom histogram for the raster band.
- Parameters
-
| MinValue | The minimum value. |
| MaxValue | The maximum value. |
| NumBuckets | The number buckets. |
| includeOutOfRange | If set to true the values outside the specified range will be included in outer buckets. |
| allowApproximate | If set to true the approximate calculation will be allowed. |
- Returns
- Exceptions
-
| System.NotImplementedException | |
◆ GetStatistics()
| bool GdalRasterBand.GetStatistics |
( |
bool |
allowApproximate, |
|
|
bool |
forceCalculation, |
|
|
out double |
Minimum, |
|
|
out double |
Maximum, |
|
|
out double |
mean, |
|
|
out double |
stdDev |
|
) |
| |
Gets statistics for the raster band.
- Parameters
-
| allowApproximate | If set to true the approximate calculation will be allowed. |
| forceCalculation | if set to true the calculation will be performed even if there are no cached values. |
| Minimum | The minimum value. |
| Maximum | The maximum value. |
| mean | The mean. |
| stdDev | The standard deviation. |
- Returns
- True on success.
◆ GetUniqueValues()
| bool GdalRasterBand.GetUniqueValues |
( |
int |
maxCount, |
|
|
out object |
arr |
|
) |
| |
Gets unique values of the band.
- Parameters
-
| maxCount | The maximum count of values to be returned. |
| arr | The array with values. |
- Returns
- True on success.
◆ BlockSizeX
| int GdalRasterBand.BlockSizeX |
|
get |
Gets the size of horizontal block for the raster (in pixels).
◆ BlockSizeY
| int GdalRasterBand.BlockSizeY |
|
get |
Gets the size of vertical block for the raster (in pixels).
◆ ColorInterpretation
Gets or sets the color interpretation for the raster band.
◆ ColorTable
Gets the color table associated with the band.
◆ DataType
Gets the data type of the raster band.
◆ HasColorTable
| bool GdalRasterBand.HasColorTable |
|
get |
Gets a value indicating whether the raster band has color table.
◆ Maximum
| double GdalRasterBand.Maximum |
|
get |
◆ MetadataCount
| int GdalRasterBand.MetadataCount |
|
get |
Gets the number of metadata items associated with the band.
◆ Minimum
| double GdalRasterBand.Minimum |
|
get |
◆ NodataValue
| double GdalRasterBand.NodataValue |
|
get |
◆ Offset
| double GdalRasterBand.Offset |
|
get |
Gets the raster value offset (is used for coordinate transformation).
◆ OverviewCount
| int GdalRasterBand.OverviewCount |
|
get |
Gets the number of overviews for the raster band.
◆ Scale
| double GdalRasterBand.Scale |
|
get |
Gets the raster value scale (is used for coordinate transformation).
◆ UnitType
| string GdalRasterBand.UnitType |
|
get |
Gets the type of the unit.
◆ XSize
Gets the width of the raster band in pixels.
◆ YSize
Gets the height of the raster band in pixels.