Skip to content
Permalink
Browse files

Don't generate triangulation files by default in TIN algorithm

  • Loading branch information
nyalldawson committed Aug 18, 2017
1 parent 090bb9b commit 114f071cf8672d820b418b24bb155bdd8c85a5d7
@@ -134,10 +134,12 @@ def initAlgorithm(self, config=None):
self.addParameter(QgsProcessingParameterRasterDestination(self.OUTPUT,
self.tr('Interpolated')))

self.addParameter(QgsProcessingParameterFileDestination(self.TRIANGULATION_FILE,
self.tr('Triangulation'),
self.tr('SHP files (*.shp)'),
optional=True))
triangulation_file_param = QgsProcessingParameterFileDestination(self.TRIANGULATION_FILE,
self.tr('Triangulation'),
self.tr('SHP files (*.shp)'),
optional=True)
triangulation_file_param.setCreateByDefault(False)
self.addParameter(triangulation_file_param)

def name(self):
return 'tininterpolation'
@@ -29,7 +29,6 @@ bool MathUtils::calcBarycentricCoordinates( double x, double y, QgsPoint *p1, Qg
double area = triArea( p1, p2, p3 );
if ( area == 0 )//p1, p2, p3 are in a line
{
QgsDebugMsg( "warning, triangle area should not be 0" );
return false;
}
double area1 = triArea( &p, p2, p3 );

0 comments on commit 114f071

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