How to get the polygon vs. Polygon Intersection Coordinates using python

المشرف العام

Administrator
طاقم الإدارة
I want to find the intersection coordinates between two polygons.

aLayer = canvas.currentLayer()selection = aLayer.selectedFeatures()for geom1,geom2 in itertools.permutations(selection,r=2): intersect=geom1.geometry().intersection(geom2.geometry()) intersect_list=intersect.asPolyline() count=len(intersect_list)Its giving the intersection geometry but when i am converting that as a polyline to get the intersection vertices it is giving empty list. Here what i am doing wrong.



أكثر...
 
أعلى