How to edit features in a shape file ?

331
3
06-28-2018 02:22 AM
Highlighted
New Contributor III

Does Arcgis Runtime sdk for wpf, provide any way to store the static feature collection in a shape file ? or any other provision of storing and editing features to a file(GeoJson,shapefile,CSV) maybe, as the editing section in documentation talks about sync enabled geodatabase and online editing , but my requirement is a complete offline environment , so can the static feature collection help?

Reply
0 Kudos
3 Replies
Highlighted
Frequent Contributor

If you are using v100.2.+, you can use ShapefileFeatureTable to create/update/delete features. This inherits from FeatureTable so methods include CreateFeature, Add/Update/DeleteFeature(s)Async. You can create a FeatureLayer with this table. Is this what you are looking for?

Reply
0 Kudos
Highlighted
New Contributor III

Yes sir , I am looking for such kind of help . . Can u help me with some

kind of sample code ?

Reply
0 Kudos
Highlighted
Frequent Contributor

You might want to check out this guide doc for editing to help get you started. For shapefile, you're limited to updating feature geometry and attributes, no feature attachments so you can ignore that part of the guide doc. There are other samples here which you might be interested in.