<?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 Format for ImageServer input parameter in arcpy MakeImageServerLayer_management in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/format-for-imageserver-input-parameter-in-arcpy/m-p/55825#M4419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regarding &lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/make-image-server-layer.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/make-image-server-layer.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Make Image Server Layer—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When attempting to use a URL as the input parameter, as shown in the documentation, it results in a "000999: Failed to get raster" error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Extent &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"-13072350.2812 4050838.0059 -12990486.2246 4075450.729"
&lt;/SPAN&gt;&lt;SPAN style="background-color: #472c47;"&gt;Input_ImageServer&lt;/SPAN&gt; &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fservername.gov%2Farcgis%2Frest%2Fservices%2Ffolder%2FRasterName_1%2FImageServer" target="_blank"&gt;http://servername.gov/arcgis/rest/services/folder/RasterName_1/ImageServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;
&lt;/SPAN&gt;ImageServer_OutLayer &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"Output_Layer"
&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;
&lt;/SPAN&gt;arcpy.MakeImageServerLayer_management(&lt;SPAN style="background-color: #3c3c57;"&gt;Input_ImageServer&lt;/SPAN&gt;, ImageServer_OutLayer, Extent, &lt;SPAN style="color: #e6db74;"&gt;""&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;"Center"&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;""&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;"0"&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;""&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;"30"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I use a GIS server connection from ArcCatalog (to the exact same image service), it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="background-color: #472c47;"&gt;Extent&lt;/SPAN&gt; &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"-13072350.2812 4050838.0059 -12990486.2246 4075450.729"
&lt;/SPAN&gt;Input_ImageServer &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"GIS Servers&lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;connection name&lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;folder&lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;RasterName_1.ImageServer"
&lt;/SPAN&gt;ImageServer_OutLayer &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"Output_Layer"
&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;
&lt;/SPAN&gt;arcpy.MakeImageServerLayer_management(Input_ImageServer, ImageServer_OutLayer, &lt;SPAN style="background-color: #3c3c57;"&gt;Extent&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;""&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;"Center"&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;""&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;"0"&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;""&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;"30"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to be able to use this as advertised with a URL, to avoid needing a pre-defined connection property. Adding a port number as shown in the documentation didn't appear to make a difference. Has anyone made this work? Perhaps I'm missing&amp;nbsp;a step or parameter that needs to be set when the image service is published?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 22:07:32 GMT</pubDate>
    <dc:creator>AnthonyPreston1</dc:creator>
    <dc:date>2021-12-10T22:07:32Z</dc:date>
    <item>
      <title>Format for ImageServer input parameter in arcpy MakeImageServerLayer_management</title>
      <link>https://community.esri.com/t5/python-questions/format-for-imageserver-input-parameter-in-arcpy/m-p/55825#M4419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regarding &lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/make-image-server-layer.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/make-image-server-layer.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Make Image Server Layer—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When attempting to use a URL as the input parameter, as shown in the documentation, it results in a "000999: Failed to get raster" error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Extent &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"-13072350.2812 4050838.0059 -12990486.2246 4075450.729"
&lt;/SPAN&gt;&lt;SPAN style="background-color: #472c47;"&gt;Input_ImageServer&lt;/SPAN&gt; &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fservername.gov%2Farcgis%2Frest%2Fservices%2Ffolder%2FRasterName_1%2FImageServer" target="_blank"&gt;http://servername.gov/arcgis/rest/services/folder/RasterName_1/ImageServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;
&lt;/SPAN&gt;ImageServer_OutLayer &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"Output_Layer"
&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;
&lt;/SPAN&gt;arcpy.MakeImageServerLayer_management(&lt;SPAN style="background-color: #3c3c57;"&gt;Input_ImageServer&lt;/SPAN&gt;, ImageServer_OutLayer, Extent, &lt;SPAN style="color: #e6db74;"&gt;""&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;"Center"&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;""&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;"0"&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;""&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;"30"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I use a GIS server connection from ArcCatalog (to the exact same image service), it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="background-color: #472c47;"&gt;Extent&lt;/SPAN&gt; &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"-13072350.2812 4050838.0059 -12990486.2246 4075450.729"
&lt;/SPAN&gt;Input_ImageServer &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"GIS Servers&lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;connection name&lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;folder&lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;RasterName_1.ImageServer"
&lt;/SPAN&gt;ImageServer_OutLayer &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"Output_Layer"
&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;
&lt;/SPAN&gt;arcpy.MakeImageServerLayer_management(Input_ImageServer, ImageServer_OutLayer, &lt;SPAN style="background-color: #3c3c57;"&gt;Extent&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;""&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;"Center"&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;""&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;"0"&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;""&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;"30"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to be able to use this as advertised with a URL, to avoid needing a pre-defined connection property. Adding a port number as shown in the documentation didn't appear to make a difference. Has anyone made this work? Perhaps I'm missing&amp;nbsp;a step or parameter that needs to be set when the image service is published?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:07:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/format-for-imageserver-input-parameter-in-arcpy/m-p/55825#M4419</guid>
      <dc:creator>AnthonyPreston1</dc:creator>
      <dc:date>2021-12-10T22:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Format for ImageServer input parameter in arcpy MakeImageServerLayer_management</title>
      <link>https://community.esri.com/t5/python-questions/format-for-imageserver-input-parameter-in-arcpy/m-p/55826#M4420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to drop the /rest/ portion of the path to the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a script tool that uses MakeImageLayer and here is the location of the image service I access.&amp;nbsp; Similar to the example in the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://kyraster.ky.gov/arcgis/services/ElevationServices/Ky_DEM_KYAPED_5FT/ImageServer"&gt;http://kyraster.ky.gov/arcgis/services/ElevationServices/Ky_DEM_KYAPED_5FT/ImageServer&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 17:58:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/format-for-imageserver-input-parameter-in-arcpy/m-p/55826#M4420</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2017-06-30T17:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Format for ImageServer input parameter in arcpy MakeImageServerLayer_management</title>
      <link>https://community.esri.com/t5/python-questions/format-for-imageserver-input-parameter-in-arcpy/m-p/55827#M4421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This did fix it, thanks. I must have missed the omission of the /rest/ from the sample URL in the doc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 20:57:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/format-for-imageserver-input-parameter-in-arcpy/m-p/55827#M4421</guid>
      <dc:creator>AnthonyPreston1</dc:creator>
      <dc:date>2017-06-30T20:57:10Z</dc:date>
    </item>
  </channel>
</rss>

