Skip to content

Commit

Permalink
add wms caching note to QgsRasterDataProvider::draw()
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 20, 2014
1 parent a1ada3c commit a46d7c0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/core/raster/qgsrasterdataprovider.h
Expand Up @@ -66,7 +66,13 @@ class CORE_EXPORT QgsRasterDataProvider : public QgsDataProvider, public QgsRast
/* It makes no sense to set input on provider */
bool setInput( QgsRasterInterface* input ) { Q_UNUSED( input ); return false; }

/** \brief Renders the layer as an image */
/** \brief Renders the layer as an image
\note When render caching (/qgis/enable_render_caching) is on the wms
provider doesn't wait for the reply of the getmap request or all
tiles replies and can return incomplete images.
Temporarily disable render caching if you require the complete
wms image in the first call.
*/
virtual QImage* draw( const QgsRectangle & viewExtent, int pixelWidth, int pixelHeight ) = 0;

/** Get the extent of the data source.
Expand Down

0 comments on commit a46d7c0

Please sign in to comment.