2
votes
0answers
45 views

Shortest distance from polygon centroids to a line in QGIS

To get the distance of each polygon centroid from a line, I have tried the Distance to nearest hub algorithm from the Processing Toolbox. The distances I got from the algorithm did not seem correct, ...
0
votes
0answers
22 views

Use python to execute GRASS module v.distance

I have successfully use python script to import a line shapefile and a point shapefile into GRASS, and the following are their attribute table in QGIS, line shapefile point shapefile Now I want ...
1
vote
2answers
85 views

How to number points along a line consecutively

I have a line and along this line I have different points which are max. 20m away from that line. Now I would like to number the points along the line, like shown in the grafic. Any suggestions how to ...
0
votes
0answers
19 views

grass: walking along vector line

I have a line vector which I converted into points with v.to.points. I need to get the coordinates of each point AS I WOULD WALK ON THE LINE. v.to.ascii appears to just use some other order, but I ...
0
votes
0answers
39 views

grass plugin in QGIS all of sudden not working as expected

The previous week I was able to use the grass scripts in the QGIS 2.0.1 Dufour toolbox, but today they do not seem to be working. I am not sure where to place a '-c' which was a solution to the same ...
3
votes
1answer
694 views

How to split line at a specified distance and getting coordinates of start and end points of each line segment?

I tried v.split in GRASS: and my notebook ran a lot of time but showed this error:bad allocation, then I click "OK", and got nothing. Are there other ways to split lines?and I hope to get 2 new ...
3
votes
1answer
1k views

How do I find vector line bearing in QGIS or GRASS?

How can one extract the bearings from a set of lines in a vector file? I'm trying to find the bearings of several straight vector line segments (simplified contour lines, actually) and can't figure ...