[Qgis-user] Points along geometry
elisenda montaner
elisenda.montaner at gmail.com
Wed Jun 12 03:32:57 PDT 2019
Thanks for your suggestion but Unfortunately, I'm a beginner with python or
Qpy so it'll take me time to find out how to write the script.
Regards
On Tue, 11 Jun 2019 20:50 Raymond Nijssen, <r.nijssen at terglobo.nl> wrote:
> Hi Elisenda,
>
> I'm afraid you need a bit of python script to do so, since the algorithm
> dialog does not have an expression input button for the distance field.
>
> Should go something like this:
>
>
> inputLayer = iface.activeLayer()
>
> for feat in inputLayer.getFeatures():
> dist = feat['DIST'] # field name with distances
> geom = feat.geometry()
> l = 0
> while l < geom.length():
> p = geom.interpolate(l)
> print(p)
> l += dist
>
>
> Hope this helps,
> Raymond
>
>
> On 11-06-19 12:15, elisenda montaner wrote:
> > Hi all,
> >
> > I'm trying to create points along lines using the tool 'points along
> > geometry'.
> > I would like to use different distances for each line at start/end point
> > which I have a column with this data in the attributes.
> > Is this possible with this tool? I've tried it and it doesn't seem to
> > work.
> >
> > Any help would be appreciated. Thanks
> >
> > Elisenda
> >
> > _______________________________________________
> > Qgis-user mailing list
> > Qgis-user at lists.osgeo.org
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> >
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190612/4f06503b/attachment.html>
More information about the Qgis-user
mailing list