IFeatureLayer lyr = MapHelper.FindLayer(Properties.Settings.Default.LineStatementsLayer) as IFeatureLayer; if (lyr != null) { geomfeature = lyr.FeatureClass.CreateFeature(); geomfeature.Shape = wrapper.Geometry; int ind = geomfeature.Fields.FindField("GUID"); if (ind > 0) { MessageBox.Show(geomfeature.Value[ind].ToString()); geomfeature.Value[ind] = guid; } } ITable table = MapHelper.FindTable(Properties.Settings.Default.StatementsTable); if (table != null) { feature = table.CreateRow(); int ind = feature.Fields.FindField("LIFE_STATE"); if (ind > 0) { feature.Value[ind] =1; } ind = feature.Fields.FindField("GUID"); if (ind > 0) { feature.Value[ind]=guid; } }
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.