<?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: Help Understanding Spatial References in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/help-understanding-spatial-references/m-p/1071481#M10198</link>
    <description>&lt;P&gt;Indeed, and yes &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;screenToLocation will return a geometry in the map's spatial reference. I saw that&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/252052"&gt;@NathanCastle1&lt;/a&gt;&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-net/change-latitude-and-longitude-format/m-p/1071316/highlight/true#M10195" target="_blank" rel="noopener"&gt;pointed you in the direction of GeometryEngine.Project()&lt;/A&gt; to turn that into a WGS84 point that will contain longitude and latitude in its x and y properties.&lt;/P&gt;&lt;P&gt;If you simply want to &lt;EM&gt;display&lt;/EM&gt; the coordinates as Lat/Lon then, as &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/252052"&gt;@NathanCastle1&lt;/a&gt;&amp;nbsp;pointed out, CoordinateFormatter should work.&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jun 2021 14:20:35 GMT</pubDate>
    <dc:creator>Nicholas-Furness</dc:creator>
    <dc:date>2021-06-23T14:20:35Z</dc:date>
    <item>
      <title>Help Understanding Spatial References</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/help-understanding-spatial-references/m-p/1070584#M10177</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have followed the tutorials that first display a map and then the second to display a point, polyline and polygraph. When they create a point they use the spatial reference of&amp;nbsp;&amp;nbsp;SpatialReferences.Wgs84. I read that the maps have a default of webMercator. So if I change the spatial references to webMercator, then every time I run the program my startup view point go to just off the coats of Africa. I have tried changing those starting coordinates and no matter what i use the starting center viewpoint never changes.&amp;nbsp; I know why i would get a different location using a different spatial reference, but i don't understand why the location does not change at all when the coordinates change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 17:13:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/help-understanding-spatial-references/m-p/1070584#M10177</guid>
      <dc:creator>johnmarker</dc:creator>
      <dc:date>2021-06-21T17:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help Understanding Spatial References</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/help-understanding-spatial-references/m-p/1070619#M10179</link>
      <description>&lt;P&gt;If you use WGS84 &lt;STRONG&gt;coordinates&lt;/STRONG&gt; with a Web Mercator &lt;STRONG&gt;spatial reference&lt;/STRONG&gt;, the point will not move very much and will be close to 0,0 lat/lon (which is off the coast of Africa). Web Mercator units are meters, and WGS84 coordinates are in the range of +/-90º Latitude and +/-180º Longitude. So if you're using x values between -180 and +180 and y values between -90 and +90 (which will be considered as meters from 0,0 when using Web Mercator as the spatial reference), then you can imagine the point will barely move unless you are zoomed in a long way, and will never move far from 0,0.&lt;/P&gt;&lt;P&gt;Fortunately, Runtime will look at the spatial reference property of a geometry as well as the x and y property and project it appropriately for the map's spatial reference (which in most cases is the spatial reference of the basemap, typically Web Mercator).&lt;/P&gt;&lt;P&gt;So, unless you are doing a lot of intensive geometry processing, you can probably just continue to use a WGS84 point.&lt;/P&gt;&lt;P&gt;If you need to project the geometry, you can save Runtime from doing this on the fly by using GeometryEngine to &lt;A href="https://developers.arcgis.com/net/wpf/api-reference/" target="_blank" rel="noopener"&gt;project&lt;/A&gt; geometries to other spatial references (in your case, the spatial reference of the map, almost certainly Web Mercator). In fact, there is a screenshot at that link that shows how 45º,-94º lat/lon is about -10503190m, 5653794m x/y.&lt;/P&gt;&lt;P&gt;Hope that makes sense and helps.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 18:41:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/help-understanding-spatial-references/m-p/1070619#M10179</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2021-06-21T18:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help Understanding Spatial References</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/help-understanding-spatial-references/m-p/1070652#M10180</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/176"&gt;@Nicholas-Furness&lt;/a&gt;That makes a lot of sense thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when I use the built in screenToLocation method it returns a MapPoint value that has X/Y attributes in the form of meters not lat/long with ranges of +-90 and =-180 (Assuming because my basemap is webMercator or because that is always the return value type).&amp;nbsp; Is there a way to convert this to a lat/long form?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 21:34:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/help-understanding-spatial-references/m-p/1070652#M10180</guid>
      <dc:creator>johnmarker</dc:creator>
      <dc:date>2021-06-21T21:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help Understanding Spatial References</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/help-understanding-spatial-references/m-p/1071481#M10198</link>
      <description>&lt;P&gt;Indeed, and yes &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;screenToLocation will return a geometry in the map's spatial reference. I saw that&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/252052"&gt;@NathanCastle1&lt;/a&gt;&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-net/change-latitude-and-longitude-format/m-p/1071316/highlight/true#M10195" target="_blank" rel="noopener"&gt;pointed you in the direction of GeometryEngine.Project()&lt;/A&gt; to turn that into a WGS84 point that will contain longitude and latitude in its x and y properties.&lt;/P&gt;&lt;P&gt;If you simply want to &lt;EM&gt;display&lt;/EM&gt; the coordinates as Lat/Lon then, as &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/252052"&gt;@NathanCastle1&lt;/a&gt;&amp;nbsp;pointed out, CoordinateFormatter should work.&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 14:20:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/help-understanding-spatial-references/m-p/1071481#M10198</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2021-06-23T14:20:35Z</dc:date>
    </item>
  </channel>
</rss>

