mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Access to layer data of interpolator
This commit is contained in:
parent
34421c896f
commit
ad6d2b401d
@ -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; }
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user