<?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: Convert x,y from a specific projection to lat lon in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-from-a-specific-projection-to-lat-lon/m-p/1272991#M80688</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/881"&gt;@BjornSvensson&lt;/a&gt;&amp;nbsp;Thanks for writing. Yes, its a geocoding service and it's properly sitting on the map. The problem is coming while I am trying to do a cluster. During that time it's taking the x,y received from the geocoding service and moves the cluster near the equator.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2023 12:12:19 GMT</pubDate>
    <dc:creator>ADITYAKUMAR1</dc:creator>
    <dc:date>2023-03-29T12:12:19Z</dc:date>
    <item>
      <title>Convert x,y from a specific projection to lat lon</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-from-a-specific-projection-to-lat-lon/m-p/1270969#M80646</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a geocoding service which is in&amp;nbsp;&lt;STRONG&gt;Spatial Reference:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;102642 &amp;nbsp;(2226) &amp;nbsp;VCSWkid(115702) &amp;nbsp;LatestVCSWkid(115702).&amp;nbsp; On doing the search, I get the data as&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Point:&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;X:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;6482724.46755938&lt;BR /&gt;&lt;I&gt;Y:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;1722670.7755127912&lt;/P&gt;&lt;P&gt;But when I try to plot it on the map it goes to some random location and at the same time if I try &lt;SPAN&gt;xyToLngLat&lt;/SPAN&gt;&lt;SPAN class=""&gt;(x, y)&lt;/SPAN&gt;&amp;nbsp; it's again moving to some random location. Any idea how to resolve it.&lt;/P&gt;&lt;P&gt;I am using ArcGIS JavaScript 4.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aditya Kumar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 16:52:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-from-a-specific-projection-to-lat-lon/m-p/1270969#M80646</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2023-03-23T16:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert x,y from a specific projection to lat lon</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-from-a-specific-projection-to-lat-lon/m-p/1271573#M80664</link>
      <description>&lt;P&gt;The&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-webMercatorUtils.html#xyToLngLat" target="_blank" rel="noopener"&gt;webMercatorUtils.xyToLngLat()&lt;/A&gt;&amp;nbsp;method &lt;EM&gt;"Translates the given Web Mercator coordinates to Longitude and Latitude values (decimal degrees).".&amp;nbsp;&lt;/EM&gt; If your data is in 102642 (which isn't Web Mercator) or you don't want it in latlong decimal degrees, then you'll have to use another method. But ...&lt;/P&gt;&lt;P&gt;Is that an ArcGIS Geocoding Service?&amp;nbsp; If so, it can do the projection for you, no need to do it yourself client-side.&lt;BR /&gt;&lt;BR /&gt;Also, the MapView should automatically project your graphics even if they're in a different spatial reference. No need to do it yourself.&amp;nbsp; See e.g.&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/client-projection/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/sample-code/client-projection/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If this above doesn't help, maybe you can share a codepen or something similar with the minimum code to reproduce the issue you're seeing?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 22:07:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-from-a-specific-projection-to-lat-lon/m-p/1271573#M80664</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2023-03-24T22:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Convert x,y from a specific projection to lat lon</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-from-a-specific-projection-to-lat-lon/m-p/1272991#M80688</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/881"&gt;@BjornSvensson&lt;/a&gt;&amp;nbsp;Thanks for writing. Yes, its a geocoding service and it's properly sitting on the map. The problem is coming while I am trying to do a cluster. During that time it's taking the x,y received from the geocoding service and moves the cluster near the equator.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 12:12:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-from-a-specific-projection-to-lat-lon/m-p/1272991#M80688</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2023-03-29T12:12:19Z</dc:date>
    </item>
  </channel>
</rss>

