[Qgis-developer] Intersection of line and polygon
Salvatore Larosa
lrssvtml at gmail.com
Tue Nov 4 13:55:56 PST 2014
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.
[0] - http://codepad.org/zFXO4XBC
--
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
More information about the Qgis-developer
mailing list