<?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 Set Spatial Reference of Object ArcGIS Runtime in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/set-spatial-reference-of-object-arcgis-runtime/m-p/811350#M1622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to set the Spatial Reference as seen below...but for some reason its not liking it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gpParametersInsert.outputSpatialReference = SpatialReference.createWgs84();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I include the line above as seen in the code below and run the app I get an error window that pops up....no error in the console.log&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"AppStudio for ArcGIS AppRun has stopped woroking"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANY ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; gpParametersInsert &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ArcGISRuntimeEnvironment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;createObject&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"GeoprocessingParameters"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
      &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;executionType&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; Enums&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GeoprocessingExecutionTypeAsynchronousSubmit&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;// Request the output features be WGS84&lt;/SPAN&gt;
gpParametersInsert&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;outputSpatialReference &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; SpatialReference&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;createWgs84&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; inputsI &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
inputsI&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Item"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ArcGISRuntimeEnvironment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;createObject&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"GeoprocessingString"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;value&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; varItem&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

gpParametersInsert&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;inputs &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; inputsI&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;// Create the job that handles the communication between the application and the geoprocessing task&lt;/SPAN&gt;
insertCursorJob &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; insertCursorTask&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;createJob&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;gpParametersInsert&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

insertCursorJob&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;start&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 09:31:58 GMT</pubDate>
    <dc:creator>jaykapalczynski</dc:creator>
    <dc:date>2021-12-12T09:31:58Z</dc:date>
    <item>
      <title>Set Spatial Reference of Object ArcGIS Runtime</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/set-spatial-reference-of-object-arcgis-runtime/m-p/811350#M1622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to set the Spatial Reference as seen below...but for some reason its not liking it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gpParametersInsert.outputSpatialReference = SpatialReference.createWgs84();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I include the line above as seen in the code below and run the app I get an error window that pops up....no error in the console.log&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"AppStudio for ArcGIS AppRun has stopped woroking"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANY ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; gpParametersInsert &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ArcGISRuntimeEnvironment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;createObject&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"GeoprocessingParameters"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
      &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;executionType&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; Enums&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GeoprocessingExecutionTypeAsynchronousSubmit&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;// Request the output features be WGS84&lt;/SPAN&gt;
gpParametersInsert&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;outputSpatialReference &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; SpatialReference&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;createWgs84&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; inputsI &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
inputsI&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Item"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ArcGISRuntimeEnvironment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;createObject&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"GeoprocessingString"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;value&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; varItem&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

gpParametersInsert&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;inputs &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; inputsI&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;// Create the job that handles the communication between the application and the geoprocessing task&lt;/SPAN&gt;
insertCursorJob &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; insertCursorTask&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;createJob&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;gpParametersInsert&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

