<?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: Confuse API reference notes esri.geometry.lngLatToXY(long, lat, isLinear) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/confuse-api-reference-notes-esri-geometry/m-p/61622#M5417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for that - I realize I probably need the projecyt method - however what the post was really about was the mis-match between thing and the snippet the (it is under the &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Arial;"&gt;esri.geometry.&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color:#ff0000;"&gt;lngLatToXY &lt;/SPAN&gt;but the &lt;/STRONG&gt;&lt;SPAN&gt;snippet is for XYTolngLat.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2013 07:22:36 GMT</pubDate>
    <dc:creator>AdrianMarsden</dc:creator>
    <dc:date>2013-02-08T07:22:36Z</dc:date>
    <item>
      <title>Confuse API reference notes esri.geometry.lngLatToXY(long, lat, isLinear)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/confuse-api-reference-notes-esri-geometry/m-p/61620#M5415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK - late in the day here but on&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#namespace_geometry/esri.geometry.lngLatToXY" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#namespace_geometry/esri.geometry.lngLatToXY&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For esri.geometry.&lt;/SPAN&gt;&lt;STRONG style="color: #ff0000;"&gt;lngLatToXY&lt;/STRONG&gt;&lt;SPAN&gt;(long, lat, isLinear)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the example is &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

 var normalizedVal = esri.geometry.&lt;SPAN style="color:#ff0000;"&gt;&lt;STRONG&gt;xyToLngLat&lt;/STRONG&gt;&lt;/SPAN&gt;(42215329, 1321748);
 console.log(normalizedVal); //returns 19.226, 11.789
 
 var value = esri.geometry.&lt;SPAN style="color:#ff0000;"&gt;&lt;STRONG&gt;xyToLngLat&lt;/STRONG&gt;&lt;/SPAN&gt;(42215329, 1321748, true);
&lt;SPAN style="color:#000000;"&gt; console.log(value); // returns 379.22, 11.78&lt;/SPAN&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the part for &lt;/SPAN&gt;&lt;SPAN style="font-family:Lucida Grande;"&gt;esri.geometry.&lt;STRONG style="color: #ff0000;"&gt;xyToLngLat&lt;/STRONG&gt;(long, lat) has no examples&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I just confused?&amp;nbsp; All I am trying to do is use these to go from UK WKID (27700) to google map friendly co-ordinates (I realise there may be a small error, but all I need is a good approximation)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:20:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/confuse-api-reference-notes-esri-geometry/m-p/61620#M5415</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2021-12-10T22:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Confuse API reference notes esri.geometry.lngLatToXY(long, lat, isLinear)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/confuse-api-reference-notes-esri-geometry/m-p/61621#M5416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Adrian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Those methods are only for converting from Web Mercator to Geographic and the reverse. If you want to convert to another coordinate system take a look at the Geometry Service's project method: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#GeometryService/project"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#GeometryService/project&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 21:00:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/confuse-api-reference-notes-esri-geometry/m-p/61621#M5416</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2013-02-07T21:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Confuse API reference notes esri.geometry.lngLatToXY(long, lat, isLinear)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/confuse-api-reference-notes-esri-geometry/m-p/61622#M5417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for that - I realize I probably need the projecyt method - however what the post was really about was the mis-match between thing and the snippet the (it is under the &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Arial;"&gt;esri.geometry.&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color:#ff0000;"&gt;lngLatToXY &lt;/SPAN&gt;but the &lt;/STRONG&gt;&lt;SPAN&gt;snippet is for XYTolngLat.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 07:22:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/confuse-api-reference-notes-esri-geometry/m-p/61622#M5417</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2013-02-08T07:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Confuse API reference notes esri.geometry.lngLatToXY(long, lat, isLinear)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/confuse-api-reference-notes-esri-geometry/m-p/61623#M5418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok now I get it - we'll get the error fixed in the documentation for the next release. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kelly&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 15:09:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/confuse-api-reference-notes-esri-geometry/m-p/61623#M5418</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2013-02-08T15:09:46Z</dc:date>
    </item>
  </channel>
</rss>

