Skip to content
Browse files

Access to layer data of interpolator

  • Loading branch information
mhugent committed Mar 27, 2014
1 parent 34421c8 commit ad6d2b401d42e6698d176b8e1b8e3dfae52dfa42
@@ -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 );
@@ -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; }

/**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;


0 comments on commit ad6d2b4

Please sign in to comment.
You can’t perform that action at this time.