Hello , Is there any way methods to clone geometries using arcgis runtime v100.1 ? i've checked the API references and i saw it's possible to clone only layers , symbols , maps ,ect but there's no geometries cloning ? for example MapPoint cloning ?
Thanks
Hi,
Geometries are immutable by nature so you if your workflow is to copy the geometry and then doing edits into it, you should use GeometryBuilders such as MapPointBuilder Class. These behaves similarly to StringBuilder and when you have done with the edits just call GeometryBuilder(T).ToGeometry Method method to get the final geometry out.
Hope that helps.
Thanks that really helped me
There's a couple of ways it can be done. Here's two:
Polygon p = new Polygon(...);
var p2 = new PolygonBuilder(p).ToGeometry();
var p3 = new Polygon(p.Parts, p.SpatialReference);