<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can the Runtime .net programmatically make edits in local data, from .shp or .gdb? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/how-can-the-runtime-net-programmatically-make/m-p/302844#M3542</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i need to write an application for edit feature from a .mpk map package. &lt;BR /&gt;How i can locate the local folder where the mpk will be extracted? &lt;BR /&gt;And how i can save the changes to the original mpk? &lt;BR /&gt;Maybe your example it could be of help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jun 2015 06:41:32 GMT</pubDate>
    <dc:creator>AndreaLeone1</dc:creator>
    <dc:date>2015-06-24T06:41:32Z</dc:date>
    <item>
      <title>How can the Runtime .net programmatically make edits in local data, from .shp or .gdb?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-can-the-runtime-net-programmatically-make/m-p/302841#M3539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;How do I make programmatic edits, like this one, in a local .shp og .gdb file?&lt;/P&gt;&lt;P&gt;Do I need to import it into .geodatabase first? If so, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14098360587904162 jive_text_macro" jivemacro_uid="_14098360587904162" modifiedtitle="true"&gt;
&lt;P&gt;private async void searchLocalGDB(string Path1, string Path2)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Open the geodatabases&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var gdbRead = await Esri.ArcGISRuntime.Data.Geodatabase.OpenAsync(Path1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var gdbWrite = await Esri.ArcGISRuntime.Data.Geodatabase.OpenAsync(Path2);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Get the first tables in the DB's&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var gdbWriteTable = gdbWrite.FeatureTables.FirstOrDefault();&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var gdbReadTable = gdbRead.FeatureTables.FirstOrDefault();&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;// Set up filter, returning the first 7 rows&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var filter = new Esri.ArcGISRuntime.Data.QueryFilter();&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filter.MaximumRows = 7;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filter.WhereClause = "1=1";&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Query the Read table, and add to the write table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var Q1 = await gdbReadTable.QueryAsync(filter);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (Esri.ArcGISRuntime.Data.GeodatabaseFeature F in Q1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; await gdbWriteTable.AddAsync(F);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 13:15:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-can-the-runtime-net-programmatically-make/m-p/302841#M3539</guid>
      <dc:creator>ThomasHansen</dc:creator>
      <dc:date>2014-09-04T13:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can the Runtime .net programmatically make edits in local data, from .shp or .gdb?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-can-the-runtime-net-programmatically-make/m-p/302842#M3540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The short answer is that Runtime currently doesn't support editing local data (i.e. shapefiles and file geodatabase data) directly. You could get the data into Runtime, but without using the synchronization workflow via a Feature Service you wouldn't be able to easily persist your changes back to the parent feature. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you did want to edit local data without a sync-enabled service you'd have to use workflows where you load the data into runtime, manipulate the data, and then create new copies of it to persist the changes. These changes could not be returned to the original feature class. This approach could be accomplished using one of the following technologies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Runtime Content&lt;/STRONG&gt;&lt;BR /&gt;With this workflow you could copy your data into a sqlite geodatabase (*.geodatabase). This file could be directly edited in runtime and you can save changes to it. Once you complete you edits you'd need to convert this file back to a file geodatabase.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/net/sample-code/SyncGeodatabase/"&gt;https://developers.arcgis.com/net/sample-code/SyncGeodatabase/&lt;/A&gt; NOTE: Ignore the portions of the sample that display how to sync the changes. You'll want to focus on the portion that shows how to edit the sqlite geodatabase.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Shapefiles&lt;/STRONG&gt;&lt;BR /&gt;Shapefiles can be loaded into Runtime .NET, but after the data is loaded you cannot save the changes back to the original shapefile. To persist the changes you'd need to leverage geoprocessing within the runtime application to copy the layer back to a feature class.&lt;BR /&gt;&lt;BR /&gt;Feature Layer from Shapefile Sample&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/net/sample-code/FeatureLayerFromShapefile/"&gt;https://developers.arcgis.com/net/sample-code/FeatureLayerFromShapefile/&lt;BR /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/122651"&gt;https://community.esri.com/thread/122651&lt;/A&gt; NOTE: I included a sample on this geonet thread showing how to load a shapefile into runtime, manipulate it, and then export it back to a shapefile.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Map Packages&lt;/STRONG&gt;&lt;BR /&gt;Map packages can be loaded into Runtime .NET, but changes will not be persisted in the Map Package. Instead when you load the Map Package it will be extracted on your machine. Once you finish editing, you'll need to locate the folder where the package was extracted and retrieve the files in this location. NOTE: I have a sample that display show to edit map packages if you need to review this workflow.&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 21:20:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-can-the-runtime-net-programmatically-make/m-p/302842#M3540</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-04-14T21:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can the Runtime .net programmatically make edits in local data, from .shp or .gdb?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-can-the-runtime-net-programmatically-make/m-p/302843#M3541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Freddie ,&amp;nbsp;&amp;nbsp; &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;it is interesting&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;what you say in particular "NOTE: I have a sample that display show to edit map packages if you need to review this workflow." .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Mpk&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;file&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is actually&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;an archive&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;7zip , can you suggest a sample for edit map packages ? &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Thanks you&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 16:38:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-can-the-runtime-net-programmatically-make/m-p/302843#M3541</guid>
      <dc:creator>MarcoPorcari</dc:creator>
      <dc:date>2015-06-23T16:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can the Runtime .net programmatically make edits in local data, from .shp or .gdb?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-can-the-runtime-net-programmatically-make/m-p/302844#M3542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i need to write an application for edit feature from a .mpk map package. &lt;BR /&gt;How i can locate the local folder where the mpk will be extracted? &lt;BR /&gt;And how i can save the changes to the original mpk? &lt;BR /&gt;Maybe your example it could be of help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 06:41:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-can-the-runtime-net-programmatically-make/m-p/302844#M3542</guid>
      <dc:creator>AndreaLeone1</dc:creator>
      <dc:date>2015-06-24T06:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can the Runtime .net programmatically make edits in local data, from .shp or .gdb?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-can-the-runtime-net-programmatically-make/m-p/302845#M3543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll look through my sample to see if I can find this specific sample. For the most part you wouldn't be able to manipulate the original map package, but you could overwrite it with the updated data where the package was extracted. You would accomplish this by locating where the package is extracted and zipping these updated files to persist the edits. Someone could retrieve the data from the zip file if need, but if they wanted to see the changes reflected in a map package I would need to overwrite the original map package by uploading the zipped folder to a geoprocessing service that could un-zip it, call the package map tool to create a new map package, and then download this to the clients machine. Do you think this workflow is something that'd work for you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 21:30:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-can-the-runtime-net-programmatically-make/m-p/302845#M3543</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-06-25T21:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can the Runtime .net programmatically make edits in local data, from .shp or .gdb?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-can-the-runtime-net-programmatically-make/m-p/302846#M3544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it could work.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I didn't find a geoprocessing to re-create the mpk, the only geoprocessing is the "Package Map" but when i try to share for use it in a local server, it says me that "Tool Package Map is not licensed for use inArcGIG Runtime package" (and i have a full enteprise license, with sdk and engine (edn)). Another problem is that when the Arcgis runtime for .net extracts the mpk in the temporary folder it adds a random guid at the end of the folder name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All these problems make me think to discard arcgisruntime for .net in favor of arcobject/engine solution, but with arcobject/engine i will work with an older developing environment (winform and com components) that limits the graphics capabilities of a .net application. Another way&amp;nbsp; could be to work with arcgispro sdk but the application will became an add-in of arcgis pro and the sdk is in beta release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i think the sceneario/workflow you have describe in a real example could be helpfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 12:39:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-can-the-runtime-net-programmatically-make/m-p/302846#M3544</guid>
      <dc:creator>AndreaLeone1</dc:creator>
      <dc:date>2015-06-26T12:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can the Runtime .net programmatically make edits in local data, from .shp or .gdb?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-can-the-runtime-net-programmatically-make/m-p/302847#M3545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The package map tool isn't supported for offline use in Runtime. You would only be able to utilize it in a connected environment from runtime. Could you describe the workflow you're needing to accomplish in more detail?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 16:11:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-can-the-runtime-net-programmatically-make/m-p/302847#M3545</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-06-26T16:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can the Runtime .net programmatically make edits in local data, from .shp or .gdb?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-can-the-runtime-net-programmatically-make/m-p/302848#M3546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes of course,&lt;/P&gt;&lt;P&gt;the application must be able to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) map editing (editing a layer created from a shapefile ),&lt;/P&gt;&lt;P&gt;2) create, store and mantain a local geodatabase file,&lt;/P&gt;&lt;P&gt;3) mosaic raster data (tiff),&lt;/P&gt;&lt;P&gt;4) store features, raster image (tiff) and mosaic dataset in a local geodatabase,&lt;/P&gt;&lt;P&gt;5) analysis ndvi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all these requirements must be made in a off-line scenario.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 08:40:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-can-the-runtime-net-programmatically-make/m-p/302848#M3546</guid>
      <dc:creator>AndreaLeone1</dc:creator>
      <dc:date>2015-06-29T08:40:55Z</dc:date>
    </item>
  </channel>
</rss>

