<?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: Using a datum shift in Custom LocationDataSource in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/using-a-datum-shift-in-custom-locationdatasource/m-p/1299842#M11923</link>
    <description>&lt;P&gt;Have you tried using the OutputSpatialReference and OutputDatumTransformation propeties on the NMEALocationDatasource. These will project the location coming out of the datasource&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/net/api-reference/api/netfx/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Location.NmeaLocationDataSource.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/net/api-reference/api/netfx/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Location.NmeaLocationDataSource.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2023 16:55:24 GMT</pubDate>
    <dc:creator>DiveshGoyal</dc:creator>
    <dc:date>2023-06-15T16:55:24Z</dc:date>
    <item>
      <title>Using a datum shift in Custom LocationDataSource</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/using-a-datum-shift-in-custom-locationdatasource/m-p/1298536#M11916</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have custom LocationDataSource implementations in our app, in addition to using the NmeaLocationData source for connecting various devices for external high accuracy GPS on iOS.&amp;nbsp; These devices will also provide an app which is used to connect to an RTK server for corrections.&lt;/P&gt;&lt;P&gt;I am trying to understand how one applies a datum shift in these cases.&lt;/P&gt;&lt;P&gt;What I am trying to do in our custom LocationDataSource is basically project my Wgs84 point still using Wgs84 but applying a&amp;nbsp;GeographicTransformation, prior to sending the point to UpdateLocation&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var sr = SpatialReferences.Wgs84;

MapPoint mp = new MapPoint(longitude, latitude, sr);

var geoStep = new GeographicTransformationStep(108363);
GeographicTransformation geoTransform = new GeographicTransformation(geoStep);

mp = (MapPoint)GeometryEngine.Project(mp, sr, geoTransform);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the NmeaLocationDataSource I do not know how you would necessary apply the datum shift, until you saved the point.&lt;/P&gt;&lt;P&gt;The problem is we don't seem to be coincident when comparing to Field Maps using the same datum shift.&amp;nbsp; So I am trying to understand if there is a different way this could be done.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The offset is consistent, about 3 feet.&amp;nbsp; &amp;nbsp;We really need the two apps to be the same because a group within the company uses Field Maps and they may come to locate the assets at a later date&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 13:48:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/using-a-datum-shift-in-custom-locationdatasource/m-p/1298536#M11916</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2023-06-13T13:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using a datum shift in Custom LocationDataSource</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/using-a-datum-shift-in-custom-locationdatasource/m-p/1299842#M11923</link>
      <description>&lt;P&gt;Have you tried using the OutputSpatialReference and OutputDatumTransformation propeties on the NMEALocationDatasource. These will project the location coming out of the datasource&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/net/api-reference/api/netfx/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Location.NmeaLocationDataSource.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/net/api-reference/api/netfx/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Location.NmeaLocationDataSource.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 16:55:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/using-a-datum-shift-in-custom-locationdatasource/m-p/1299842#M11923</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2023-06-15T16:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using a datum shift in Custom LocationDataSource</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/using-a-datum-shift-in-custom-locationdatasource/m-p/1299949#M11928</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1212"&gt;@DiveshGoyal&lt;/a&gt;&amp;nbsp;&amp;nbsp;Thanks, I had not noticed that.&amp;nbsp; It looks like the way this is implemented is all in the core libraries.&amp;nbsp; It would b great to understand what is done so it could be implemented in our own LocationDataSource that cannot use the NMEALocationDataSource&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 19:40:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/using-a-datum-shift-in-custom-locationdatasource/m-p/1299949#M11928</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2023-06-15T19:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using a datum shift in Custom LocationDataSource</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/using-a-datum-shift-in-custom-locationdatasource/m-p/1301319#M11935</link>
      <description>&lt;P&gt;It's basically doing what your code is trying to do but I think you may have a typo.&lt;/P&gt;&lt;P&gt;The Geographic Datum Transformation you're using (WKID&amp;nbsp;108363) seems to convert from&amp;nbsp;WGS_1984_(ITRF08)_To_NAD_1983_2011 based on this doc -&amp;nbsp;&lt;A href="http://downloads2.esri.com/support/TechArticles/geographic_transformations_1031.pdf" target="_blank"&gt;http://downloads2.esri.com/support/TechArticles/geographic_transformations_1031.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;So the output spatial reference you pass to GeometryEngine.Project()&amp;nbsp; needs to be GCS_NAD_1983_2011 (not WGS84). So you should create a spatial refeerence with WKID&amp;nbsp;6318 (taken from this doc -&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/properties/pdf/geographic_coordinate_systems.pdf" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/mapping/properties/pdf/geographic_coordinate_systems.pdf&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 22:01:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/using-a-datum-shift-in-custom-locationdatasource/m-p/1301319#M11935</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2023-06-20T22:01:46Z</dc:date>
    </item>
  </channel>
</rss>

