Linked Questions

19
votes
3answers
29k views

How to add Direction and Distance to attribute table?

anyone who can help. i just want to add direction (Bearing: i.e N 25 35 E) and Distance (Length: 125 meters) as my new field in polyline/line data. is there a plug-in to generate these fields? i tried ...
8
votes
5answers
12k views

How to calculate distances in a point sequence?

I'm looking for help calculating the distance between a sequence of points that are in a single Shapefile in QGIS. Below is what my data look like and a blank distance column I've added to show how I'...
8
votes
2answers
5k views

better way to duplicate a layer using ogr in python?

I'm splitting a large shapefile into many smaller ones using ogr. I'd like to just copy all of the field and layer config information from the original. Here's how I'm doing it now: src = ogr.Open('...
3
votes
2answers
1k views

Create Intersecting lines and remove dangles [closed]

I have 3 cases shown in the image. In all of them i want to intersect the lines and remove dangles using python in Qgis python console so afterwards i can make a plugin for this work in qgis.In case ...
3
votes
2answers
855 views

Create normal vector and calculate distance between start point and intersection

I have one line-layer which pictures a street net and a point-layer which defines certain locations. Please see in the picture below: What I am trying to do is to create a normal vector through a ...
3
votes
3answers
321 views

Turn line labels in QGIS to a new point shape layer

I have a set of contour lines in shape format that I have labeled in QGIS. Now I'd like to export these labels as point features with attribute data containing the text of the label, preferably in ...
1
vote
1answer
973 views

Calculate azimuth of vector for QGIS 2.0 Python plugin

I calculate the azimuth of a vector and update a field in my QGIS 2.0 Python 2.7 plugin. This works currently, but it takes much longer than i'd like to. I believe it is because i'm querying the data ...
1
vote
2answers
1k views

Calculate angle between nodes or point in line in QGIS

I want to check the digitization of line in correct direction, so for that I need to know the angle of each node in line. Is that possible in QGIS?
0
votes
1answer
671 views

Cut a linear feature according to the directions or azimuths

I have a shapefile linear that contains a single items as in the image and I want to divide it into several section respecting the azimuth and the line direction. i have this code : import os ...
2
votes
2answers
335 views

How to create a line from more than two points?

I have a loop which calculates two points for each iteration (x3,y3) and (x4,y4). As seen in the code these two points are added for each iteration, which gives i-1 lines. Each line has a individual ...
1
vote
0answers
399 views

Calculating bearing of polyline in QGIS

I have a shapefile containing a lot of lines which I'm trying to separate based on direction. Is there any way to calculate the line bearing against a compass (in degrees or just as North / North-...
3
votes
1answer
143 views

Finding out corner shape in vector polygon file in Qgis [closed]

how can i findout and distinguish a corner shape in Qgis as shown in image?
1
vote
1answer
121 views

Create mapping between overlapping linestrings

What I have is two shapefiles, describing roads in a city. The shapefiles are made of linestrings, each covering a section of road. The road segments in shapefile 1 are generally several times ...