<?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: Coordinates Problem in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coordinates-problem/m-p/327167#M30202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naci,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Are you specifying the outSpatialRefernce of the query object?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jan 2018 01:35:44 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-01-03T01:35:44Z</dc:date>
    <item>
      <title>Coordinates Problem</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coordinates-problem/m-p/327166#M30201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am observing a strange behavior with my JS (ver 3.13) based site. What I do (used to do to be&amp;nbsp;more precise) is doing a query based on the login and generate bookmarks dynamically. This used to work a few months ago, and it stopped working for some reason.&lt;/P&gt;&lt;P&gt;1) Read extents from a map service (Geographic Coordinate System: GCS_WGS_1984,&amp;nbsp;Datum: D_WGS_1984, WKID: 4326).&lt;/P&gt;&lt;P&gt;2) Convert the extents to WKID: 102100 using&amp;nbsp;esri/geometry/webMercatorUtils . Otherwise, it would give me this error: "cannot be converted to spatial reference of the map (wkid: 102100)"&lt;/P&gt;&lt;P&gt;3) Build bookmarks with projected extents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have two problems (I am really asking for the second problem mainly):&lt;/P&gt;&lt;P&gt;1) I am not able to project the extent object. This used to work a few months ago, so I am confused. I can get around this by converting to points or polygon, doing the projection and then converting&amp;nbsp;back to extent, however, this method requires me to enter the WKID and the second problem&amp;nbsp;prevents that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) The extent objects that I read have unusual coordinates. When I view the coordinates in ArcMap, they range between -180 to +180. When I read the state of Oklahoma extent,&amp;nbsp;for example, it looks like the following:&lt;/P&gt;&lt;P&gt;spatialReference:&lt;BR /&gt;{wkt: "PROJCS["Albers_Equal_Area_Conic_USGS_CONUS_NAD83",…TER["Latitude_Of_Origin",23.0],UNIT["Meter",1.0]]"}&lt;BR /&gt;type:"extent"{xmax:141320.96667405692,&amp;nbsp;xmin:-620900.8297257517,&amp;nbsp;ymax:1573499.24031829,&amp;nbsp;ymin:1173102.526342012}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what I understand is that features that return from the attribute query have been projected, although not to WKID:102100. It is certainly not &lt;SPAN&gt;4326.&amp;nbsp;&lt;/SPAN&gt;It doesn't have the WKID feature, only wkt. I&amp;nbsp;looked up&amp;nbsp;&lt;SPAN&gt;Albers_Equal_Area_Conic_USGS_CONUS_NAD83, but did not find any associated WKIDs. I can't tell what WKID I should enter. I tried entering&amp;nbsp;WKID:102100 but then my Oklahoma features ended up in West Africa.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What might be the solution here? Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 22:43:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coordinates-problem/m-p/327166#M30201</guid>
      <dc:creator>NaciDilekli</dc:creator>
      <dc:date>2018-01-02T22:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinates Problem</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coordinates-problem/m-p/327167#M30202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naci,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Are you specifying the outSpatialRefernce of the query object?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 01:35:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coordinates-problem/m-p/327167#M30202</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-01-03T01:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinates Problem</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coordinates-problem/m-p/327168#M30203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was so simple, thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 16:52:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coordinates-problem/m-p/327168#M30203</guid>
      <dc:creator>NaciDilekli</dc:creator>
      <dc:date>2018-01-03T16:52:37Z</dc:date>
    </item>
  </channel>
</rss>

