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; }
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.