mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Add overload that accepts qgissize instead of int
to avoid a lot of annoying warnings and spare some casts
This commit is contained in:
parent
a6d5d479fa
commit
6b10ffefb0
@ -193,6 +193,16 @@ Check if value at position is no data
|
||||
:param row: row index
|
||||
:param column: column index
|
||||
|
||||
:return: true if value is no data *
|
||||
%End
|
||||
|
||||
bool isNoData( qgssize row, qgssize column );
|
||||
%Docstring
|
||||
Check if value at position is no data
|
||||
|
||||
:param row: row index
|
||||
:param column: column index
|
||||
|
||||
:return: true if value is no data *
|
||||
%End
|
||||
|
||||
|
@ -243,6 +243,16 @@ class CORE_EXPORT QgsRasterBlock
|
||||
return isNoData( static_cast< qgssize >( row ) * mWidth + column );
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Check if value at position is no data
|
||||
* \param row row index
|
||||
* \param column column index
|
||||
* \returns true if value is no data */
|
||||
bool isNoData( qgssize row, qgssize column )
|
||||
{
|
||||
return isNoData( row * static_cast< qgssize >( mWidth )+ column );
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Check if value at position is no data
|
||||
* \param index data matrix index (long type in Python)
|
||||
|
Loading…
x
Reference in New Issue
Block a user