<?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: SketchEditor spatial reference for geometry in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-spatial-reference-for-geometry/m-p/284996#M3365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The spatial reference that is drawn is the same as the basemap that is loaded.&amp;nbsp; If you are using an esri basemap this will be WebMercator.&amp;nbsp; Which should be wkid 3857, although it is the same as 102100 just the number was changed a while back.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you need to project you geometry prior to save if you want in Wgs84&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="line-numbers language-csharp"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; wgsGeometry &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GeometryEngine&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Project&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;webMercatorGeometry&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; SpatialReferences&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Wgs84&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jul 2019 19:32:50 GMT</pubDate>
    <dc:creator>JoeHershman</dc:creator>
    <dc:date>2019-07-12T19:32:50Z</dc:date>
    <item>
      <title>SketchEditor spatial reference for geometry</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-spatial-reference-for-geometry/m-p/284995#M3364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using the&amp;nbsp;SketchEditor to allow users to draw polygons on the map and the geometry is being saved to SQL Server.&amp;nbsp; By default the geometry returned from the&amp;nbsp;SketchEditor is wkid 102100.&amp;nbsp;&amp;nbsp;We have existing geometry data in the database whose wkid is 4326.&amp;nbsp; We want all the data in the database to have the same SRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not see a way to specify the spatial reference used by the&amp;nbsp;&lt;SPAN&gt;SketchEditor.&amp;nbsp; The&amp;nbsp;spatial reference&amp;nbsp;for the Map property is null so assuming 102100 is the default.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way to change the&amp;nbsp;spatial reference&amp;nbsp;used by the&amp;nbsp;SketchEditor?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2019 21:14:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-spatial-reference-for-geometry/m-p/284995#M3364</guid>
      <dc:creator>JonShuler</dc:creator>
      <dc:date>2019-07-11T21:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: SketchEditor spatial reference for geometry</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-spatial-reference-for-geometry/m-p/284996#M3365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The spatial reference that is drawn is the same as the basemap that is loaded.&amp;nbsp; If you are using an esri basemap this will be WebMercator.&amp;nbsp; Which should be wkid 3857, although it is the same as 102100 just the number was changed a while back.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you need to project you geometry prior to save if you want in Wgs84&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="line-numbers language-csharp"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; wgsGeometry &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GeometryEngine&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Project&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;webMercatorGeometry&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; SpatialReferences&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Wgs84&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2019 19:32:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/sketcheditor-spatial-reference-for-geometry/m-p/284996#M3365</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2019-07-12T19:32:50Z</dc:date>
    </item>
  </channel>
</rss>

