<?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: Transform  MapPoint to GCS in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/transform-mappoint-to-gcs/m-p/815134#M2545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;You probably noticed by now that there are some significant differences between ArcObjects and the ArcGIS Pro SDK.&amp;nbsp; If you are new to the ArcGIS Pro SDK I would recommend to look at some the 'ProConcept' documents we provide on our documentation wiki:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki"&gt;https://github.com/Esri/arcgis-pro-sdk/wiki&lt;/A&gt; .&amp;nbsp; Needless to say &lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples"&gt;samples &lt;/A&gt;are always helpful (which you already discovered) and so are our &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets"&gt;ProSnippets &lt;/A&gt;which are in essence small copy/paste ready snippets that perform a specific task.&amp;nbsp; In case you haven't tried this there are quite a few technical sessions on YouTube, you can find them searching for "arcgis pro sdk for .net". &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Aug 2017 17:57:20 GMT</pubDate>
    <dc:creator>Wolf</dc:creator>
    <dc:date>2017-08-02T17:57:20Z</dc:date>
    <item>
      <title>Transform  MapPoint to GCS</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/transform-mappoint-to-gcs/m-p/815132#M2543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm converting some code from ArcObjects to ArcPro. &amp;nbsp;The following bit of code is working. &amp;nbsp;It converts a point clicked on by the user, to decimal degrees, but I'm sure there is a smoother way to do this. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var mousePoint = MapView.Active.ClientToMap(e.ClientPoint);&lt;/P&gt;&lt;P&gt;ToGeoCoordinateParameter ddParam = new ToGeoCoordinateParameter(GeoCoordinateType.DD);&lt;BR /&gt; string geoString = mousePoint.ToGeoCoordinateString(ddParam);&lt;/P&gt;&lt;P&gt;ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show(geoString);&lt;/P&gt;&lt;P&gt;string[] mapPoint = geoString.Split(' ');&lt;/P&gt;&lt;P&gt;mapPoint[0] = mapPoint[0].Remove(mapPoint[0].Length - 1); //the N&lt;BR /&gt; mapPoint[1] = "-" + mapPoint[1].Remove(mapPoint[1].Length - 1); //the W; use the '-' to change it from Easting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would the proper way be to take mousePoint and convert/transform it to DD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 19:39:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/transform-mappoint-to-gcs/m-p/815132#M2543</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2017-07-31T19:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Transform  MapPoint to GCS</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/transform-mappoint-to-gcs/m-p/815133#M2544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I guess I am answering my own question, but by scouring through more of the SDK samples on GitHub, I came up with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;protected override Task&amp;lt;bool&amp;gt; OnSketchCompleteAsync(Geometry geometry)&lt;BR /&gt; {&lt;BR /&gt; &lt;BR /&gt; double lat;&lt;BR /&gt; double lng;&lt;/P&gt;&lt;P&gt;var coord = GeometryEngine.Instance.Project(geometry, SpatialReferences.WGS84) as MapPoint;&lt;BR /&gt; if (coord != null)&lt;BR /&gt; {&lt;BR /&gt; lng = coord.X;&lt;BR /&gt; lat = coord.Y;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;more code here..................................&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previously I was using the HandleMouseDown event, but this event gives me the Geometry of the click, which is exactly what I was looking for. &amp;nbsp;Then I just have to Project it. &amp;nbsp;Much simpler than my first attempt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this helps someone else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 17:16:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/transform-mappoint-to-gcs/m-p/815133#M2544</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2017-08-02T17:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Transform  MapPoint to GCS</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/transform-mappoint-to-gcs/m-p/815134#M2545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;You probably noticed by now that there are some significant differences between ArcObjects and the ArcGIS Pro SDK.&amp;nbsp; If you are new to the ArcGIS Pro SDK I would recommend to look at some the 'ProConcept' documents we provide on our documentation wiki:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki"&gt;https://github.com/Esri/arcgis-pro-sdk/wiki&lt;/A&gt; .&amp;nbsp; Needless to say &lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples"&gt;samples &lt;/A&gt;are always helpful (which you already discovered) and so are our &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets"&gt;ProSnippets &lt;/A&gt;which are in essence small copy/paste ready snippets that perform a specific task.&amp;nbsp; In case you haven't tried this there are quite a few technical sessions on YouTube, you can find them searching for "arcgis pro sdk for .net". &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 17:57:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/transform-mappoint-to-gcs/m-p/815134#M2545</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2017-08-02T17:57:20Z</dc:date>
    </item>
  </channel>
</rss>

