Thursday, 17 December 2015

Achieving Flat-End line buffers in QGIS?


I need to buffer a series of lines by 40m, however I only want the buffer to come off the sides and not off either end of the line.


I know in ArcGIS there is a "flat-ends" tickbox that achieves exactly this, however unfortunately I can't use ArcGIS at this current time.


Is there any way to achieve this in QGIS?


I've had a look at some of the work arounds, but due to the scale of my datasets (national road networks) none of the ones I have found so far are feasible.



Answer



If you use the v.buffer tool in the Grass Commands toolsets, you can make a flat buffer.



There there are two choice boxes v.buffer If you have Make outside corners straight set to No, and Don't make caps at the ends of polylines as Yes, the result should be similar to the ArcMap straight edge buffer.


The following are the 3 combinations of the above two checkboxes, note the binary combination in the layer name (0 = no, 1 = yes). v.buffer results


You should probably also run a topology fixer/cleaner before, the Grass tool tends to return funny results if the topology isn't perfect


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...