<?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 to lat long in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-to-lat-long/m-p/607223#M56783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank You.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;esri.geometry.xyToLngLat&amp;nbsp; is working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the app is&amp;nbsp; using esri.layers.ArcGISTiledMapServiceLayer&amp;nbsp; to add several layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;streetMap, imagery, topoolgies and some others&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In some variations I also set the extent.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;map.setExtent(new esri.geometry.Extent(-144.1358, 7.9814859, -52.76454, 68.8952, new esri.SpatialReference({wkid: 4326})));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the wkid&amp;nbsp; have any effect on xyToLngLat ?&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also set layers does not have a wkid parameter.&amp;nbsp; what does it use ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 May 2013 14:19:57 GMT</pubDate>
    <dc:creator>RichardDeVita</dc:creator>
    <dc:date>2013-05-30T14:19:57Z</dc:date>
    <item>
      <title>convert x y to lat long</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-to-lat-long/m-p/607220#M56780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a map with multiple layers.&amp;nbsp; I got this from an example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; streetMap =&amp;nbsp;&amp;nbsp;&amp;nbsp; new esri.layers.ArcGISTiledMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" rel="nofollow" target="_blank"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;", {id:"streetMap"}); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; map.addLayer(streetMap);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The layers display and I can switch between layers.&amp;nbsp; all is fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can draw on the map.&amp;nbsp; I want to save to points of the polygon.&amp;nbsp; However the points I get from the geometry object are x y not&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;latitude and longitude.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.connect(tb, "onDrawEnd", addGraphic);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function addGraphic(geometry) { &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; var pts = geometry.rings;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pts is a array of x and y coords.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do i get the graphics object to return Latitude and longitude ?&amp;nbsp; Or how do I convert x y to latitude and logitude ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 14:12:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-to-lat-long/m-p/607220#M56780</guid>
      <dc:creator>RichardDeVita</dc:creator>
      <dc:date>2013-05-29T14:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: convert x y to lat long</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-to-lat-long/m-p/607221#M56781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could project the points using a geometry service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://developers.arcgis.com/en/javascript/jssamples/util_project.html"&gt;http://developers.arcgis.com/en/javascript/jssamples/util_project.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 16:17:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-to-lat-long/m-p/607221#M56781</guid>
      <dc:creator>TimDine</dc:creator>
      <dc:date>2013-05-29T16:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: convert x y to lat long</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-to-lat-long/m-p/607222#M56782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/namespace_geometry.html#xytolnglat" rel="nofollow" target="_blank"&gt;esri.geometry.xyToLngLat&lt;/A&gt;&lt;SPAN&gt;, which translates Web Mercator coordinates to lat/long.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 16:56:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-to-lat-long/m-p/607222#M56782</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2013-05-29T16:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: convert x y to lat long</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-to-lat-long/m-p/607223#M56783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank You.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;esri.geometry.xyToLngLat&amp;nbsp; is working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the app is&amp;nbsp; using esri.layers.ArcGISTiledMapServiceLayer&amp;nbsp; to add several layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;streetMap, imagery, topoolgies and some others&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In some variations I also set the extent.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;map.setExtent(new esri.geometry.Extent(-144.1358, 7.9814859, -52.76454, 68.8952, new esri.SpatialReference({wkid: 4326})));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the wkid&amp;nbsp; have any effect on xyToLngLat ?&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also set layers does not have a wkid parameter.&amp;nbsp; what does it use ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 14:19:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-to-lat-long/m-p/607223#M56783</guid>
      <dc:creator>RichardDeVita</dc:creator>
      <dc:date>2013-05-30T14:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: convert x y to lat long</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-to-lat-long/m-p/607224#M56784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Don't forget to click the check mark and promote the post that best answered your original question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The conversion will only work for a geographic coordinate system, and I believe (and someone please correct me if I'm wrong) only with 4326.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 16:49:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-to-lat-long/m-p/607224#M56784</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2013-05-30T16:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: convert x y to lat long</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-to-lat-long/m-p/607225#M56785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Correct, that function will only do web mercator to WGS84 Decimal Degrees.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Geometry service sample from ESRI would be used to project between other coordinate systems.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 12:15:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-to-lat-long/m-p/607225#M56785</guid>
      <dc:creator>TimDine</dc:creator>
      <dc:date>2013-05-31T12:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: convert x y to lat long</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-to-lat-long/m-p/607226#M56786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A good alternative to using a Geometry service to do projections is to use &lt;/SPAN&gt;&lt;A href="https://github.com/bewest/proj4js"&gt;proj4js&lt;/A&gt;&lt;SPAN&gt; and do the conversions on the client.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 21:05:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/convert-x-y-to-lat-long/m-p/607226#M56786</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2013-05-31T21:05:50Z</dc:date>
    </item>
  </channel>
</rss>

