Local geodatabase editing problem:ArcGIS Runtime sdk for Qt

4007
9
Jump to solution
07-10-2015 12:26 AM
kishorekumar1
New Contributor II

Hi,

       I am trying to edit the features from the local geodatabase file(.geodatabase) generated from ArcGIS for Desktop using Create ArcGIS Runtime Content tool. But I am not able to edit the geodatabase from the Qt application. Is there any way to edit the geodatabase. The constraint is  I do not want to use the geodatabase generated from the sync enabled feature service.

Regards,

Kishore Kumar

0 Kudos
1 Solution

Accepted Solutions
LucasDanzinger
Esri Frequent Contributor

Sorry Andy, I wasn't very clear. You can edit the geodatabase coming from ArcMap if it is registered with a service. Otherwise you cannot, and there is no real reason to do so anyway, because there is no check in process through ArcMap only (your edits happening in Runtime would never be able to make it back into ArcMap).

View solution in original post

9 Replies
AndyWright
Occasional Contributor

Kishore,

It’s my understanding that the only geodatabases you can edit are the ones that come from a sync enabled feature service. Runtime Content created from Desktop is read only.

Andy

0 Kudos
LucasDanzinger
Esri Frequent Contributor

Kishore,

You can edit a Geodatabase created through Runtime Content, the restraint is that you can't really check that data back in to ArcMap. If you need to check your edits back in, your options are to use the full sync feature service workflow, or you could generate geodatabases, and then register them with a sync enabled feature service.

Are you getting an error of any sort? Make sure it is in a read/write location on your machine. The code in the "Local Geodatabase Editing" sample should work just the same on your geodatabase.

Thanks,

Luke

0 Kudos
AndyWright
Occasional Contributor

Hi Luke,

I just tried to edit a feature table in a local geodatabase created from ArcMap as part of some testing I'm doing and it failed.  The isEditable property on that table is false, so I would expect it to fail.  It is in a read/write location, so I've got that covered and I'm able to use this same code successfully on layers from a local geodatabase that was created from a feature service.

For this test I am using a rather large geodatabase and I have no need to sync changes back to the server, so Runtime Content created from ArcMap really fits the bill here.  It definitely does not appear that we can edit that type of Runtime Content though.

Are you sure we can edit geodatabases created from ArcMap?  If so, is there something we need to be doing in ArcMap to make that geodatabase editable within an application?

Thanks,

Andy

0 Kudos
LucasDanzinger
Esri Frequent Contributor

Sorry Andy, I wasn't very clear. You can edit the geodatabase coming from ArcMap if it is registered with a service. Otherwise you cannot, and there is no real reason to do so anyway, because there is no check in process through ArcMap only (your edits happening in Runtime would never be able to make it back into ArcMap).

AndyWright
Occasional Contributor

Ok, that makes sense now. Thanks for the clarification Luke. For the purposes of the demo I’m working on I don’t need the changes to get back to the mother ship, so I’m just looking for something quick and dirty here.

0 Kudos
Bhargav_KumarK
New Contributor

I have graphic layer in my qt application  drawn lines, polygons and points on it, and I want to store this features in some database and later want to access. How can I achieve this?

0 Kudos
LucasDanzinger
Esri Frequent Contributor

Kumar-

The way to edit features and save them is through using Feature Services. You will create Feature Tables and interact with them through Feature Layers (not Graphics Layers). We have great documentation in our Guide here -

Editing—ArcGIS Runtime SDK for Qt | ArcGIS for Developers

Edit features—ArcGIS Runtime SDK for Qt | ArcGIS for Developers

Sync offline edits—ArcGIS Runtime SDK for Qt | ArcGIS for Developers 

You can either edit the service in an online environment or take them offline and sync back the edits to the service. Please read through those links to get a better idea of how this works. Let us know if you have any questions.

Thanks,

Luke

0 Kudos
Bhargav_KumarK
New Contributor

I don't have any service kind of concept. I have local copies of tpks and mpks in my system and I am not using any services. But still I want to store features (user drawn features) somewhere in my local system. How to achieve this?

0 Kudos
LucasDanzinger
Esri Frequent Contributor

The services pattern is the workflow we recommend with the Runtime SDKs. If you are looking to do an editing workflow that involves no services (direct check out/check in from ArcMap), I suggest you submit this as a new ideas on the Ideas portal (Esri Arcgis Ideas | Ideas Submission Portal)). ​This allows you to submit new ideas and others can vote on it. We review these submissions and their number of votes when gathering requirements for future releases.

Thank you,

Luke

0 Kudos