is it possible to delete some node to a polygon when we edit it in order to simplify the polygon?
i tried to explain the feature in the enclosed file.
it is probably difficult to do but I give it a chance,
thanks in advance
is it possible to delete some node to a polygon when we edit it in order to simplify the polygon?
i tried to explain the feature in the enclosed file.
it is probably difficult to do but I give it a chance,
thanks in advance
Sebastien,
I haven’t tried to run the sample yet but there is a Simplify method on the PolygonShape and MultipolygonShape. You can call this to simplify your polygon and not really need to throw it to the editor. You have options to preserve the shape or net and a bunch of other things.
Let me know if this is what you need before I dive into the sample.
David
Sebastien,
One other thing, in the editing system if you double click a node it will delete it.
David
i ll have a try of the simplify method on the polygonShape, thanks to point it out.
i tried the second thing you told me, but i dont understand. I tried the sample demo in your website websamples.thinkgeo.com/Content.aspx?SampleId=DrawEditShapes&Name=Draw%20and%20Edit%20Shapes.
I drew a polygone using the draw polygon button then click on the edit shape button, select the polygon i drew then double click on a node of my polygon but nothing happen.
is it what you meant ?
thanks
sebastien
Sebastien,
That was my fault as the double click a point to delete it is only in the Desktop & Silverlight and not int he Web Edition. Go ahead and try the simplification. The other way would be to not edit it but instead to click next to is and then work out where the world point is. Next you can find the closest vertex on the polygon to where you clicked. With that you can then go in an remove the vertex manually. I will see if someone here can get a sample of that for the web.
David
Sebastien,
Go into edit mode, select the polygon, then while mousing over the node, press the Delete key or the "d" key. Undocumented solution :)
Hi,
The mouse over and delete key solution is a feature of OpenLayers, and it works well for deleting nodes. Thanks Rob for sharing this solution with us.
Any more questions please let us know.
Thanks,
Sun
ouahh thanks a million rob, my client will love it.
thanks again
sebastien
OK, any more questions please let me know.
Thanks,
Sun