<?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 Lower level editing API in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/lower-level-editing-api/m-p/264066#M6862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what I saw in the examples, editing is only supported on a feature layer that is currently visible on a map control (I guess opacity 0 would work, but would hurt performance). Because our geographical tables that we want to edit only contain the shapes of our entities, we don't want to display them as they are (we have database views that we display instead, with symbology based on certain attributes). We want to just send the features that we want to add/move/delete to the rest endpoint, we will handle the drawing on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The question is: Are there any APIs that would make it easier for us to communicate with the server (ArcGIS server 10 SP2), for example something like the internal EditTask class that is referred &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/24502-what-s-silverlight-s-equivalent-to-Flex-FeatureLayer-s-applyEdits"&gt;here&lt;/A&gt;&lt;SPAN&gt;? Or do we have to roll our own code that would construct http requests?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We would even prefer doing the requests from our server side, so the question also applies to WPF API, or any other libraries that you could offer (:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Evgeny&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Sep 2011 19:18:01 GMT</pubDate>
    <dc:creator>NANA</dc:creator>
    <dc:date>2011-09-13T19:18:01Z</dc:date>
    <item>
      <title>Lower level editing API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/lower-level-editing-api/m-p/264066#M6862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what I saw in the examples, editing is only supported on a feature layer that is currently visible on a map control (I guess opacity 0 would work, but would hurt performance). Because our geographical tables that we want to edit only contain the shapes of our entities, we don't want to display them as they are (we have database views that we display instead, with symbology based on certain attributes). We want to just send the features that we want to add/move/delete to the rest endpoint, we will handle the drawing on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The question is: Are there any APIs that would make it easier for us to communicate with the server (ArcGIS server 10 SP2), for example something like the internal EditTask class that is referred &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/24502-what-s-silverlight-s-equivalent-to-Flex-FeatureLayer-s-applyEdits"&gt;here&lt;/A&gt;&lt;SPAN&gt;? Or do we have to roll our own code that would construct http requests?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We would even prefer doing the requests from our server side, so the question also applies to WPF API, or any other libraries that you could offer (:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Evgeny&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 19:18:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/lower-level-editing-api/m-p/264066#M6862</guid>
      <dc:creator>NANA</dc:creator>
      <dc:date>2011-09-13T19:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Lower level editing API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/lower-level-editing-api/m-p/264067#M6863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can still perform add/delete/update to FeatureLayer.Graphics even if the layer is not visible. It won't be interactive as in the Editing examples in the SDK but in code behind you can do. If FeatureLayer.AutoSave=False, you need to call FeatureLayer.SaveEdits() to submit the changes to the server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
//add
var graphic = new Graphic() {Geometry = new MapPoint(x,y)}
graphic.Attributes["fieldName"] = fieldValue;
featureLayer.Graphics.Add(graphic);

//remove
graphic = featureLayer.Graphics.FirstOrDefault(g =&amp;gt; (int)g.Attributes[layer.LayerInfo.ObjectIdField] == idToDelete);
if (graphic != null) featureLayer.Graphics.Remove(graphic);

