<?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: Add Raster using ArcGIS Rest API through jQuery in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/add-raster-using-arcgis-rest-api-through-jquery/m-p/254598#M6847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see! How could I enable the Image Server service? I have also published some image services already here.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://climatewizard.ciat.cgiar.org/arcgis/rest/services/targeting_tools/africa_annual_precipitation/ImageServer" title="http://climatewizard.ciat.cgiar.org/arcgis/rest/services/targeting_tools/africa_annual_precipitation/ImageServer"&gt;targeting_tools/africa_annual_precipitation (ImageServer)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I though it was enabled.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Feb 2018 18:45:35 GMT</pubDate>
    <dc:creator>Wondimagegn_TesfayeCIAT</dc:creator>
    <dc:date>2018-02-08T18:45:35Z</dc:date>
    <item>
      <title>Add Raster using ArcGIS Rest API through jQuery</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/add-raster-using-arcgis-rest-api-through-jquery/m-p/254596#M6845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to publish image server when a user uploads a file on a Web App Builder app. I tried to use esriRequest to make the request but it is only submiting it as GET even with usePost: true. That is one problem but not the major for now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code below results in 400 error code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The image service url is&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #e6db74;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fclimatewizard.ciat.cgiar.org%2Farcgis%2Frest%2Fservices%2Ftargeting_tools%2Fafrica_land_use%2FImageServer%2F" target="_blank"&gt;http://climatewizard.ciat.cgiar.org/arcgis/rest/services/targeting_tools/africa_land_use/ImageServer/&lt;/A&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #f92672;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #64a2a2;"&gt;wkid &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;= this&lt;/SPAN&gt;.map.spatialReference;
&lt;SPAN style="color: #f92672;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #64a2a2;"&gt;srid &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #64a2a2;"&gt;wkid&lt;/SPAN&gt;.wkid;
&lt;SPAN style="color: #f92672;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #64a2a2;"&gt;params &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;{
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #e6db74;"&gt;'itemIds'&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;itemID&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #e6db74;"&gt;'rasterType'&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;'Raster Dataset'&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #e6db74;"&gt;'f'&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;'json'&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #e6db74;"&gt;"spatialReference"&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;{&lt;SPAN style="color: #e6db74;"&gt;'wkid'&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #64a2a2;"&gt;srid&lt;/SPAN&gt;}
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #75715e;"&gt;// 'computeStatistics': true
&lt;/SPAN&gt;};
&lt;SPAN style="color: #f92672;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #64a2a2;"&gt;self &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;= this&lt;/SPAN&gt;;

