TransWikia.com

QGIS - Buffer distance as portion of polygon variable width

Geographic Information Systems Asked by XDOLK009 on May 5, 2021

Is it possible to create a buffer of for example 3/4 of the polygons local width?

I have a polygon of river body, somewhere the river has 20 meters in width, somewhere 70 m. I need to extract the cunette, which varies based on the rivers width. So i need to create a negative buffer that is 3/4 of the current river body polygon width, so it copies its current geometry.

I think this must be feasible, however i can’t find a way…

Any ideas?

I basically need to extract only the inner 1/3 of the width like this

One Answer

I think you could work on a raster based approach to solving your problem. What you ideally would like to have is some sort of inversed Euclidian Distance calculation (from the polygon's exterior towards its inside.

You could attempt this as followed, I haven't tested but can get you started:

  • use Polygon to Lines tool to convert the river to a line segment.
  • Use Euclidian distance tool to calculate the distance towards the outside.
  • Use the river polygon shape as the mask or extent of the Euclidian Distance calculation.
  • If needed, convert the Euclidian Distance Raster back to a polygon using the polygonize tool, after resampling and extracting desired distance from the internal river line.

There are some articles that try to attempt this that might be of use as well:

Answered by PGerrits on May 5, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP