Hi,
When I cut, union polygons sometimes the result is not correct (ie polygonNonvalid_20140711_NonValid.jpg)
A good result would have been a polygon without line inside the polygon (ie .polygon_20140711_Valid.jpg)
Do you have any idea to get this result ?
I tested with GetConvexHull(), the result is not correct. With a buffer region, I don’t see how would work … ?
Thanks for your help.
Regards
Steph.
polygonNonvalid_20140711_NonValid.jpg (75.3 KB)
polygon_20140711_Valid.jpg (75.1 KB)
"Clean" polygon
Hi Steph,
I think I might have some insights on it as I encountered such similar issue after I did an union. I remembered the solution is we did a slight buffer on the result shape and then the "lines" are gone.
Actually, the "lines" we saw are still polygons as the inner distance is so short and those lines are generated are not easily to avoid during the calculation. Please try the below similar codes to fix it:
AreaBaseShape bufferredPolygonShape = polygonShape.Buffer(0.1, GeographyUnit.DecimalDegree, DistanceUnit.Meter);
Hope it helps and if the issue persists, would you please provide us a sample to create it?
Thanks,
Troy
Hi Troy,
That works.
Thanks.
Regards.
Steph.
Hi Steph,
Great! If any other questions, please let us know.
Thanks,
Troy