Closed ronnyhdez closed 5 months ago
I'm obtaining this:
probably use the error parameter
In normal squared polygons, the inward buffer is fine:
The problem is with shapes different than squares
I used the error parameter in the function:
var dilatedCollection = feature_collection.map(function(feature) {
return feature.difference(feature.buffer(-30, 500));
});
And the buffer shape changes, but not as expected:
@rfernand387 is there a preference on this case? Does this have to match exactly the shape of the polygon of just the -30m buffer with error=1 works fine?
happens the same in python:
second_test = abandoned_wells[abandoned_wells['WELLSITE_FOOTPRINT_ID'] == 149236.0]
second_test_buffer = second_test.copy()
second_test_buffer['geometry'] = second_test_buffer['geometry'].buffer(-30, 1)
fig, ax = plt.subplots()
second_test.plot(ax = ax, color = 'blue', edgecolor = 'black', alpha = 0.5)
second_test_buffer.plot(ax = ax, color = 'red', edgecolor = 'black', alpha = 0.5)
plt.show()
With gee, for the complete polygons, it looks like this:
This is with -30m and maxError of 1%
In ref #113
We want to avoid the edges