<?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 How to calculate using geodesic distance when working with GeometryEngine.CreatePointAlong() ? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-calculate-using-geodesic-distance-when/m-p/1325126#M12077</link>
    <description>&lt;P&gt;I'm using the .NET Maps SDK and GeometryEngine to calculate &lt;EM&gt;x&lt;/EM&gt; distance (in miles) traversed along a polyline and drop a point there. I'm using the &lt;A href="https://developers.arcgis.com/net/api-reference/api/net/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Geometry.GeometryEngine.CreatePointAlong.html#Esri_ArcGISRuntime_Geometry_GeometryEngine_CreatePointAlong_Esri_ArcGISRuntime_Geometry_Polyline_System_Double_" target="_self"&gt;CreatePointAlong()&lt;/A&gt; method to achieve this. However, when I run this, I get a resulting point that is measured using planar miles. I want this distance to be measured using geodetic miles. How can I achieve this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;My polyline that's being used for the calculation is in Web Mercator (WKID:3857) which is a projected coordinate system with units in meters. Could this be the reason for why the distance measurement is planar?&lt;/P&gt;&lt;P&gt;Here's the WkText for my polyline's SpatialReference:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;"PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",0.0],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What else have I tried?&lt;/P&gt;&lt;P&gt;I tried reprojecting the polyline to NAD83 using SpatialReference.Create(4269), but this changed the unit of the polyline to degrees. I need to use miles in my distance measurement, so I believe this is useless.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And finally, I know the resulting point is calculated using planar and not geodetic distance because I compared with ArcGIS Pro's Measure tool which lets me measure using planar and geodetic methods.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated! Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Sep 2023 22:32:43 GMT</pubDate>
    <dc:creator>KevinCheriyan</dc:creator>
    <dc:date>2023-09-03T22:32:43Z</dc:date>
    <item>
      <title>How to calculate using geodesic distance when working with GeometryEngine.CreatePointAlong() ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-calculate-using-geodesic-distance-when/m-p/1325126#M12077</link>
      <description>&lt;P&gt;I'm using the .NET Maps SDK and GeometryEngine to calculate &lt;EM&gt;x&lt;/EM&gt; distance (in miles) traversed along a polyline and drop a point there. I'm using the &lt;A href="https://developers.arcgis.com/net/api-reference/api/net/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Geometry.GeometryEngine.CreatePointAlong.html#Esri_ArcGISRuntime_Geometry_GeometryEngine_CreatePointAlong_Esri_ArcGISRuntime_Geometry_Polyline_System_Double_" target="_self"&gt;CreatePointAlong()&lt;/A&gt; method to achieve this. However, when I run this, I get a resulting point that is measured using planar miles. I want this distance to be measured using geodetic miles. How can I achieve this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;My polyline that's being used for the calculation is in Web Mercator (WKID:3857) which is a projected coordinate system with units in meters. Could this be the reason for why the distance measurement is planar?&lt;/P&gt;&lt;P&gt;Here's the WkText for my polyline's SpatialReference:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;"PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",0.0],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What else have I tried?&lt;/P&gt;&lt;P&gt;I tried reprojecting the polyline to NAD83 using SpatialReference.Create(4269), but this changed the unit of the polyline to degrees. I need to use miles in my distance measurement, so I believe this is useless.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And finally, I know the resulting point is calculated using planar and not geodetic distance because I compared with ArcGIS Pro's Measure tool which lets me measure using planar and geodetic methods.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated! Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Sep 2023 22:32:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-calculate-using-geodesic-distance-when/m-p/1325126#M12077</guid>
      <dc:creator>KevinCheriyan</dc:creator>
      <dc:date>2023-09-03T22:32:43Z</dc:date>
    </item>
  </channel>
</rss>