insertCursorJob&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;start&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:31:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/set-spatial-reference-of-object-arcgis-runtime/m-p/811350#M1622</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2021-12-12T09:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Spatial Reference of Object ArcGIS Runtime</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/set-spatial-reference-of-object-arcgis-runtime/m-p/811351#M1623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to update the Object for gpParametersInsert to include a Spatial Reference....but its erroring out as seen above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;SPAN style="color: #999999;"&gt;qml: gp job: {"objectName":"","objectType":"GeoprocessingJob","error":null,"objects":{},"json":{"geoprocessingJob":{"needGpMapServiceUrl":false,"parameters":{"executionType":"submit","parameters":[{"dataType":"GPString","direction":"esriGPParameterDirectionInput","name":"aItem","value":"shooter"},{"dataType":"GPString","direction":"esriGPParameterDirectionInput","name":"bPublicPrivate","value":"public"},{"dataType":"GPString","direction":"esriGPParameterDirectionInput","name":"cCaseNum","value":"77"},{"dataType":"GPString","direction":"esriGPParameterDirectionInput","name":"dComments","value":"-162.43153 33.527056"},{"dataType":"GPDouble","direction":"esriGPParameterDirectionInput","name":"eSHAPE@X","value":-162.43153},{"dataType":"GPDouble","direction":"esriGPParameterDirectionInput","name":"fSHAPE@Y","value":33.527056},{"dataType":"GPString","direction":"esriGPParameterDirectionInput","name":"gSHAPE@XY","value":"(-115.3252,50.65654)"},{"dataType":"GPString","direction":"esriGPParameterDirectionInput","name":"hclassification","value":"Boating"}],"returnM":false,"returnZ":false},"url":"https://xx.gov/arcgis/rest/services/Tools/InsertCursor/GPServer/InsertCursor/submitJob"},"jobType":"geoprocessingJob","status":"notStarted"},"unknownJson":{},"unsupportedJson":{},"jobType":4,"messages":{},"serverJobId":"","progress":0,"jobStatus":0,"error":null,"credential":{"objectName":"","objectType":"Credential","error":null,"objects":{},"username":"","password":"","authenticationType":0,"referer":"","token":"","tokenExpiry":null,"tokenServiceUrl":"","oAuthClientInfo":null,"oAuthAuthorizationCode":"","oAuthRefreshToken":"","pkcs12Info":null,"sslRequired":false,"authenticatingHost":"","objects":{}},"requestConfiguration":{"objectName":"","objectType":"RequestConfiguration","error":null,"objects":{},"timeoutInterval":60,"maxNumberOfAttempts":5,"forcePost":false,"issueAuthenticationChallenge":true,"userHeaders":{}},"url":"","checkStatusTaskStatus":0,"objects":{},"result":null,"parameters":{"objectName":"","objectType":"GeoprocessingParameters","error":null,"objects":{},"executionType":0,"inputs":{"aItem":{"objectName":"","objectType":"GeoprocessingString","error":null,"objects":{},"parameterType":9,"value":"shooter"},"bPublicPrivate":{"objectName":"","objectType":"GeoprocessingString","error":null,"objects":{},"parameterType":9,"value":"public"},"cCaseNum":{"objectName":"","objectType":"GeoprocessingString","error":null,"objects":{},"parameterType":9,"value":"77"},"dComments":{"objectName":"","objectType":"GeoprocessingString","error":null,"objects":{},"parameterType":9,"value":"-162.43153 33.527056"},"eSHAPE@X":{"objectName":"","objectType":"GeoprocessingDouble","error":null,"objects":{},"parameterType":3,"value":-162.43153},"fSHAPE@Y":{"objectName":"","objectType":"GeoprocessingDouble","error":null,"objects":{},"parameterType":3,"value":33.527056},"gSHAPE@XY":{"objectName":"","objectType":"GeoprocessingString","error":null,"objects":{},"parameterType":9,"value":"(-115.3252,50.65654)"},"hclassification":{"objectName":"","objectType":"GeoprocessingString","error":null,"objects":{},"parameterType":9,"value":"Boating"}},&lt;/SPAN&gt;"&lt;SPAN style="color: #ff0000; font-size: 22px;"&gt;&lt;STRONG&gt;outputSpatialReference":null,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #999999;"&gt;"processSpatialReference":null,"returnM":false,"returnZ":false}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2019 18:30:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/set-spatial-reference-of-object-arcgis-runtime/m-p/811351#M1623</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2019-10-16T18:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Spatial Reference of Object ArcGIS Runtime</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/set-spatial-reference-of-object-arcgis-runtime/m-p/811352#M1624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jay,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I am missing something, but I don't see "outputSpatialReference" as&amp;nbsp;one of the properties of GeoprocessingParameter object, see this doc&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-geoprocessingparameter.html" title="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-geoprocessingparameter.html"&gt;GeoprocessingParameter QML Type | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This could be the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Including &lt;A href="https://community.esri.com/space/2136"&gt;ArcGIS Runtime SDK for Qt&lt;/A&gt;‌ to see anyone in this group know the answer to this question, how to set&amp;nbsp;&lt;SPAN&gt;outputSpatialReference in GeoprocessingTask.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Erwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2019 17:20:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/set-spatial-reference-of-object-arcgis-runtime/m-p/811352#M1624</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2019-10-17T17:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Spatial Reference of Object ArcGIS Runtime</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/set-spatial-reference-of-object-arcgis-runtime/m-p/811353#M1625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yea I am confused...but it displays as a property in my last post in red...this is what I get from a console.log of the GP Processing object&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2019 17:32:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/set-spatial-reference-of-object-arcgis-runtime/m-p/811353#M1625</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2019-10-17T17:32:39Z</dc:date>
    </item>
  </channel>
</rss>

