Access to layer data of interpolator

This commit is contained in:
Marco Hugentobler 2014-03-27 14:47:56 +01:00
parent 34421c896f
commit ad6d2b401d
2 changed files with 3 additions and 3 deletions

View File

@ -100,7 +100,7 @@ int QgsGridFileWriter::writeFile( bool showProgressDialog )
// create prj file
QgsInterpolator::LayerData ld;
ld = mInterpolator->mLayerData.first();
ld = mInterpolator->layerData().first();
QgsVectorLayer* vl = ld.vectorLayer;
QString crs = vl->crs().toWkt();
QFileInfo fi( mOutputFilePath );

View File

@ -64,6 +64,8 @@ class ANALYSIS_EXPORT QgsInterpolator
@return 0 in case of success*/
virtual int interpolatePoint( double x, double y, double& result ) = 0;
const QList<LayerData>& layerData() const { return mLayerData; }
protected:
/**Caches the vertex and value data from the provider. All the vertex data
will be held in virtual memory
@ -86,8 +88,6 @@ class ANALYSIS_EXPORT QgsInterpolator
@param attributeValue the attribute value for interpolation (if not interpolated from z-coordinate)
@return 0 in case of success*/
int addVerticesToCache( QgsGeometry* geom, bool zCoord, double attributeValue );
friend class QgsGridFileWriter;
};
#endif