<?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 Geometry is not supported in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/geometry-is-not-supported/m-p/478130#M5886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm new to ArcGIS Runtime SDK for .Net, but have been working with ArcGIS since the beginning. Anyway, I'm now playing with this API to learn this by my self. I'm struggling with a sample code clipped from the FeatureLayerEditGeometry in the GITHub Project ArcGISRuntimeSDKDotNet_Desktop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've copied the code and pasted it into my own solution where I do some modification to fit my data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; geometry = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;await&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; MyMapView.Editor.EditGeometryAsync(feature.Geometry);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it fails withe the following error when the geometry type is a Point: Geometry type is not supported. It Works fine for lines and polygons.&lt;/P&gt;&lt;P&gt;Can't find anything in the documentation that EditGeometryAsync doesn't support Point geometry, and can't understand that Point either shouldn't be supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any one else out there experience this behaviour?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Harald Lund&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Nov 2014 13:09:12 GMT</pubDate>
    <dc:creator>Harald_ØysteinLund</dc:creator>
    <dc:date>2014-11-04T13:09:12Z</dc:date>
    <item>
      <title>Geometry is not supported</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/geometry-is-not-supported/m-p/478130#M5886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm new to ArcGIS Runtime SDK for .Net, but have been working with ArcGIS since the beginning. Anyway, I'm now playing with this API to learn this by my self. I'm struggling with a sample code clipped from the FeatureLayerEditGeometry in the GITHub Project ArcGISRuntimeSDKDotNet_Desktop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've copied the code and pasted it into my own solution where I do some modification to fit my data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; geometry = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;await&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; MyMapView.Editor.EditGeometryAsync(feature.Geometry);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it fails withe the following error when the geometry type is a Point: Geometry type is not supported. It Works fine for lines and polygons.&lt;/P&gt;&lt;P&gt;Can't find anything in the documentation that EditGeometryAsync doesn't support Point geometry, and can't understand that Point either shouldn't be supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any one else out there experience this behaviour?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Harald Lund&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 13:09:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/geometry-is-not-supported/m-p/478130#M5886</guid>
      <dc:creator>Harald_ØysteinLund</dc:creator>
      <dc:date>2014-11-04T13:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry is not supported</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/geometry-is-not-supported/m-p/478131#M5887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use RequestPointAsync to get point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14151067043957845" jivemacro_uid="_14151067043957845"&gt;
&lt;P&gt;var geometry = await editor.RequestPointAsync();&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can handle point case by replacing it and in with other types, edit it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14151070108146031" jivemacro_uid="_14151070108146031" modifiedtitle="true"&gt;
&lt;P&gt;if (feature.Geometry.GeometryType == GeometryType.Point)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; geometry = await editor.RequestPointAsync(); // cannot "edit" points, replace it with the new one&lt;/P&gt;
&lt;P&gt;else&lt;/P&gt;
&lt;P&gt;&amp;nbsp; geometry = await editor.EditGeometryAsync(feature.Geometry); // edit geometry&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 13:12:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/geometry-is-not-supported/m-p/478131#M5887</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2014-11-04T13:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry is not supported</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/geometry-is-not-supported/m-p/478132#M5888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your quick respons!&lt;/P&gt;&lt;P&gt;Ok, I've seen that, but thought that EditGeometryAsync would handle Points as well. I'll check this out and see if this fits my need of point edit handling.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 13:32:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/geometry-is-not-supported/m-p/478132#M5888</guid>
      <dc:creator>Harald_ØysteinLund</dc:creator>
      <dc:date>2014-11-04T13:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry is not supported</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/geometry-is-not-supported/m-p/478133#M5889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you again for your answer.&lt;/P&gt;&lt;P&gt;This approach would work, and probably is the way to do edit point anyway. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 13:41:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/geometry-is-not-supported/m-p/478133#M5889</guid>
      <dc:creator>Harald_ØysteinLund</dc:creator>
      <dc:date>2014-11-04T13:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry is not supported</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/geometry-is-not-supported/m-p/478134#M5890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Happy to help. I marked this answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 13:46:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/geometry-is-not-supported/m-p/478134#M5890</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2014-11-04T13:46:10Z</dc:date>
    </item>
  </channel>
</rss>

