Skip to content

Commit 76a23e6

Browse files
committed
[python] Add bits() bindings for QgsRasterBlock
1 parent fff938c commit 76a23e6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

python/core/raster/qgsrasterblock.sip

+3-5
Original file line numberDiff line numberDiff line change
@@ -201,22 +201,20 @@ class QgsRasterBlock
201201
* @param row row index
202202
* @param column column index
203203
* @return pointer to data
204-
* @note not available in python bindings
205204
*/
206-
// char * bits( int row, int column );
205+
void *bits( int row, int column ) /PyName=bitsByRowCol/ [char * ()];
207206

208207
/** \brief Get pointer to data
209208
* @param index data matrix index (long type in Python)
210209
* @return pointer to data
211-
* @note not available in python bindings
212210
*/
213-
// char * bits( qgssize index );
211+
void *bits( qgssize index ) /PyName=bitsByIndex/ [char * ()];
214212

215213
/** \brief Get pointer to data
216214
* @return pointer to data
217215
* @note not available in python bindings
218216
*/
219-
// char * bits();
217+
void *bits() [char * ()];
220218

221219
/** \brief Print double value with all necessary significant digits.
222220
* It is ensured that conversion back to double gives the same number.

0 commit comments

Comments
 (0)