Tuesday 24 September 2019

arcgis desktop - How to maintain right-angles when buffering?


When buffering some polygons I am trying to avoid the curved buffered area like this: enter image description here


I'm trying to do thins within an FME workbench but if someone knows how its done in other software that would still be helpful.


The polygons are not of a uniform shape or size so scaling them will not work. I want a uniform width of buffer. Perhaps the answer is not to change the buffer operation but to find a way of getting FME to find all curves that would be right angles and convert them into right angles. Could something like simplify do this?



Answer



As whuber said, you do have a uniform buffer width. So here is a method to have squared ends in case of square angles, leaving rounded ends for other concave angles.



  1. Convert polygons to polylines


  2. Split your lines at vertices (split lines at vertices)

  3. Create flat buffers from the splitted lines

  4. Erase your flat buffers from you round buffer (you have the "pieces of pie" at every concave corners)

  5. Compute the minimum bounding polygon (rectangle by width) for all your "pieces of pie"

  6. select the squares : (length * length / area = 16)

  7. merge the squares with your buffer


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...