@@ -157,7 +157,7 @@ void QgsTINInterpolator::initialize()
157
157
}
158
158
}
159
159
160
- int QgsTINInterpolator::insertData ( QgsFeature *f, bool zCoord, int attr, InputType type )
160
+ int QgsTINInterpolator::insertData ( QgsFeature *f, bool zCoord, int attr, SourceType type )
161
161
{
162
162
if ( !f )
163
163
{
@@ -249,7 +249,7 @@ int QgsTINInterpolator::insertData( QgsFeature *f, bool zCoord, int attr, InputT
249
249
FALLTHROUGH;
250
250
case QgsWkbTypes::LineString:
251
251
{
252
- if ( type != POINTS )
252
+ if ( type != SourcePoints )
253
253
{
254
254
line = new Line3D ();
255
255
}
@@ -267,7 +267,7 @@ int QgsTINInterpolator::insertData( QgsFeature *f, bool zCoord, int attr, InputT
267
267
z = attributeValue;
268
268
}
269
269
270
- if ( type == POINTS )
270
+ if ( type == SourcePoints )
271
271
{
272
272
// todo: handle error code -100
273
273
mTriangulation ->addPoint ( new QgsPoint ( x, y, z ) );
@@ -278,9 +278,9 @@ int QgsTINInterpolator::insertData( QgsFeature *f, bool zCoord, int attr, InputT
278
278
}
279
279
}
280
280
281
- if ( type != POINTS )
281
+ if ( type != SourcePoints )
282
282
{
283
- mTriangulation ->addLine ( line, type == BREAK_LINES );
283
+ mTriangulation ->addLine ( line, type == SourceBreakLines );
284
284
}
285
285
break ;
286
286
}
@@ -293,7 +293,7 @@ int QgsTINInterpolator::insertData( QgsFeature *f, bool zCoord, int attr, InputT
293
293
currentWkbPtr >> nLines;
294
294
for ( int index = 0 ; index < nLines; ++index )
295
295
{
296
- if ( type != POINTS )
296
+ if ( type != SourcePoints )
297
297
{
298
298
line = new Line3D ();
299
299
}
@@ -311,7 +311,7 @@ int QgsTINInterpolator::insertData( QgsFeature *f, bool zCoord, int attr, InputT
311
311
z = attributeValue;
312
312
}
313
313
314
- if ( type == POINTS )
314
+ if ( type == SourcePoints )
315
315
{
316
316
// todo: handle error code -100
317
317
mTriangulation ->addPoint ( new QgsPoint ( x, y, z ) );
@@ -321,9 +321,9 @@ int QgsTINInterpolator::insertData( QgsFeature *f, bool zCoord, int attr, InputT
321
321
line->insertPoint ( new QgsPoint ( x, y, z ) );
322
322
}
323
323
}
324
- if ( type != POINTS )
324
+ if ( type != SourcePoints )
325
325
{
326
- mTriangulation ->addLine ( line, type == BREAK_LINES );
326
+ mTriangulation ->addLine ( line, type == SourceBreakLines );
327
327
}
328
328
}
329
329
break ;
@@ -337,7 +337,7 @@ int QgsTINInterpolator::insertData( QgsFeature *f, bool zCoord, int attr, InputT
337
337
currentWkbPtr >> nRings;
338
338
for ( int index = 0 ; index < nRings; ++index )
339
339
{
340
- if ( type != POINTS )
340
+ if ( type != SourcePoints )
341
341
{
342
342
line = new Line3D ();
343
343
}
@@ -355,7 +355,7 @@ int QgsTINInterpolator::insertData( QgsFeature *f, bool zCoord, int attr, InputT
355
355
{
356
356
z = attributeValue;
357
357
}
358
- if ( type == POINTS )
358
+ if ( type == SourcePoints )
359
359
{
360
360
// todo: handle error code -100
361
361
mTriangulation ->addPoint ( new QgsPoint ( x, y, z ) );
@@ -366,9 +366,9 @@ int QgsTINInterpolator::insertData( QgsFeature *f, bool zCoord, int attr, InputT
366
366
}
367
367
}
368
368
369
- if ( type != POINTS )
369
+ if ( type != SourcePoints )
370
370
{
371
- mTriangulation ->addLine ( line, type == BREAK_LINES );
371
+ mTriangulation ->addLine ( line, type == SourceBreakLines );
372
372
}
373
373
}
374
374
break ;
@@ -388,7 +388,7 @@ int QgsTINInterpolator::insertData( QgsFeature *f, bool zCoord, int attr, InputT
388
388
currentWkbPtr >> nRings;
389
389
for ( int index2 = 0 ; index2 < nRings; ++index2 )
390
390
{
391
- if ( type != POINTS )
391
+ if ( type != SourcePoints )
392
392
{
393
393
line = new Line3D ();
394
394
}
@@ -405,7 +405,7 @@ int QgsTINInterpolator::insertData( QgsFeature *f, bool zCoord, int attr, InputT
405
405
{
406
406
z = attributeValue;
407
407
}
408
- if ( type == POINTS )
408
+ if ( type == SourcePoints )
409
409
{
410
410
// todo: handle error code -100
411
411
mTriangulation ->addPoint ( new QgsPoint ( x, y, z ) );
@@ -415,9 +415,9 @@ int QgsTINInterpolator::insertData( QgsFeature *f, bool zCoord, int attr, InputT
415
415
line->insertPoint ( new QgsPoint ( x, y, z ) );
416
416
}
417
417
}
418
- if ( type != POINTS )
418
+ if ( type != SourcePoints )
419
419
{
420
- mTriangulation ->addLine ( line, type == BREAK_LINES );
420
+ mTriangulation ->addLine ( line, type == SourceBreakLines );
421
421
}
422
422
}
423
423
}
0 commit comments