I am using QGIS 2.18 . I have shapefile which contains multiple lines. After processing certain data processing , I need to draw parallel lines at different distances from existing lines. For example I have 32 lines in existing shapefile. I want to draw parallel lines at distance of 50, 100, 170, 500,400 from line ID no. 3 ,6,20,25,31 in one go. Is there any method or plugin in QGIS for doing same?
You may use the QAD plugin, which offers CAD-like commands in QGIS.
It only works with Projected Coordinate Systems (so you need to project your data before using it) and with editing mode enabled (right-click on the layer and select
For your case, you need to click on the Offset button:
and follow the instructions that will appear on the QAD text window (exactly as in AutoCAD):
For example, this is the output when using a different offset for two different features:
If you have a column in your attribute table which specifies the distance between the parallel lines then the following method should be able to do it in one go -
You can use the
Single sided buffers (and offset lines) for lines algorithm under
GDAL/OGR > [OGR] Geoprocessing in the Processing toolbox. You will need to set the Operation as Offset Curve and enter the name of the column containing the distance in Buffer distance (In my case the name of the column is width). Also you can set which side of the line the parallel line should be drawn by selecting Buffer side as right or left.
You may use "v.parallel", you can found this tool in QGIS processing toolbox.
Use "v.parallel", create parallel line from the selected lines. But, you have to do multiple times to produce different offset distances (50, 100, 170, 500,400). There is a option "Side", you can assigns the location of the parallel lines.
- Result: parallel lines (blue colored) at left side of the selected lines