<?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 Geodesic offset not returning expected results in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/geodesic-offset-not-returning-expected-results/m-p/615777#M5457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using geodesicMovePoints to record locations of marine mammals using a bearing and distance provided by the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far everything is working smoothly using something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #008400;"&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;//create point for platform location&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSPoint&lt;/SPAN&gt;* vesselPoint = [&lt;SPAN style="color: #4f8187;"&gt;AGSPoint&lt;/SPAN&gt; &lt;SPAN style="color: #31595d;"&gt;pointWithX&lt;/SPAN&gt;:[platX &lt;SPAN style="color: #3d1d81;"&gt;doubleValue&lt;/SPAN&gt;] &lt;SPAN style="color: #31595d;"&gt;y&lt;/SPAN&gt;:[platY &lt;SPAN style="color: #3d1d81;"&gt;doubleValue&lt;/SPAN&gt;] &lt;SPAN style="color: #31595d;"&gt;spatialReference&lt;/SPAN&gt;:[&lt;SPAN style="color: #4f8187;"&gt;AGSSpatialReference&lt;/SPAN&gt; &lt;SPAN style="color: #31595d;"&gt;wgs84SpatialReference&lt;/SPAN&gt;]];&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #008400;"&gt;//drop it in an arrray for move&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;SPAN style="color: #703daa;"&gt;NSArray&lt;/SPAN&gt; *pointArray = [&lt;SPAN style="color: #703daa;"&gt;NSArray&lt;/SPAN&gt; &lt;SPAN style="color: #3d1d81;"&gt;arrayWithObject&lt;/SPAN&gt;:vesselPoint];&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #008400;"&gt;//move points&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #4f8187;"&gt;AGSGeometryEngine&lt;SPAN style="color: #000000;"&gt; *pointEngine = [[&lt;/SPAN&gt;AGSGeometryEngine&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;alloc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;]&lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;init&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;SPAN style="color: #703daa;"&gt;NSArray&lt;/SPAN&gt; *movedPoints = [pointEngine &lt;SPAN style="color: #31595d;"&gt;geodesicMovePoints&lt;/SPAN&gt;:pointArray &lt;SPAN style="color: #31595d;"&gt;byDistance&lt;/SPAN&gt;:distance &lt;SPAN style="color: #31595d;"&gt;inUnit&lt;/SPAN&gt;:&lt;SPAN style="color: #31595d;"&gt;AGSSRUnitMeter&lt;/SPAN&gt; &lt;SPAN style="color: #31595d;"&gt;azimuth&lt;/SPAN&gt;:bearing];&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSPoint&lt;/SPAN&gt;* updatedPoint = [movedPoints &lt;SPAN style="color: #3d1d81;"&gt;firstObject&lt;/SPAN&gt;];&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;However it doesn't seem like the point are being moved far enough... for instance I have collected a couple test points using a base TPK with some buffered distances baked in from some test points:&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;IMG alt="testpic.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/25346_testpic.png" style="width: 620px; height: 827px;" /&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;The first point was collected with an offset of 10 meters at bearing 180.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;The second point was collected with an offset of 50 meters, also at 180.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;The actual measurements from the test point are 7.7 and 45.8 meters.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Can someone explain a bit about what is going on in the geodesicMovePoints function?&amp;nbsp; Any ideas what might be accounting for the discrepancy in distance?&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;A href="https://community.esri.com/migrated-users/4325"&gt;Matt Cooper&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Oct 2014 23:40:24 GMT</pubDate>
    <dc:creator>MichaelDavis3</dc:creator>
    <dc:date>2014-10-27T23:40:24Z</dc:date>
    <item>
      <title>Geodesic offset not returning expected results</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/geodesic-offset-not-returning-expected-results/m-p/615777#M5457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using geodesicMovePoints to record locations of marine mammals using a bearing and distance provided by the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far everything is working smoothly using something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #008400;"&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;//create point for platform location&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSPoint&lt;/SPAN&gt;* vesselPoint = [&lt;SPAN style="color: #4f8187;"&gt;AGSPoint&lt;/SPAN&gt; &lt;SPAN style="color: #31595d;"&gt;pointWithX&lt;/SPAN&gt;:[platX &lt;SPAN style="color: #3d1d81;"&gt;doubleValue&lt;/SPAN&gt;] &lt;SPAN style="color: #31595d;"&gt;y&lt;/SPAN&gt;:[platY &lt;SPAN style="color: #3d1d81;"&gt;doubleValue&lt;/SPAN&gt;] &lt;SPAN style="color: #31595d;"&gt;spatialReference&lt;/SPAN&gt;:[&lt;SPAN style="color: #4f8187;"&gt;AGSSpatialReference&lt;/SPAN&gt; &lt;SPAN style="color: #31595d;"&gt;wgs84SpatialReference&lt;/SPAN&gt;]];&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #008400;"&gt;//drop it in an arrray for move&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;SPAN style="color: #703daa;"&gt;NSArray&lt;/SPAN&gt; *pointArray = [&lt;SPAN style="color: #703daa;"&gt;NSArray&lt;/SPAN&gt; &lt;SPAN style="color: #3d1d81;"&gt;arrayWithObject&lt;/SPAN&gt;:vesselPoint];&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #008400;"&gt;//move points&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #4f8187;"&gt;AGSGeometryEngine&lt;SPAN style="color: #000000;"&gt; *pointEngine = [[&lt;/SPAN&gt;AGSGeometryEngine&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;alloc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;]&lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;init&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;SPAN style="color: #703daa;"&gt;NSArray&lt;/SPAN&gt; *movedPoints = [pointEngine &lt;SPAN style="color: #31595d;"&gt;geodesicMovePoints&lt;/SPAN&gt;:pointArray &lt;SPAN style="color: #31595d;"&gt;byDistance&lt;/SPAN&gt;:distance &lt;SPAN style="color: #31595d;"&gt;inUnit&lt;/SPAN&gt;:&lt;SPAN style="color: #31595d;"&gt;AGSSRUnitMeter&lt;/SPAN&gt; &lt;SPAN style="color: #31595d;"&gt;azimuth&lt;/SPAN&gt;:bearing];&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;SPAN style="color: #4f8187;"&gt;AGSPoint&lt;/SPAN&gt;* updatedPoint = [movedPoints &lt;SPAN style="color: #3d1d81;"&gt;firstObject&lt;/SPAN&gt;];&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;However it doesn't seem like the point are being moved far enough... for instance I have collected a couple test points using a base TPK with some buffered distances baked in from some test points:&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;IMG alt="testpic.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/25346_testpic.png" style="width: 620px; height: 827px;" /&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;The first point was collected with an offset of 10 meters at bearing 180.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;The second point was collected with an offset of 50 meters, also at 180.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;The actual measurements from the test point are 7.7 and 45.8 meters.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Can someone explain a bit about what is going on in the geodesicMovePoints function?&amp;nbsp; Any ideas what might be accounting for the discrepancy in distance?&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;A href="https://community.esri.com/migrated-users/4325"&gt;Matt Cooper&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 23:40:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/geodesic-offset-not-returning-expected-results/m-p/615777#M5457</guid>
      <dc:creator>MichaelDavis3</dc:creator>
      <dc:date>2014-10-27T23:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Geodesic offset not returning expected results</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/geodesic-offset-not-returning-expected-results/m-p/615778#M5458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Noticed a somewhat related post here:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/message/349283#349283"&gt;https://community.esri.com/message/349283#349283&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think what was happening is that the geodesic move may have been executing in Web Mercator.&amp;nbsp; Not sure why, as I was firing up a new geometry engine for the task and explicitly creating a WGS84 point to move.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either way I changed up some variable types (bearing and distance as double vs. integer) and magically everything started working.&amp;nbsp; Now have a check to do a geodesic measure back between the original point and new point and it checks out every time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Weird - but whatever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 00:47:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/geodesic-offset-not-returning-expected-results/m-p/615778#M5458</guid>
      <dc:creator>MichaelDavis3</dc:creator>
      <dc:date>2014-10-29T00:47:37Z</dc:date>
    </item>
  </channel>
</rss>

