Home > Mobile >  Android ArcGIS Runtime SHP add fields
Android ArcGIS Runtime SHP add fields

Time:10-12

Want to add fields to a SHP, but online try to find for a long time didn't effect
SelectFeature. GetAttributes (). The put (" PHOTO ", the file. The getName ());
SelectFeature. GetFeatureTable (.) updateFeatureAsync (selectFeature);
Using this method will be an error, the didn't find fields, the getAttributes () put in the "key", the value of the key attributes must be inside the SHP existing can

And then tried to add elements
Map The attributes=new HashMap (a);
The attributes. The put (" PHOTO ", "custom");
Feature addedFeature=selectFeatureTable. CreateFeature (attributes, mainSketchEditor getGeometry ());
SelectFeatureTable. AddFeatureAsync (addedFeature);
Drew a graph can add success, but to add the attribute table nor the "PHOTO" this attribute
If there are other ways for the specified attribute table to add a new SHP field
ArcGIS Runtime what I use is 100.5.0 SDK version of

CodePudding user response:

Well. I ended up with gda/ogr this library to add

Someone reply knot posted below, thanks

CodePudding user response:

Someone, and a post reply, thank you!

CodePudding user response:

I shapefile to create and use gda/ogr the library to do
  • Related