Skip to content

Commit 6f00101

Browse files
committed
fix to Processing side
1 parent 24c1c95 commit 6f00101

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

python/plugins/processing/algs/qgis/ftools/ExtractByLocation.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ def _poly_lines_op(geomA,geomB):
8686
if not intersects and (self.opFlags & self.operators['OVERLAPS']):
8787
if geomB.type() == QGis.Line or geomA.type() == QGis.Line:
8888
intersects |= geomA.crosses(geomB)
89-
intersects |= geomA.overlaps(geomB)
89+
else:
90+
intersects |= geomA.overlaps(geomB)
9091
if not intersects and (self.opFlags & self.operators['WITHIN']):
9192
intersects |= geomA.contains(geomB)
9293
return intersects

python/plugins/processing/algs/qgis/ftools/SelectByLocation.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ def _poly_lines_op(geomA,geomB):
9494
if not intersects and (self.opFlags & self.operators['OVERLAPS']):
9595
if geomB.type() == QGis.Line or geomA.type() == QGis.Line:
9696
intersects |= geomA.crosses(geomB)
97-
intersects |= geomA.overlaps(geomB)
97+
else:
98+
intersects |= geomA.overlaps(geomB)
9899
if not intersects and (self.opFlags & self.operators['WITHIN']):
99100
intersects |= geomA.contains(geomB)
100101
return intersects

0 commit comments

Comments
 (0)