<?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: problem in conversion of extent object in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-in-conversion-of-extent-object/m-p/531876#M49563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;That fix it. Thank you very much! I just dont understand why the spatialReference was broken somewhere during the features creation.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Awesome!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No worries! I see this issue fairly frequently, especially when people are getting their data from JSON.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jan 2014 18:14:09 GMT</pubDate>
    <dc:creator>JonathanUihlein</dc:creator>
    <dc:date>2014-01-17T18:14:09Z</dc:date>
    <item>
      <title>problem in conversion of extent object</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-in-conversion-of-extent-object/m-p/531873#M49560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to do a map.setExtent(extent, true) but I got this error in the console: &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;"Map: Geometry (wkid: GEOGCS["Longitude / Latitude (WGS 84)",DATUM["WGS 84",SPHEROID["WGS 84",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Decimal_Degree",0.0174532925199433]]) cannot be converted to spatial reference of the map (wkid: 4326)"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the extent object seems to be good and in the same spatial reference of the map&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;extent object: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;spatialReference: Object&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; wkt: "GEOGCS["Longitude / Latitude (WGS 84)",DATUM["WGS 84",SPHEROID["WGS 84",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Decimal_Degree",0.0174532925199433]]"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;type: extent&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;xmax: -72.54337729099996&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;xmin: -74.16215098199996&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ymax: 46.45532899700004&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ymin: 45.35837900300004&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var extent = esri.graphicsExtent(result.featureSet.features); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(extent) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.setExtent(extent.expand(1.5, true);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 16:54:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-in-conversion-of-extent-object/m-p/531873#M49560</guid>
      <dc:creator>MaxDemars</dc:creator>
      <dc:date>2014-01-17T16:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: problem in conversion of extent object</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-in-conversion-of-extent-object/m-p/531874#M49561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It might be your spatial Reference object. Recreate the spatialReference object before creating your extent object to see if that changes anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;require([ &amp;nbsp; "esri/geometry/Extent", "esri/SpatialReference", ...&amp;nbsp; ], function(Extent, SpatialReference, ... ) { &amp;nbsp;&amp;nbsp; var sr = new SpatialReference({"wkid": 4326}); &amp;nbsp;&amp;nbsp; var extent = new Extent(-122.68,45.53,-122.45,45.60, sr); &amp;nbsp; ... });&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that doesn't fix the issue, can you generate a really quick sample using &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://jsfiddle.net" rel="nofollow" target="_blank"&gt;http://jsfiddle.net&lt;/A&gt;&lt;SPAN&gt; ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 17:45:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-in-conversion-of-extent-object/m-p/531874#M49561</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2014-01-17T17:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: problem in conversion of extent object</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-in-conversion-of-extent-object/m-p/531875#M49562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It might be your spatial Reference object. Recreate the spatialReference object before creating your extent object to see if that changes anything.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
require([
&amp;nbsp; "esri/geometry/Extent", "esri/SpatialReference", ... 
], function(Extent, SpatialReference, ... ) {
&amp;nbsp;&amp;nbsp; var sr = new SpatialReference({"wkid": 4326});
&amp;nbsp;&amp;nbsp; var extent = new Extent(-122.68,45.53,-122.45,45.60, sr);
&amp;nbsp; ...
});&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;If that doesn't fix the issue, can you generate a really quick sample using &lt;A href="http://jsfiddle.net" rel="nofollow noopener noreferrer" target="_blank"&gt;http://jsfiddle.net&lt;/A&gt; ?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That fix it. Thank you very much! I just dont understand why the spatialReference was broken somewhere during the features creation. In my point of view the wkt (see first post) of the extent objects was corresponding to wkid 4326&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:08:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-in-conversion-of-extent-object/m-p/531875#M49562</guid>
      <dc:creator>MaxDemars</dc:creator>
      <dc:date>2021-12-11T23:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: problem in conversion of extent object</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-in-conversion-of-extent-object/m-p/531876#M49563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;That fix it. Thank you very much! I just dont understand why the spatialReference was broken somewhere during the features creation.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Awesome!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No worries! I see this issue fairly frequently, especially when people are getting their data from JSON.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 18:14:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-in-conversion-of-extent-object/m-p/531876#M49563</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2014-01-17T18:14:09Z</dc:date>
    </item>
  </channel>
</rss>

