Esri ArcObjects Snippets - Series
Print Field Names of Shapefile, Feature Class
// printDistinctFieldAliasNames work with shape file
static void printDistinctFieldAliasNames(IFeatureClass featureClass)
throws Exception {
// get the Fields collection from the feature class
IFields fields = featureClass.getFields();
IField field;
// on a zero based index iterate through the fields in the collection
for (int i = 0; i < fields.getFieldCount(); i++) {
// get the field at the given index
field = fields.getField(i);
System.out.println("field.getName() = " + field.getName());
if (!field.getName().equals(field.getAliasName())) {
System.out
.println(field.getName() + ":" + field.getAliasName());
}
}
IFeatureCursor featureCursor = featureClass.search(null, true);
IFields fields1 = featureCursor.getFields();
System.out.println("fields1 = " + fields1);
int fieldCount = fields1.getFieldCount();
System.out.println("fieldCount = " + fieldCount);
for (int i = 0; i < fieldCount; i++) {
IField fieldI = fields1.getField(i);
String fieldName = fieldI.getName();
System.out.print(fieldName + "\t");
}
System.out.println();
}
This code has been made using ESRI Resources and other Help Content and is provided here just for educational purpose.
buy LSD online
ReplyDeleteBuy moonrock online
Buy fantanyl patches online
buy cocaine online
Bolivian Cocaine
Colombian Cocaine
Heroin
Mexican Cocaine
Afghan Kush
ReplyDeleteAK-47
buy weed online
AK-47 dank vape
painkiller
cocaine
Amnesia Haze
buy weed online
Afghan Kush
AK-47
buy weed online
painkiller
buy weed online
cocaine
Amnesia Haze
BUY WEED ONLINE
ReplyDeleteBUY IBOGAINE ONLINE
BUY XANAX ONLINE
BUY DANK VAPE ONLINE
BUY COCAINE ONLINE
BUY IBOGAINE CAPSULES ONLINE
BUY LSD ONLINE
BUY BLUE DREAM DANK VAPE ONLINE
BUY MOONROCKS ONLINE
magnificentincense.com
ReplyDelete24K Monkey Classic Incense 10g
AK-47 – X10 / PREMIUM
Bizarro Incense
Buy Black Mamba Incense Online
Buy WTF Herbal Incense
Cloud9 Mad Hatter Incense
Crazy Monkey Incense
k2 spray on paper
k2 paper sheets
Klimax Potpourri 15xxx Coconut(10g)
Crazy Monkey Incense
Cloud9 Mad Hatter Incense
Buy Purple Diesel Incense Online
Buy Pure Fire Herbal Incense Online
Buy Kisha Cole Incense (11g) online
Buy KUSH HERBAL INCENSE online
Buy Mind Trip Incense Online
Buy Platinum XXX Herbal Incense online
buy Orange Platinum Caution 10G
Buy OMG HERBAL POTPOURRI 10G online
https://k2incenseonlineheadshop.com/
ReplyDeletek2incenseonlineheadshop
info@k2incenseonlineheadshop.com
Buy liquid incense cheap
Buy liquid incense cheap For Sale At The Best Incense Online Shop
K2 Spice Spray | Liquid K2 | Liquid Spice | K2 Spray for sale
https://k2herbalblendshop.com/