//edit
graphic = featureLayer.Graphics.FirstOrDefault(g =&amp;gt; (int)g.Attributes[layer.LayerInfo.ObjectIdField] == idToEdit);
graphic.Geometry = new MapPoint(x,y);
graphic.Attributes["fieldName"] = newFieldValue;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:56:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/lower-level-editing-api/m-p/264067#M6863</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T12:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Lower level editing API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/lower-level-editing-api/m-p/264068#M6864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the answer Jennifer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will try to use it but it still seems that I'm forced to put the feature layer into a map control to initialize it properly (I tried to do it without and I couldn't make it), and even if it's possible to work with it outside of a map, it seems that we have to do multiple calls to the gis server for a single operation, first initialize the layer, then add or edit features (this without the server obviously), and then save the edits.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anything that would allow us to simply send the features that we want to add/edit to the server?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Evgeny&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: I played with the System.Net.WebClient class a little bit today, and quite easily I was able to make a request to the rest api that worked. So even without any helpers it's ok.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 04:43:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/lower-level-editing-api/m-p/264068#M6864</guid>
      <dc:creator>NANA</dc:creator>
      <dc:date>2011-09-14T04:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Lower level editing API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/lower-level-editing-api/m-p/264069#M6865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You don't need to add FeatureLayer to your map control to perform edit, you just need to make sure it is initialized and updated. Try the following code snippet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp; FeatureLayer l = new FeatureLayer() 
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; Url = "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,
&amp;nbsp;&amp;nbsp;&amp;nbsp; ObjectIDs = new int[]{11688}
&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp; l.OutFields.Add("*");
&amp;nbsp;&amp;nbsp; l.Initialized += (s, e) =&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (l.InitializationFailure == null)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; l.Update();
&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp; l.UpdateCompleted += (s, e) =&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic = l.Graphics.FirstOrDefault(g =&amp;gt; (int)g.Attributes[l.LayerInfo.ObjectIdField] == 11688);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (graphic != null)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.Attributes["description"] = string.Format("Updated this field on {0}", DateTime.UtcNow);
&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp; l.EndSaveEdits += (s, e) =&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(e.Results!= null || e.Results.UpdateResults!=null)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (var r in e.Results.UpdateResults)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show(string.Format("Updated id ({0})", r.ObjectID));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp; l.Initialize();
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Visit this page to see that the Date is changed: &lt;/SPAN&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0/11688" rel="nofollow noopener noreferrer" target="_blank"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0/11688&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:56:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/lower-level-editing-api/m-p/264069#M6865</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T12:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Lower level editing API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/lower-level-editing-api/m-p/264070#M6866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks again Jennifer, really useful example, but like I said in my previous post, it does few server calls for one operation so it may not be ideal for us.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 18:42:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/lower-level-editing-api/m-p/264070#M6866</guid>
      <dc:creator>NANA</dc:creator>
      <dc:date>2011-09-14T18:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Lower level editing API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/lower-level-editing-api/m-p/264071#M6867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Evgeny&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm doing low level API's for doing updates on feature layers. If you do not use the feature layers displayed on the map, you will still have the problem of refreshing the map, because the map does not know when you add or modify features of a feature class on the map. Doing a refresh will be a very costly operation and not user friendly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To handle symbology you can use field types defined in the mxd behind the mapservice. The API allow you to extract the symbology from the mapservice. But for the symbology you are limited to simple symbols and picture symbols.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But there are limitations on the the rendering of a feature layer. You do not have standard support for the use of labeling, you has to program it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Johnny&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 09:26:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/lower-level-editing-api/m-p/264071#M6867</guid>
      <dc:creator>JohnnyPenet</dc:creator>
      <dc:date>2011-09-15T09:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Lower level editing API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/lower-level-editing-api/m-p/264072#M6868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm able to add a graphic to my featurelayer's graphic collection and post the edits back up to the server.&amp;nbsp; However, I'm having a tough time wrapping my head around how to delete features through the feature service. According to your snippet below you can remove the graphic from the graphics collection:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;//remove&lt;BR /&gt;graphic = featureLayer.Graphics.FirstOrDefault(g =&amp;gt; (int)g.Attributes[layer.LayerInfo.ObjectIdField] == idToDelete);&lt;BR /&gt;if (graphic != null) featureLayer.Graphics.Remove(graphic);&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When my featurelayer is successfully initialized, there are no graphics in the collection, hence I can not remove a particular record since it is not there.&amp;nbsp; Is it an expected behavior for a featurelayer to not have any graphics associated with it? Or is there a method I need to call in order to populate my graphics collection after it initializes?&amp;nbsp; Any&amp;nbsp; help would be much appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 19:08:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/lower-level-editing-api/m-p/264072#M6868</guid>
      <dc:creator>LucasCulbertson</dc:creator>
      <dc:date>2011-09-16T19:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Lower level editing API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/lower-level-editing-api/m-p/264073#M6869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to call FeatureLayer.Update() to query the service for features. When FeatureLayer.UpdateCompleted is fired, FeatureLayer.Graphics should contain the features.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 22:31:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/lower-level-editing-api/m-p/264073#M6869</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-09-16T22:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lower level editing API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/lower-level-editing-api/m-p/264074#M6870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Jennifer.&amp;nbsp; That did the trick.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 20:13:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/lower-level-editing-api/m-p/264074#M6870</guid>
      <dc:creator>LucasCulbertson</dc:creator>
      <dc:date>2011-09-19T20:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Lower level editing API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/lower-level-editing-api/m-p/264075#M6871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having trouble in delete the feature &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using this code,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;featurelayer.Graphics.Remove(graphicalLayer.Graphics[0]);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but it is not working please help me.I will appreciate if you can explain me in details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;also let me know how to select the graphic,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and also any one know about if i draw overlapped polygon it should propmt me that this is overlapped polygon user can't draw any overlapped polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please advise,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Foram&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 18:11:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/lower-level-editing-api/m-p/264075#M6871</guid>
      <dc:creator>ForamParikh</dc:creator>
      <dc:date>2011-11-09T18:11:02Z</dc:date>
    </item>
  </channel>
</rss>

