AGSGeodatabase across multiple envelopes

3554
3
Jump to solution
04-22-2015 04:11 PM
SimonFox
New Contributor II

Hi folks,

I have a local geodatabase in my app, and the user can choose an envelope/extent across which to bring down data from the live server.

But if I then want to pull down a second data set from a different envelope, the first data set gets erased. Seems I can only hold one envelope of data at a time.

I'm using this call: generateGeodatabaseWithParameters with useExisting set to YES. Every time I run the generate call, existing data gets removed.

Any ideas? I need to have the user pull down data in chunks. Thanks for any thoughts,

Simon.

0 Kudos
1 Solution

Accepted Solutions
GagandeepSingh
Occasional Contributor II

Thats not supported right now.

I would encourage you to visit the Esri Arcgis Ideas | Ideas Submission Portal page and post your idea there. Explaining why it might be useful to have such a feature and how the current implementation does not allow you to achieve it.

Cheers,

Gagan

View solution in original post

3 Replies
GagandeepSingh
Occasional Contributor II

Hi Simon Fox​,

This should not be the case. The name of the geodatabase is derived from the parameters you pass. And if you are changing the extent property in the parameters, the name of the new geodatabase will change. And it won't overwrite the previous one. So, from what you are doing right now you should have two different geodatabases on your device or simulator.

The `useExisting` property defines "Whether or not to use an existing geodatabase on the device whose parameters match the one you are asking for".

Tip: You can print the `path` property on the geodatabase. If running on simulator, you can simply open Finder and check the location for both geodatabases. Otherwise, if you are running on a device. You can connect the device to your machine. Then in Xcode, under Windows menu, select Devices. In the new window, select your device. Then under Installed Apps section, simply double click on your app and you should see the folder structure with all the files.

Let me know if this helps.

Gagan

0 Kudos
SimonFox
New Contributor II

Yes, that's right, I can see 2 databases. One for each extent.

What I'm looking for is to have a single database that can hold the data for both extents.

Is there a way to say "here's an existing database file, now *add* the features for this new extent" ?

Thanks,
Simon

0 Kudos
GagandeepSingh
Occasional Contributor II

Thats not supported right now.

I would encourage you to visit the Esri Arcgis Ideas | Ideas Submission Portal page and post your idea there. Explaining why it might be useful to have such a feature and how the current implementation does not allow you to achieve it.

Cheers,

Gagan