Select to view content in your preferred language

Add feature to a ShapefileFeatureTable

575
2
01-12-2018 01:53 AM
by Anonymous User
Not applicable

Hello,

I'm trying to add a feature to a ShapefileFeatureTable (containing a point layer), and nothing seems to get added. I check the layer before and after and It's the same number of features. I also check that the table is editable and can add features. Colud anyone give a hint how to add features to a ShapefileFeatureTable? Do I need to apply the edits somehow? The class ShapeFileFeatureTable does not contain any "applyEditAsync()" method. I'm using ArcGIS Runtime SDK for Java version 100.2.0.

Regards, Karin

0 Kudos
2 Replies
DanPatterson_Retired
MVP Emeritus

You have to add point to the featureclass/shapefile to get a corresponding record in its table.

0 Kudos
EricBader
Regular Contributor II

Try using addFeatureAsync(Feature), which is on FeatureTable.

0 Kudos