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

NameDescription
as_boolean(band_index)Converts the specified band data to a value.
as_byte(band_index)Converts the specified band data to a value.
as_double(band_index)Converts the specified band data to a value.
as_float(band_index)Converts the specified band data to a value.
as_integer(band_index)Converts the specified band data to a value.
as_long(band_index)Converts the specified band data to a value.
as_short(band_index)Converts the specified band data to a value.
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 value.

Parameters:

ParameterTypeDescription
band_indexintThe index of the band. Numbering starts from 0.

Returns

TypeDescription
boolThe converted value.

Method: as_byte(band_index)

 as_byte(band_index) 

Converts the specified band data to a value.

Parameters:

ParameterTypeDescription
band_indexintThe index of the band. Numbering starts from 0.

Returns

TypeDescription
byteThe converted value.

Method: as_double(band_index)

 as_double(band_index) 

Converts the specified band data to a value.

Parameters:

ParameterTypeDescription
band_indexintThe index of the band. Numbering starts from 0.

Returns

TypeDescription
doubleThe converted value.

Method: as_float(band_index)

 as_float(band_index) 

Converts the specified band data to a value.

Parameters:

ParameterTypeDescription
band_indexintThe index of the band. Numbering starts from 0.

Returns

TypeDescription
floatThe converted value.

Method: as_integer(band_index)

 as_integer(band_index) 

Converts the specified band data to a value.

Parameters:

ParameterTypeDescription
band_indexintThe index of the band. Numbering starts from 0.

Returns

TypeDescription
intThe converted value.

Method: as_long(band_index)

 as_long(band_index) 

Converts the specified band data to a value.

Parameters:

ParameterTypeDescription
band_indexintThe index of the band. Numbering starts from 0.

Returns

TypeDescription
longThe converted value.

Method: as_short(band_index)

 as_short(band_index) 

Converts the specified band data to a value.

Parameters:

ParameterTypeDescription
band_indexintThe index of the band. Numbering starts from 0.

Returns

TypeDescription
shortThe 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:

ParameterTypeDescription
band_indexintThe index of the band. Numbering starts from 0.

Returns

TypeDescription
boolReturn ’true’ if represents background or ’no data'.

Method: get_data_type(band_index)

 get_data_type(band_index) 

Gets type of values.

Parameters:

ParameterTypeDescription
band_indexintThe index of the band. Numbering starts from 0.

Returns

TypeDescription
BandTypesThe type of values.

Method: is_null(band_index)

 is_null(band_index) 

Checks if the raster value is set in the specified band.

Parameters:

ParameterTypeDescription
band_indexintThe index of the band. Numbering starts from 0.

Returns

TypeDescription
boolReturn ‘false’ if not exist.