<?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: error rendering result query on map with 'outSpatialReference' in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/error-rendering-result-query-on-map-with/m-p/232738#M5480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i entered in my code the wkid of spatial reference with id&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;fx:Declarations&amp;gt;
&amp;lt;esri:Extent&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:SpatialReference wkid="102100" id="sp"/&amp;gt;
&amp;lt;/esri:Extent&amp;gt;
&amp;nbsp; &amp;lt;esri:QueryTask id="queryTask"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; executeComplete="navigator.pushView(ApplicazioneHomeView, event.featureSet)"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showBusyCursor="false"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://www.pcn.minambiente.it/arcgis/rest/services/classificazione_sismica_comunale_2012/MapServer/0"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; useAMF="true"/&amp;gt;
&amp;nbsp; &amp;lt;esri:Query id="query"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields="['comune']"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; returnGeometry="true" outSpatialReference="{sp}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where="{data}"/&amp;gt;
 &amp;lt;/fx:Declarations&amp;gt;

&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;and i call it and now the application works&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 11:46:25 GMT</pubDate>
    <dc:creator>francescodi_vito</dc:creator>
    <dc:date>2021-12-11T11:46:25Z</dc:date>
    <item>
      <title>error rendering result query on map with 'outSpatialReference'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/error-rendering-result-query-on-map-with/m-p/232736#M5478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello to all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a mobile application and following the example of Mansour Raad I created a query that passes the result directly on the map&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I have a problem, when the result is passed to the map traslatto result than the basemap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The basemap is Topo with wkid 102100 while the service on which I make the query is 32633. How can I fix the problem in order to correctly project the result on the map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I try with insert a property "outSpatialReference"&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;lt;fx:Declarations&amp;gt;
&amp;nbsp; &amp;lt;esri:QueryTask id="queryTask"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; executeComplete="navigator.pushView(ApplicazioneHomeView, event.featureSet)"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showBusyCursor="false"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://www.pcn.minambiente.it/arcgis/rest/services/classificazione_sismica_comunale_2012/MapServer/0"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; useAMF="true"/&amp;gt;
&amp;nbsp; &amp;lt;esri:Query id="query"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields="['comune']"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; returnGeometry="true" outSpatialReference="32633"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where="{data}"/&amp;gt;
 &amp;lt;/fx:Declarations&amp;gt;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;but return an error:&amp;nbsp; 'outSpatialReference': values of type com.esri.ags.SpatialReference cannot be represented in text. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is welcome &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bye&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 13:00:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/error-rendering-result-query-on-map-with/m-p/232736#M5478</guid>
      <dc:creator>francescodi_vito</dc:creator>
      <dc:date>2013-11-04T13:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: error rendering result query on map with 'outSpatialReference'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/error-rendering-result-query-on-map-with/m-p/232737#M5479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Francesco,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The error message is try to tell you that it is looking for a spatial reference object and not the WKID string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;esri:Query id="query"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields="['comune']"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; returnGeometry="true" outSpatialReference="{new SpatialReference(32633)}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where="{data}"/&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:46:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/error-rendering-result-query-on-map-with/m-p/232737#M5479</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T11:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: error rendering result query on map with 'outSpatialReference'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/error-rendering-result-query-on-map-with/m-p/232738#M5480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i entered in my code the wkid of spatial reference with id&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;fx:Declarations&amp;gt;
&amp;lt;esri:Extent&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:SpatialReference wkid="102100" id="sp"/&amp;gt;
&amp;lt;/esri:Extent&amp;gt;
&amp;nbsp; &amp;lt;esri:QueryTask id="queryTask"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; executeComplete="navigator.pushView(ApplicazioneHomeView, event.featureSet)"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showBusyCursor="false"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://www.pcn.minambiente.it/arcgis/rest/services/classificazione_sismica_comunale_2012/MapServer/0"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; useAMF="true"/&amp;gt;
&amp;nbsp; &amp;lt;esri:Query id="query"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields="['comune']"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; returnGeometry="true" outSpatialReference="{sp}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where="{data}"/&amp;gt;
 &amp;lt;/fx:Declarations&amp;gt;

&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;and i call it and now the application works&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:46:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/error-rendering-result-query-on-map-with/m-p/232738#M5480</guid>
      <dc:creator>francescodi_vito</dc:creator>
      <dc:date>2021-12-11T11:46:25Z</dc:date>
    </item>
  </channel>
</rss>

