[Qgis-developer] Split lines at intersection

Rouzaud Denis denis.rouzaud at gmail.com
Wed Jun 11 06:05:38 PDT 2014


Hi,

splitLinearGeometry is private, you won’t have access to it.
You shall use splitGeometry which is public
http://qgis.org/api/classQgsGeometry.html#a4c03fb2b37ce94bcf2295ed7896f665b

Cheers,

Denis


On 11 Jun 2014, at 12:42, mattwalsh <matthew.walsh at thinkwhere.com> wrote:

> Hello,
> 
> Using pyqgis I would like to split a line feature where it intersects with
> another line. I have tried using the splitLinearGeometry function with no
> success. 
> 
> new_f = geom_feat.splitLinearGeometry([geom_feat_sp])
> AttributeError: 'QgsGeometry' object has no attribute 'splitLinearGeometry'
> 
> My end goal is to split a number of selected line features against each
> other so that all the selected lines are split at all intersections.
> 
> Could anyone point me in the right direction?
> 
> thanks
> Matt
> 
> 
> 
> 
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/Split-lines-at-intersection-tp5145241.html
> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140611/188da5f8/attachment.html>


More information about the Qgis-developer mailing list