Once you have a geodatabase file on the file system, you can add feature layers to the map from it...
Geodatabase geodatabase = new Geodatabase(path);
GeodatabaseFeatureTable featureTable = geodatabase.getGeodatabaseFeatureTableByLayerId(0);
// create a feature layer from the feature table
featureLayer = new FeatureLayer(featureTable);
map.getLayers().add(featureLayer);
Once the layer is in the Map, it behaves like any other full-fledged FeatureLayer.
Does this help?
Hi Eric,
It's just that I want to do, local data, identify, zoom in and zoom out, some code sample would be great!
Thanks!
Could it be possible to have some code sample for this ?
How to add this kind of Local Feature Layer to the map ?
would be great. thanks.
Yes, this local geodatabase can be used as a datasource for your feature layers that get added to your map, and they behave just like connected feature layers: zoom in on the map, search and query, etc.
If all you need to do is visualize and query these feature layers, this is a BASIC-level licensing scenario.
If you want to edit these feature layers from the local geodatabase, while disconnected from Internet access, this is a STANDARD-level licensing scenario.
Hope this helps.
Hi Mike,
I'm a bit intrigued by this "new geodatabase format" that allows you to render its containing data using a basic license so long as it's read-only. Up to this point, I've had to use a standard deployment license just to render rasters off mosaic datasets from a geodatabase unto the map, with no editing capability, because of merely using the LocalServer class. Has this changed? I am interested in getting more information on this.
Thanks,
Carlos
Hi Mark,
I have the same problem, I want to load information(just for read, not for edition), I'm trying to use standard license, but if it easier using that kind of functionality please tell me how to do it, now I'm using a TPK(fro base map) and MPK for my info, I can identify on click or mouse over, is it possible to do it using "the new geodatabase format"?
Thanks
It seems that I cannot open a .mpk with a basic license is this correct?
Is it possible to use this jar for both deployment scenarios along with one deployment of the runtime? Or would we need to create two separate jar's and runtime deployments to get this to work?
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.