-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polygon Offset Example #294
Comments
Hi @nsiatras - take a look at GeometryEngine.buffer / OperatorBuffer . |
@nsiatras Is this the behavior that you want? http://esri.github.io/geometry-api-java/doc/Buffer.html
|
Thank you all for your replies. @stolstov I tried your example. For a 16 vertices polygon I get 104vertices after I inflate it :) |
PS this is my polygon |
Perhaps I have to use the OperatorOffset.local().execute instead of OperatorBuffer.local().execute. All I want is to make an outline border outside of a polygon. |
@nsiatras Buffer operation does not remember the original vertices, so there is no way to obtain those directly from the buffer polygon. |
@stolstov I see.. The reason I need the original vertices after they are buffered is because some polygons has Arcs. |
In some more complicated cases the arcs intersect with each other and only partial. That happens when the polygon border has a lot of details and the buffer width is large. |
Hello,
I am wondering if there is any example on how to perform polygon offsetting.
I have a double[][] array with the polygon vertices points in clockwise order and I want to inflate it by 2mm.
Is there any example code on how to perform the offseting ?
Thank you in advance
The text was updated successfully, but these errors were encountered: