private static Graphic CloneGraphic(Graphic g) { if(g == null) return null; Graphic clone = new Graphic() { Geometry = g.Geometry }; foreach(var key in g.Attributes.Keys) clone.Attributes[key] = g.Attributes[key]; //or set to null if you want all values to be null. You might also want to skip ObjectID return clone; }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.