You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
added a method QgsGeometry::fast_intersect. This method does the same as QgsGeometry::intersect, but it uses direct generation of geos geometry with QgsGeometry::geosGeometry(). In contrast, QgsGeometry::intersect uses wkt export of QgsGeometry and wkb import of geos. Therefore it is slower than fast_intersect (but better tested). After 0.8, QgsGeometry::fast_intersect may replace QgsGeometry::intersect
Copy file name to clipboardExpand all lines: src/core/qgsgeometry.h
+3
Original file line number
Diff line number
Diff line change
@@ -181,6 +181,9 @@ class QgsGeometry {
181
181
/** Test for intersection with a rectangle (uses GEOS) */
182
182
boolintersects(QgsRect* r) const;
183
183
184
+
/**Also tests for intersection, but uses direct geos export of QgsGeometry instead wkb export and geos wkb import. Therefore this method is faster and could replace QgsGeometry::intersects in the future*/
185
+
boolfast_intersects(const QgsRect* r) const;
186
+
184
187
/** Test for containment of a point (uses GEOS) */
0 commit comments