Hello community, I have a question about the geodatabase. So I have a .geodatabase file containing from 33 tables, each table has different columns and field values. I'm creating an Android app and want to get the right values from the selected table. How can I achieve it ?
Any ideas ? I think I have to use queryFeaturesAsync. At he moment I have this code :
final Geodatabase geodatabase = new Geodatabase(geodatabaseFilePath);
geodatabase.addDoneLoadingListener(new Runnable() {
@Override
public void run() {
FeatureTable featureTable = geodatabase.getGeodatabaseFeatureTable("TABLE_NAME");
featureTable.getFields();
}
});
geodatabase.loadAsync();
That looks correct to me. You can also use getGeodatabaseFeatureTables() Geodatabase| arcgis-android to get the information on which tables are available.
No, I don`t get, the table values.
You don't get the tables or the data the tables hold?
I didn`t get both...
I do not understand how to get all the tables, and then pick up the required values
final Geodatabase geodatabase = new Geodatabase(geoDatabaseFilePath);
geodatabase.addDoneLoadingListener(new Runnable() {
@Override
public void run() {
for (GeodatabaseFeatureTable geoDbTable : geodatabase.getGeodatabaseFeatureTables()){
//How to finish here ??
}
}
});
geodatabase.loadAsync();