<?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: How to convert X,Y coordiinates to Long,Lat (wkid:2039 to wkid:4326) and vice versa in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-convert-x-y-coordiinates-to-long-lat-wkid/m-p/1020442#M14372</link>
    <description>&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is nothing specific to WAB. There are dozens of answered question about projecting coordinate in the JS API space. Here is one assuming you are still using 3D in WAB.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript/example-for-projection/m-p/53909#M4778" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-javascript/example-for-projection/m-p/53909#M4778&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2021 13:12:42 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2021-01-27T13:12:42Z</dc:date>
    <item>
      <title>How to convert X,Y coordiinates to Long,Lat (wkid:2039 to wkid:4326) and vice versa</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-convert-x-y-coordiinates-to-long-lat-wkid/m-p/1019956#M14363</link>
      <description>&lt;P&gt;In &lt;SPAN&gt;WAB&amp;nbsp;(Develper Edtion) 2.17&lt;/SPAN&gt; custom widget, How to convert point X,Y coordinates (Israel New Grid wkid:2039) to geographic Long,Lat (wkid:4326) and vice versa ? maybe in Coordinate.js there is some useful code for this?&lt;/P&gt;&lt;P&gt;Help will be greatly appreciated,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 09:14:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-convert-x-y-coordiinates-to-long-lat-wkid/m-p/1019956#M14363</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2021-01-27T09:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert X,Y coordiinates to Long,Lat (wkid:2039 to wkid:4326) and vice versa</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-convert-x-y-coordiinates-to-long-lat-wkid/m-p/1020403#M14371</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1104"&gt;@RobertScheitlin__GISP&lt;/a&gt;&amp;nbsp;maybe you can help? Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 09:18:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-convert-x-y-coordiinates-to-long-lat-wkid/m-p/1020403#M14371</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2021-01-27T09:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert X,Y coordiinates to Long,Lat (wkid:2039 to wkid:4326) and vice versa</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-convert-x-y-coordiinates-to-long-lat-wkid/m-p/1020442#M14372</link>
      <description>&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is nothing specific to WAB. There are dozens of answered question about projecting coordinate in the JS API space. Here is one assuming you are still using 3D in WAB.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript/example-for-projection/m-p/53909#M4778" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-javascript/example-for-projection/m-p/53909#M4778&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 13:12:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-convert-x-y-coordiinates-to-long-lat-wkid/m-p/1020442#M14372</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-01-27T13:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert X,Y coordiinates to Long,Lat (wkid:2039 to wkid:4326) and vice versa</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-convert-x-y-coordiinates-to-long-lat-wkid/m-p/1020507#M14373</link>
      <description>&lt;P&gt;Dear Robert,&lt;/P&gt;&lt;P&gt;I'm indeed developing 3D custom widgets for WAB 2.17&lt;/P&gt;&lt;P&gt;I'm sorry, but I totally don't understand your example. I just started with this era which is very new to me.&lt;/P&gt;&lt;P&gt;I don't need extent. I have pair of wkid:2039 x,y coordinates of some point location and I need to evaluate the geographic wkid:4326 long/lat. I know that the WAB sceneView map is wkid:4326 (actually it uses WGS_1984_Web_Mercator_Auxiliary_Sphere (3857) which is also called102100 spatial reference - I don't know exactly what all this means...), and that the transformation forward/nackward to wkid:2039 is TFWKID:108021 and that is all inputs I know.&lt;/P&gt;&lt;P&gt;I have not learned yet the "project/projection" subject involving with transformatons and besides getting help with my specific question, I'd like to get hints what are the links to look in order to properly learn and understand this subject which seem to me a complicated one. I appreciate your help very much.&lt;/P&gt;&lt;P&gt;I see that webMercatorUtils has xyToLngLat() function, but it ises wkid:3857 while I need to convert for wkid:2039 ... so I understand I am missing something important in how to do conversions...&lt;/P&gt;&lt;P&gt;P.S. I used some independent code (from &lt;A href="https://github.com/nonzero/js-itm" target="_self"&gt;github&lt;/A&gt;), but the results were not accurate, so I must use esri functions.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 15:50:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-convert-x-y-coordiinates-to-long-lat-wkid/m-p/1020507#M14373</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2021-01-27T15:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert X,Y coordiinates to Long,Lat (wkid:2039 to wkid:4326) and vice versa</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-convert-x-y-coordiinates-to-long-lat-wkid/m-p/1020531#M14375</link>
      <description>&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Maybe this will help. The only thing I used to figure this out is the help docs.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  &amp;lt;script&amp;gt;
    require([
      "esri/geometry/projection",
      "esri/geometry/SpatialReference",
      "esri/geometry/Point",
      "esri/geometry/support/GeographicTransformationStep",
      "esri/geometry/support/GeographicTransformation"
    ], function (projection, SpatialReference, Point, GeographicTransformationStep, GeographicTransformation) {
      const cs2 = new SpatialReference({
        wkid: 4326
      });

      const geoStep = new GeographicTransformationStep({
        wkid: 108021
      });

      const geoTrans = new GeographicTransformation({
        steps:[geoStep]
      });

      const pnt = new Point({
        x: xxxxx,
        y: yyyy,
        spatialReference: 2039
      });
      projection.load().then(function (evt) {
        const pGeom = projection.project(pnt, cs2, geoTrans);
      });
    });
  &amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 Jan 2021 16:00:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-convert-x-y-coordiinates-to-long-lat-wkid/m-p/1020531#M14375</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-01-27T16:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert X,Y coordiinates to Long,Lat (wkid:2039 to wkid:4326) and vice versa</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-convert-x-y-coordiinates-to-long-lat-wkid/m-p/1020566#M14376</link>
      <description>&lt;P&gt;Dear Robert,&lt;/P&gt;&lt;P&gt;It gives error of abot 200 meters...&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it can help, I can give you my code so it can be run and debugged.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 17:16:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-convert-x-y-coordiinates-to-long-lat-wkid/m-p/1020566#M14376</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2021-01-27T17:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert X,Y coordiinates to Long,Lat (wkid:2039 to wkid:4326) and vice versa</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-convert-x-y-coordiinates-to-long-lat-wkid/m-p/1020574#M14377</link>
      <description>&lt;P&gt;I found that in&amp;nbsp;new GeographicTransformationStep I need to add&amp;nbsp;isInverse: true&lt;/P&gt;&lt;P&gt;I still don't know if it is more accurate or less accurate than what I've got with the google way (which gave approximately 10m error). I'm still checking it...&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 17:40:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-convert-x-y-coordiinates-to-long-lat-wkid/m-p/1020574#M14377</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2021-01-27T17:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert X,Y coordiinates to Long,Lat (wkid:2039 to wkid:4326) and vice versa</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-convert-x-y-coordiinates-to-long-lat-wkid/m-p/1021019#M14382</link>
      <description>&lt;P&gt;Thank you, Robert. It's correct (only&amp;nbsp;&lt;SPAN&gt;in&amp;nbsp;new GeographicTransformationStep I need to add&amp;nbsp;isInverse: true)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 15:35:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-convert-x-y-coordiinates-to-long-lat-wkid/m-p/1021019#M14382</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2021-01-28T15:35:24Z</dc:date>
    </item>
  </channel>
</rss>

