<?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: Distance in Geometry Engine is incorrect in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/distance-in-geometry-engine-is-incorrect/m-p/818813#M7184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Benjamin,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; Are you zoomed in and using snapping when measuring? 50 ~ 100 ft is quite easy to mistakenly measure if zoomed out. A lot of testing has gone into the GeometryEngine so I am less likely to believe that it is the issue or else LOTS of people would be screaming about this.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jul 2016 16:15:45 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2016-07-06T16:15:45Z</dc:date>
    <item>
      <title>Distance in Geometry Engine is incorrect</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/distance-in-geometry-engine-is-incorrect/m-p/818810#M7181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have noticed NearMe widget displays incorrect distance. Does anyone have this problem?&amp;nbsp; I looked into code and I have found out that NearMe widget uses Geometry Engine to calculate distance between two geometries. Maybe this is a bug with Geometry Engine. ESRI needs to fix this bug. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 11:45:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/distance-in-geometry-engine-is-incorrect/m-p/818810#M7181</guid>
      <dc:creator>BenjaminKim1</dc:creator>
      <dc:date>2016-07-06T11:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Distance in Geometry Engine is incorrect</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/distance-in-geometry-engine-is-incorrect/m-p/818811#M7182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Benjamin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; What criteria have you used to determine it is the incorrect distance? Are you using a esri basemap or is your map in a planar SR?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 13:24:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/distance-in-geometry-engine-is-incorrect/m-p/818811#M7182</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-07-06T13:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Distance in Geometry Engine is incorrect</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/distance-in-geometry-engine-is-incorrect/m-p/818812#M7183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using my own base map which is in Web Mercator coordinate. The distance from Geometry Engine is larger (50~100 ft) than the Measurement widget result and that is why I think something must be wrong with Geometry Engine distance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 16:00:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/distance-in-geometry-engine-is-incorrect/m-p/818812#M7183</guid>
      <dc:creator>BenjaminKim1</dc:creator>
      <dc:date>2016-07-06T16:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Distance in Geometry Engine is incorrect</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/distance-in-geometry-engine-is-incorrect/m-p/818813#M7184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Benjamin,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; Are you zoomed in and using snapping when measuring? 50 ~ 100 ft is quite easy to mistakenly measure if zoomed out. A lot of testing has gone into the GeometryEngine so I am less likely to believe that it is the issue or else LOTS of people would be screaming about this.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 16:15:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/distance-in-geometry-engine-is-incorrect/m-p/818813#M7184</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-07-06T16:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Distance in Geometry Engine is incorrect</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/distance-in-geometry-engine-is-incorrect/m-p/818814#M7185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have zoomed in to verify the distance and I don't use snapping. This is the first time I am using Geometry Engine in my JS app and maybe I am using it incorrectly. Although my base map is in Web Mercator all the operational layers are in state plane and they are re-projected to Web Mercator on the fly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to use Geometry Engine do all operational layers need to be in Web Mercator as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 16:24:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/distance-in-geometry-engine-is-incorrect/m-p/818814#M7185</guid>
      <dc:creator>BenjaminKim1</dc:creator>
      <dc:date>2016-07-06T16:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Distance in Geometry Engine is incorrect</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/distance-in-geometry-engine-is-incorrect/m-p/818815#M7186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Benjamin, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; No the only one that matters is the basemap as that is the one that sets your maps SR. Are you using geodesicLength or planarLength methods?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 16:47:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/distance-in-geometry-engine-is-incorrect/m-p/818815#M7186</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-07-06T16:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Distance in Geometry Engine is incorrect</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/distance-in-geometry-engine-is-incorrect/m-p/818816#M7187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A _jive_internal="true" data-userid="3101" data-username="rscheitlin" href="https://community.esri.com/people/rscheitlin"&gt;Robert &lt;/A&gt; for helping me in this issue.&lt;/P&gt;&lt;P&gt;I ended up writing my own function returning correct distance using Geometry Service instead of Geometry Engine. ''distParams.geodesic = true'' returns correct distance. I still wonder why Geometry Engine does not work with my data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway your answer in this question also helped me a lot&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/107086"&gt;Looping with GeometryService Distance (deferred problem?)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 19:54:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/distance-in-geometry-engine-is-incorrect/m-p/818816#M7187</guid>
      <dc:creator>BenjaminKim1</dc:creator>
      <dc:date>2016-07-06T19:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Distance in Geometry Engine is incorrect</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/distance-in-geometry-engine-is-incorrect/m-p/818817#M7188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Benjamin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you clarify which geometryEngine method(s) you were using? Was it the distance() method? If so, then I would suspect it's the issue Robert pointed out - That you are calculating web mercator coordinates with planar measurements (distance() is a planar measuring tool, not geodesic). Therefore the calculation itself was likely correct, but the WebMercator projection was distorting the true measurement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather than using distance or planarLength(), I would suggest you use geodesicLength() instead if you are working in WebMercator. This allows you to get more correct measurements in a distorted projection with the benefit of keeping all calculations on the client and not having to make extra network requests. I encourage you to read this blog post that discusses this in more detail here - &lt;A href="https://blogs.esri.com/esri/arcgis/2015/09/16/geometryengine-part-2-measurement/" title="https://blogs.esri.com/esri/arcgis/2015/09/16/geometryengine-part-2-measurement/"&gt;GeometryEngine part 2: Measurement | ArcGIS Blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be sure to note the differences between distance() and geodesicLength() - distance takes in two input points, whereas geodesicLength() takes in a polyline. So if measuring the distance between two points, you will first need to create a polyline with those two points as beginning and ending vertices on the path. Let me know if you're still stuck with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 17:08:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/distance-in-geometry-engine-is-incorrect/m-p/818817#M7188</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2016-07-08T17:08:40Z</dc:date>
    </item>
  </channel>
</rss>

