File tree 3 files changed +22
-0
lines changed
3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -297,6 +297,8 @@ not disjoint with existing polygons of the feature*/
297
297
298
298
/** Returns the smallest convex polygon that contains all the points in the geometry. */
299
299
QgsGeometry* convexHull() /Factory/;
300
+
301
+ QgsGeometry* interoplate( double distance ) /Factory/;
300
302
301
303
/** Returns a geometry representing the points shared by this geometry and other. */
302
304
QgsGeometry* intersection(QgsGeometry* geometry) /Factory/;
Original file line number Diff line number Diff line change @@ -6409,6 +6409,24 @@ QgsGeometry* QgsGeometry::convexHull()
6409
6409
CATCH_GEOS ( 0 )
6410
6410
}
6411
6411
6412
+ QgsGeometry* QgsGeometry::interpolate ( double distance )
6413
+ {
6414
+ if ( !mGeos )
6415
+ {
6416
+ exportWkbToGeos ();
6417
+ }
6418
+ if ( !mGeos )
6419
+ {
6420
+ return 0 ;
6421
+ }
6422
+
6423
+ try
6424
+ {
6425
+ return fromGeosGeom ( GEOSInterpolate ( mGeos , distance ) );
6426
+ }
6427
+ CATCH_GEOS ( 0 )
6428
+ }
6429
+
6412
6430
QgsGeometry* QgsGeometry::intersection ( QgsGeometry* geometry )
6413
6431
{
6414
6432
if ( !geometry )
Original file line number Diff line number Diff line change @@ -343,6 +343,8 @@ class CORE_EXPORT QgsGeometry
343
343
/* * Returns the smallest convex polygon that contains all the points in the geometry. */
344
344
QgsGeometry* convexHull ();
345
345
346
+ QgsGeometry* interpolate ( double distance );
347
+
346
348
/* * Returns a geometry representing the points shared by this geometry and other. */
347
349
QgsGeometry* intersection ( QgsGeometry* geometry );
348
350
You can’t perform that action at this time.
0 commit comments