Select to view content in your preferred language

Download stand alone table for offline use

3347
5
02-29-2016 02:41 PM
HaniDraidi
Frequent Contributor

Is there a way to download a stand alone table from a feature service as .geodatabase file?

Any help is appreciated

0 Kudos
5 Replies
MichaelDavis3
Frequent Contributor

You can include the stand-alone tables in an offline geodatabase.  If I recall correctly there has to be at least one spatial layer to publish a feature service, but sometimes when we have an app with minimal spatial data we just have a token spatial layer and do everything else as stand-alone tables.

0 Kudos
HaniDraidi
Frequent Contributor

Thanks for the response Michael,

May you please elaborate more how I can do this? Right now, I am able to download spatial data

0 Kudos
MichaelDavis3
Frequent Contributor

I work in iOS but it looks like it works the same on both platforms, but please forgive me if I flub some of the details.

You get the info about standalone tables in the feature service using getTables() on the featureServerInfo object. 

You then need to add the tables you want to your layerQueries just like you add the feature layers. 

0 Kudos
CesarRevilla
Regular Contributor

Hi, try with this constructor:

GenerateGeodatabaseParameters(FeatureServiceInfo featureServerInfo, Geometry geodatabaseExtent, SpatialReference geodatabaseSpatialReference, LayerQueries queries, boolean returnAttachments)

You need to specify the Layers you want. It worked for me.

Best Regards,
Cesar Revilla

0 Kudos
WillCrick
Deactivated User

see the reply in this post: Download Related Table

0 Kudos