GeoDatabase

382
7
07-18-2017 03:30 AM
JohnMcoy
New Contributor III

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 ? 

Tags (2)
0 Kudos
7 Replies
JohnMcoy
New Contributor III

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();
0 Kudos
AlexanderNohe1
Regular Contributor II

That looks correct to me.  You can also use getGeodatabaseFeatureTables() Geodatabase| arcgis-android  to get the information on which tables are available.

0 Kudos
JohnMcoy
New Contributor III

No, I don`t get, the  table values.

0 Kudos
AlexanderNohe1
Regular Contributor II

You don't get the tables or the data the tables hold?

0 Kudos
JohnMcoy
New Contributor III

I didn`t get both...

0 Kudos
JohnMcoy
New Contributor III

I do not understand how to get all the tables, and then pick up the required values

0 Kudos
JohnMcoy
New Contributor III
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();
0 Kudos