Hi How do I make programmatic edits, like this one, in a local .shp og .gdb file? Do I need to import it into .geodatabase first? If so, how?
private async void searchLocalGDB(string Path1, string Path2)
{
// Open the geodatabases
var gdbRead = await Esri.ArcGISRuntime.Data.Geodatabase.OpenAsync(Path1);
var gdbWrite = await Esri.ArcGISRuntime.Data.Geodatabase.OpenAsync(Path2);
// Get the first tables in the DB's
var gdbWriteTable = gdbWrite.FeatureTables.FirstOrDefault();
var gdbReadTable = gdbRead.FeatureTables.FirstOrDefault();
// Set up filter, returning the first 7 rows
var filter = new Esri.ArcGISRuntime.Data.QueryFilter();
filter.MaximumRows = 7;
filter.WhereClause = "1=1";
// Query the Read table, and add to the write table
var Q1 = await gdbReadTable.QueryAsync(filter);
foreach (Esri.ArcGISRuntime.Data.GeodatabaseFeature F in Q1)
{
await gdbWriteTable.AddAsync(F);
}
}
... View more