IRasterValues Class
Summary: Provides access to the values of raster bands.
Module: aspose.gis.raster
Full Name: aspose.gis.raster.IRasterValues
Aspose.PSD Version: 25.9.0
Methods
| Name | Description |
|---|---|
| as_boolean(band_index) | Converts the specified band data to a |
| as_byte(band_index) | Converts the specified band data to a |
| as_double(band_index) | Converts the specified band data to a |
| as_float(band_index) | Converts the specified band data to a |
| as_integer(band_index) | Converts the specified band data to a |
| as_long(band_index) | Converts the specified band data to a |
| as_short(band_index) | Converts the specified band data to a |
| equals_no_data(band_index) | Checks if the value represents background or ’no data’ in the specified band. |
| get_data_type(band_index) | Gets type of values. |
| is_null(band_index) | Checks if the raster value is set in the specified band. |
Method: as_boolean(band_index)
as_boolean(band_index)
Converts the specified band data to a
Parameters:
| Parameter | Type | Description |
|---|---|---|
| band_index | int | The index of the band. Numbering starts from 0. |
Returns
| Type | Description |
|---|---|
| bool | The converted value. |
Method: as_byte(band_index)
as_byte(band_index)
Converts the specified band data to a
Parameters:
| Parameter | Type | Description |
|---|---|---|
| band_index | int | The index of the band. Numbering starts from 0. |
Returns
| Type | Description |
|---|---|
| byte | The converted value. |
Method: as_double(band_index)
as_double(band_index)
Converts the specified band data to a
Parameters:
| Parameter | Type | Description |
|---|---|---|
| band_index | int | The index of the band. Numbering starts from 0. |
Returns
| Type | Description |
|---|---|
| double | The converted value. |
Method: as_float(band_index)
as_float(band_index)
Converts the specified band data to a
Parameters:
| Parameter | Type | Description |
|---|---|---|
| band_index | int | The index of the band. Numbering starts from 0. |
Returns
| Type | Description |
|---|---|
| float | The converted value. |
Method: as_integer(band_index)
as_integer(band_index)
Converts the specified band data to a
Parameters:
| Parameter | Type | Description |
|---|---|---|
| band_index | int | The index of the band. Numbering starts from 0. |
Returns
| Type | Description |
|---|---|
| int | The converted value. |
Method: as_long(band_index)
as_long(band_index)
Converts the specified band data to a
Parameters:
| Parameter | Type | Description |
|---|---|---|
| band_index | int | The index of the band. Numbering starts from 0. |
Returns
| Type | Description |
|---|---|
| long | The converted value. |
Method: as_short(band_index)
as_short(band_index)
Converts the specified band data to a
Parameters:
| Parameter | Type | Description |
|---|---|---|
| band_index | int | The index of the band. Numbering starts from 0. |
Returns
| Type | Description |
|---|---|
| short | The converted value. |
Method: equals_no_data(band_index)
equals_no_data(band_index)
Checks if the value represents background or ’no data’ in the specified band.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| band_index | int | The index of the band. Numbering starts from 0. |
Returns
| Type | Description |
|---|---|
| bool | Return ’true’ if represents background or ’no data'. |
Method: get_data_type(band_index)
get_data_type(band_index)
Gets type of values.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| band_index | int | The index of the band. Numbering starts from 0. |
Returns
| Type | Description |
|---|---|
| BandTypes | The type of values. |
Method: is_null(band_index)
is_null(band_index)
Checks if the raster value is set in the specified band.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| band_index | int | The index of the band. Numbering starts from 0. |
Returns
| Type | Description |
|---|---|
| bool | Return ‘false’ if not exist. |