I'm trying to create buffers with a 10 meter radius around points (springs). The problem is that the buffer should not cross lines (rivers) and not overlap each other. This should be done automatic with Python, because of the big dataset I have.
Here an image how the buffers should look like in the end.
One possible solution would be this.
If i try to use
arcpy.management.FeatureToPolygon(), as an iteration over each Buffer and the Lines, there would be two Problems:
- Not all the lines does cross the whole buffer.
- How to select the Features, which should be deleted.
The solution for the first Problem would be to extend the lines, that they extent over the buffer. This is an easy fix with a bit of trigonometry and Python.
The second issues is there I have my Problems.
The Features outside of my regular buffer I can easily select and delete, but how to delete the features behind the lines?
I thought about trying to create buffers on only one side of a line, and with this I can select the features I like to delete. But these buffers can also overlap with another feature I don't want to delete.
After I would have deleted the unwanted Features I would dissolve the rest and then merge every buffer into one feature class. After that I would use
arcpy.analysis.RemoveOverlapMultiple() to remove the overlap of the overlapping Buffers
So my questions are, is there way to create a buffer with the lines directly as a border and if not is there a way to easily select the features I would like to delete automatically or is there another solution?