<?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: Editing and Saving polygons to SQL Server in Business Questions</title>
    <link>https://community.esri.com/t5/business-questions/editing-and-saving-polygons-to-sql-server/m-p/681275#M74</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I will just save the Geometry object as JSON. That will be easier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Feb 2020 11:48:58 GMT</pubDate>
    <dc:creator>DanieBester</dc:creator>
    <dc:date>2020-02-04T11:48:58Z</dc:date>
    <item>
      <title>Editing and Saving polygons to SQL Server</title>
      <link>https://community.esri.com/t5/business-questions/editing-and-saving-polygons-to-sql-server/m-p/681274#M73</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the Sketch on map WPF project -&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/sample-code/sketch-on-map/" title="https://developers.arcgis.com/net/latest/wpf/sample-code/sketch-on-map/"&gt;Sketch on map | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added functionality to save polygons to a SQL database (as a Geography spatial type), and redisplay them again on the map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way I am doing this is through the&amp;nbsp;MyMapView_GeoViewTapped.&amp;nbsp;Every time the user clicks the MapView, I record the point&amp;nbsp;(lon &amp;amp; lat). Once they click on Complete, I save the polygon as a&amp;nbsp;Geography object using those points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After loading these polygons again from the database and displaying them on the map, I want the user to be able to edit them and save the updated polygon to the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought I could maybe do this through the&amp;nbsp;&lt;SPAN&gt;MyMapView_GeoViewTapped event, as in just update the individual point that was changed, but it doesn't fire when I drag a vertex. So I don't have access to the new point. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I was thinking once the user clicks Complete, I can&amp;nbsp;just access all&amp;nbsp;the points from the MyMapView.SketchEditor.Geometry object, and then save the object with the updated points.&amp;nbsp;If this was possible I wouldn't need&amp;nbsp;even need MyMapView_GeoViewTapped for initial saves. But I noticed that the&amp;nbsp;Geometry object doesn't give me access to all the individual points.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there any way to access all the points of the polygon once the user clicks on Complete? I need all the lon&amp;amp;lat pairs to save the Geography object to the database.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2020 07:43:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/business-questions/editing-and-saving-polygons-to-sql-server/m-p/681274#M73</guid>
      <dc:creator>DanieBester</dc:creator>
      <dc:date>2020-02-04T07:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Editing and Saving polygons to SQL Server</title>
      <link>https://community.esri.com/t5/business-questions/editing-and-saving-polygons-to-sql-server/m-p/681275#M74</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I will just save the Geometry object as JSON. That will be easier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2020 11:48:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/business-questions/editing-and-saving-polygons-to-sql-server/m-p/681275#M74</guid>
      <dc:creator>DanieBester</dc:creator>
      <dc:date>2020-02-04T11:48:58Z</dc:date>
    </item>
  </channel>
</rss>

