<?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 Script tool raster layer display problem in 10.1 script tool in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/script-tool-raster-layer-display-problem-in-10-1/m-p/573792#M44971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a script tool (originally written in 10.0 SP5) that generates raster layers, then adds them using a derived &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;output script tool parameter.&amp;nbsp; The tool/script works great in 10.1, except the final step of adding the raster layers to the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map (using arcpy.SetParameterAsText()).&amp;nbsp; The layer is added correctly IF no symbology is used. However, if symbology is set &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;by populating the Parameter Properties Symbology value in the tool, ArcMap crashes when adding the raster layer.&amp;nbsp; I've tried with both &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the default *.lyr file, which was created in 10.0 SP5 and a new *.lyr file created with 10.1.&amp;nbsp; Same result if symbology is applied &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;via the script tool (==ArcMap crash).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Interestingly,&amp;nbsp; the raster dataset outputs can be added manually (after re-opening ArcMap) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and the Properties --&amp;gt; Symbology dialog used to successfully import either the 10.0 or 10.1 LYR file... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure why the auto-symbology fails so spectacularly...&amp;nbsp; These are file geodatabase rasters, un-signed 8-bit, nothing special...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lisa&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Dec 2012 21:29:53 GMT</pubDate>
    <dc:creator>LisaNelson</dc:creator>
    <dc:date>2012-12-17T21:29:53Z</dc:date>
    <item>
      <title>Script tool raster layer display problem in 10.1 script tool</title>
      <link>https://community.esri.com/t5/python-questions/script-tool-raster-layer-display-problem-in-10-1/m-p/573792#M44971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a script tool (originally written in 10.0 SP5) that generates raster layers, then adds them using a derived &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;output script tool parameter.&amp;nbsp; The tool/script works great in 10.1, except the final step of adding the raster layers to the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map (using arcpy.SetParameterAsText()).&amp;nbsp; The layer is added correctly IF no symbology is used. However, if symbology is set &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;by populating the Parameter Properties Symbology value in the tool, ArcMap crashes when adding the raster layer.&amp;nbsp; I've tried with both &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the default *.lyr file, which was created in 10.0 SP5 and a new *.lyr file created with 10.1.&amp;nbsp; Same result if symbology is applied &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;via the script tool (==ArcMap crash).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Interestingly,&amp;nbsp; the raster dataset outputs can be added manually (after re-opening ArcMap) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and the Properties --&amp;gt; Symbology dialog used to successfully import either the 10.0 or 10.1 LYR file... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure why the auto-symbology fails so spectacularly...&amp;nbsp; These are file geodatabase rasters, un-signed 8-bit, nothing special...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lisa&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 21:29:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-tool-raster-layer-display-problem-in-10-1/m-p/573792#M44971</guid>
      <dc:creator>LisaNelson</dc:creator>
      <dc:date>2012-12-17T21:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Script tool raster layer display problem in 10.1 script tool</title>
      <link>https://community.esri.com/t5/python-questions/script-tool-raster-layer-display-problem-in-10-1/m-p/573793#M44972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Lisa,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would you be able to upload your code?&amp;nbsp; This will make it easier to troubleshoot.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 15:44:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-tool-raster-layer-display-problem-in-10-1/m-p/573793#M44972</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2012-12-18T15:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Script tool raster layer display problem in 10.1 script tool</title>
      <link>https://community.esri.com/t5/python-questions/script-tool-raster-layer-display-problem-in-10-1/m-p/573794#M44973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a zip archive with a map package (v10.0) and the toolbox.&amp;nbsp; If it is run in 10.1, the outputs will be created correctly but ArcMap will crash when adding the raster layer if symbology is used (Scripts\GenericLandcoverLACScript_ScriptTool.py, line 71). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for taking a look at this!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lisa&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 20:27:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-tool-raster-layer-display-problem-in-10-1/m-p/573794#M44973</guid>
      <dc:creator>LisaNelson</dc:creator>
      <dc:date>2012-12-18T20:27:59Z</dc:date>
    </item>
  </channel>
</rss>

