//TO DO: get the field names from input_feature and display as checkboxesAppreciate any help.
public static List<string> GetFeatureFields( IFeatureLayer featureLayer ) { List<string> fieldList = new List<string>(); IFeatureClass featureClass = featureLayer.FeatureClass; if ( featureClass == null ) return fieldList; for ( int x = 0; x < featureClass.Fields.FieldCount; x++ ) { IField field = featureClass.Fields.get_Field( x ); fieldList.Add( field.Name ); } return fieldList; }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und vieles mehr. Neu hier? Erstelle ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.