&lt;SPAN style="color: #fd971f;"&gt;$&lt;/SPAN&gt;.ajax({
&amp;nbsp;&amp;nbsp;&amp;nbsp; type&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"POST"&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; url&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #64a2a2;"&gt;self&lt;/SPAN&gt;.config.imageServiceUrl &lt;SPAN style="color: #f92672;"&gt;+ &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;'add'&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; data&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #64a2a2;"&gt;params&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #979748;"&gt;success&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;requestSucceeded&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; dataType&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;'json'
&lt;/SPAN&gt;});&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The response is the following.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;{"error":{"code":400,"message":"Requested operation is not supported by this service.","details":[]}}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;From the message the&amp;nbsp;image service URL is not able to add raster but I don't know how to create a service that allows adding raster. Could you please help on this one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Versions being used.&lt;/P&gt;&lt;P&gt;ArcGIS for Servers 10.5&lt;/P&gt;&lt;P&gt;ArcGIS Javascript API 3.22&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:34:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/add-raster-using-arcgis-rest-api-through-jquery/m-p/254596#M6845</guid>
      <dc:creator>Wondimagegn_TesfayeCIAT</dc:creator>
      <dc:date>2021-12-11T12:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Add Raster using ArcGIS Rest API through jQuery</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/add-raster-using-arcgis-rest-api-through-jquery/m-p/254597#M6846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Image Server service has to be enabled to allow for adding Rasters.&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="http://climatewizard.ciat.cgiar.org/arcgis/sdk/rest/index.html#/Add_Rasters/02ss0000006r000000/" title="http://climatewizard.ciat.cgiar.org/arcgis/sdk/rest/index.html#/Add_Rasters/02ss0000006r000000/"&gt;http://climatewizard.ciat.cgiar.org/arcgis/sdk/rest/index.html#/Add_Rasters/02ss0000006r000000/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 17:50:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/add-raster-using-arcgis-rest-api-through-jquery/m-p/254597#M6846</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-02-08T17:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Add Raster using ArcGIS Rest API through jQuery</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/add-raster-using-arcgis-rest-api-through-jquery/m-p/254598#M6847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see! How could I enable the Image Server service? I have also published some image services already here.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://climatewizard.ciat.cgiar.org/arcgis/rest/services/targeting_tools/africa_annual_precipitation/ImageServer" title="http://climatewizard.ciat.cgiar.org/arcgis/rest/services/targeting_tools/africa_annual_precipitation/ImageServer"&gt;targeting_tools/africa_annual_precipitation (ImageServer)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I though it was enabled.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 18:45:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/add-raster-using-arcgis-rest-api-through-jquery/m-p/254598#M6847</guid>
      <dc:creator>Wondimagegn_TesfayeCIAT</dc:creator>
      <dc:date>2018-02-08T18:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add Raster using ArcGIS Rest API through jQuery</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/add-raster-using-arcgis-rest-api-through-jquery/m-p/254599#M6848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to enable uploads:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://enterprise.arcgis.com/en/server/latest/publish-services/windows/key-concepts-for-image-services.htm#GUID-A8A3BB8A-423D-4833-925E-8013A8E4EB76" title="https://enterprise.arcgis.com/en/server/latest/publish-services/windows/key-concepts-for-image-services.htm#GUID-A8A3BB8A-423D-4833-925E-8013A8E4EB76"&gt;Key concepts for image services—Documentation | ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 18:56:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/add-raster-using-arcgis-rest-api-through-jquery/m-p/254599#M6848</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-02-08T18:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Add Raster using ArcGIS Rest API through jQuery</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/add-raster-using-arcgis-rest-api-through-jquery/m-p/254600#M6849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, there is no option for Upload and download and other useful capabilities. Is it missing because of the type of ArcGIS version?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Only three capabilities" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/396164_imaging.JPG" style="width: 620px; height: 523px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 19:39:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/add-raster-using-arcgis-rest-api-through-jquery/m-p/254600#M6849</guid>
      <dc:creator>Wondimagegn_TesfayeCIAT</dc:creator>
      <dc:date>2018-02-08T19:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Add Raster using ArcGIS Rest API through jQuery</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/add-raster-using-arcgis-rest-api-through-jquery/m-p/254601#M6850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;As the help documentation states:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Add Rasters&lt;/DIV&gt;&lt;DIV&gt;&lt;IMG alt="License" src="http://climatewizard.ciat.cgiar.org/arcgis/sdk/rest/rsrc/license.png" title="License" /&gt;License:&amp;nbsp;As of 10.5, you must license your&amp;nbsp;ArcGIS Server&amp;nbsp;as an&amp;nbsp;ArcGIS Image Server&amp;nbsp;in order to use this resource.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 19:44:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/add-raster-using-arcgis-rest-api-through-jquery/m-p/254601#M6850</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-02-08T19:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add Raster using ArcGIS Rest API through jQuery</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/add-raster-using-arcgis-rest-api-through-jquery/m-p/254602#M6851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh I see the problem now. Thank you very much for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 20:04:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/add-raster-using-arcgis-rest-api-through-jquery/m-p/254602#M6851</guid>
      <dc:creator>Wondimagegn_TesfayeCIAT</dc:creator>
      <dc:date>2018-02-08T20:04:01Z</dc:date>
    </item>
  </channel>
</rss>

