Skip to content

Commit b747ff6

Browse files
committedJul 19, 2018
Dox++
1 parent ba10d1b commit b747ff6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
 

‎python/core/auto_generated/raster/qgsrasterdataprovider.sip.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ is supported by provider.
288288

289289
A null QVariant will be returned if the point is outside data source extent.
290290

291+
.. seealso:: :py:func:`identify`
292+
291293
.. versionadded:: 3.4
292294
%End
293295

‎src/core/raster/qgsrasterdataprovider.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ class CORE_EXPORT QgsRasterDataProvider : public QgsDataProvider, public QgsRast
355355
* Empty if failed or there are no results (TODO: better error reporting).
356356
* \note The arbitraryness of the returned document is enforced by WMS standards
357357
* up to at least v1.3.0
358-
* \see sample()
358+
* \see sample(), which is much more efficient for simple "value at point" queries.
359359
*/
360360
virtual QgsRasterIdentifyResult identify( const QgsPointXY &point, QgsRaster::IdentifyFormat format, const QgsRectangle &boundingBox = QgsRectangle(), int width = 0, int height = 0, int dpi = 96 );
361361

@@ -369,6 +369,7 @@ class CORE_EXPORT QgsRasterDataProvider : public QgsDataProvider, public QgsRast
369369
*
370370
* A null QVariant will be returned if the point is outside data source extent.
371371
*
372+
* \see identify(), which is much more flexible but considerably less efficient.
372373
* \since QGIS 3.4
373374
*/
374375
virtual QVariant sample( const QgsPointXY &point, int band, const QgsRectangle &boundingBox = QgsRectangle(), int width = 0, int height = 0, int dpi = 96 );

0 commit comments

Comments
 (0)
Please sign in to comment.