0

I'm fairly experienced in both python and QGIS but not so much together.

I have a series of vector lines I need to run the very useful QChainage plug-in on to get points every 1000m. I have about 200 of these .shp files and have already written a rough script to reproject and dissolve them using the processing module, but I am not sure how to do that in the script. I am guessing the code would look something like this:

Qchainage.run(input='input.shp', distance=1000, output='output.shp')

But obviously that doesn't seem to be working. I cna't find any documentation on running qchainage from python either.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked May 24, 2018 at 4:16
0

1 Answer 1

1

Figured it out, the important parts are:

from qchainage import chainagetool

to import the necessary function, and:

 chainagetool.points_along_line(layerout='Output_name',
 startpoint=,
 endpoint=,
 distance=,
 label=,
 layer=layer,
 selected_only=False,
 force=False,
 fo_fila=False,
 divide=0,
 decimal=2)
answered May 26, 2018 at 22:27

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.