Editing Features in File GDB Feature Class?

5070
7
03-25-2013 02:37 PM
MikeMacRae
Occasional Contributor III
Does this API allow for editing of existing features within a file gdb feature class or will it only allow for creation of new features?

Thanks,
Mike
0 Kudos
7 Replies
VinceAngelo
Esri Esteemed Contributor
It depends on what you want to edit.  The FGDB API isn't a full-on replacement for
ArcObjects, so complex geodatabase behavior isn't supported, but the samples include
editing operations.

- V
0 Kudos
LanceShipman
Esri Regular Contributor
The File Geodatabase API allows you to edit simple feature classes and tables. If a feature class is involved in a topology or network editing will be blocked.
0 Kudos
MikeMacRae
Occasional Contributor III
Thanks for the responses. I install the API on QGIS and it's only allowing me to add the data to their desktop GUI. It will allow me to create a feature but it won't allow me to edit existing features. There is nothing complex about the feature class I am using. I simply created an ArcGIS 10.0 file geodatabase in ArcCatalogue and created an empty feature class using the ESRI wizard also using an ESRI out-of-the-box coordinate system. No topology or networks involved.

I guess, to be fair, the File Geodatabase API webpage doesn't not specifically mention anything about editing existing features, so maybe that is not the intent. Hopefully this functionality will be added to the API in the future.

Thanks,
Mike
0 Kudos
LanceShipman
Esri Regular Contributor
Editing (Update) is supported. See the edit sample. When you say it doesn't let you edit can you be more descriptive. Are you using C++ or C#. What compiler? What OS? Can you send sample code?
0 Kudos
VinceAngelo
Esri Esteemed Contributor
You're looking to edit a file geodatabase in QGIS?  That's a very different question
than "Does the FGDB API support editing?"  You'd need to talk with the QGIS folks
about what they support.

- V
0 Kudos
MikeMacRae
Occasional Contributor III
Thanks V. Yes, I know I need to talk to the QGIS people at some point, but I think it would be important to know if the API allows for editing before I go to QGIS and ask if they have implemented this functionality. It needs to be available before you can use it 🙂
0 Kudos
VinceAngelo
Esri Esteemed Contributor
So we're back to my first response (and Lance's), which is that the FGDB API
supports *some*, but not all, editing.  In the end, third party tools are the
responsibility of their creators, not a library provider.

- V
0 Kudos