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; }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.