Linked Questions

14 votes
4 answers
17k views

Changing (flipping) line direction in QGIS

I have a river network in QGIS. I draw opposite direction of one of the rivers. Now I want to change the direction of that river. How can I do that in QGIS 3? (As I know it is flip in ArcGIS)
Stepan Khachatryan's user avatar
9 votes
1 answer
6k views

How to transform a selected multipart feature into singlepart features while editing in QGIS?

There are several questions and respective answers for how to make a multipart features Layer into a singlepart features one using QGIS: How to break a single polygon into multiple polys? How to ...
Alexandre Neto's user avatar
3 votes
3 answers
4k views

Rotating labels in QGIS 2.8.2

I have a question concerning label placement in QGIS. I'd like to rotate every label by 180°. Therefore, I set the rotation value to 180 (I've tried different ones as well as different variable types) ...
Johannes's user avatar
8 votes
1 answer
2k views

Changing MultiLineString direction using PyQGIS

I am looking for a PyQGIS 3 method for reversing the direction of a MultiLineString feature. If there is more than one part, the order of the parts should be reversed. I have found a similar question -...
Tom Brennan's user avatar
  • 5,419
3 votes
4 answers
3k views

How to turn all lines into one direction?

How can I turn all features of my polyline (postgis and/or shapefile) into one direction - it doesn't matter what direction. I know how to switch the direction of lines but I have no idea how to ...
MartinMap's user avatar
  • 8,358
9 votes
1 answer
2k views

How to reverse vertex ordering in polygons?

I am working with an Oracle spatial connection in QGIS through which I am accessing and editing a vector layer. I find that when I edit a geometry, the vertex ordering is reversed (to clockwise in the ...
user24956's user avatar
  • 419
2 votes
1 answer
2k views

How does one modify selected geometry with a function in qgis python console?

My example use-case is that I want to redistribute vertices along lines as in: Redistribute linestring vertices to specified distance How to create points in a specified distance along the line in ...
Dave X's user avatar
  • 1,709
3 votes
2 answers
2k views

QGIS change line start and end point

I have a line shp file from my friend, and want to use the QChainage to draw points every 10 km. But the Start point and end point isn't right for me. How can I change the Start point and End point? ...
李東霖's user avatar
3 votes
1 answer
2k views

Reverse polygon direction in QGIS? [closed]

The following Python code is very helpful to reverse the direction of lines in QGIS: layer = qgis.utils.iface.mapCanvas().currentLayer() for feature in layer.selectedFeatures(): geom = feature....
eclipsed_by_the_moon's user avatar
3 votes
1 answer
582 views

How can I switch line direction from the Linux commandline?

I want to reverse the line direction for all lines in a shapefile from the Linux commandline (that is to say, using a script). Currently I'm using the SwapVectorDirection QGIS plugin which works well ...
Alex Hajnal's user avatar
1 vote
3 answers
895 views

Repository of ArcView 3.x Avenue commands/methods/general information?

The time has come for my great ArcGIS 10 skills to be put to the test... but we don't have readily available licenses for a lot of functionality that is exposed through ArcView 3.x's Avenue scripts. ...
Nathanus's user avatar
  • 4,318
1 vote
1 answer
1k views

Switch line direction for PostGIS-lines in QGIS or Pgadmin

I am trying to switch the line direction in a PostGIS-layer. The postgis-geometry column is e.g. "LINESTRING(0 0, 1 1, 2 1, 2 2)". The reason is that my symbology is direction-dependent, but I drew ...
tobias47n9e's user avatar
  • 1,261
0 votes
1 answer
1k views

change the direction of the marker of a line in QGIS

I have a map with three lines. Each has a marker on it. I would like to reverse the direction of the topmost marker. So I open Style dialog and enter the expression "direction" * 180. The value of ...
wannik's user avatar
  • 535
2 votes
1 answer
415 views

QGIS select reversed geometries

I have a road network and a geometry for each road direction. One Geometry from A->B and another Geometry from B->A. This geometries are covering each other. Is there a tool available in QGIS to ...
user5082's user avatar