[Qgis-developer] Intersection of line and polygon
Nyall Dawson
nyall.dawson at gmail.com
Tue Nov 4 14:54:49 PST 2014
On 5 November 2014 08:55, Salvatore Larosa <lrssvtml at gmail.com> wrote:
> On Tue, Nov 4, 2014 at 10:24 PM, Nyall Dawson <nyall.dawson at gmail.com> wrote:
>> Looking at the definition of QgsGeometry::intersection the docs state
>> "Returns a geometry representing the points shared by this geometry
>> and other.". I assume this method is designed for intersection of two
>> polygons, where someone is after the overlapping area.
>
> You should be able to perform the intersection with different geometry types.
> I done a script [0] that does an intersection between line and polygon
> and returns a multiLine geometry.
>
You're right - thanks! I'll send through a fix making the docs a bit
clearer for this method.
Nyall
More information about the Qgis-developer
mailing list