<?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 (v10.1 SP1) raster layer display problem in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/script-tool-v10-1-sp1-raster-layer-display-problem/m-p/200070#M15373</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;Trying this post again, hoping to attract post-holiday reviews/assistance...&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. The tool/script works great in 10.1 SP1, except for the final step of adding the raster layers to the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map (using arcpy.SetParameterAsText()). 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. I've tried with both the default *.lyr file, which was created in 10.0 SP5 and a new *.lyr file created with 10.1. Same result if symbology is applied &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;via the script tool (==ArcMap crash). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure why the auto-symbology fails so spectacularly... These are file geodatabase rasters, un-signed 8-bit, nothing special...&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. 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;SPAN&gt;Any help appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lisa&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jan 2013 19:51:11 GMT</pubDate>
    <dc:creator>LisaNelson</dc:creator>
    <dc:date>2013-01-07T19:51:11Z</dc:date>
    <item>
      <title>Script tool (v10.1 SP1) raster layer display problem</title>
      <link>https://community.esri.com/t5/python-questions/script-tool-v10-1-sp1-raster-layer-display-problem/m-p/200070#M15373</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;Trying this post again, hoping to attract post-holiday reviews/assistance...&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. The tool/script works great in 10.1 SP1, except for the final step of adding the raster layers to the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map (using arcpy.SetParameterAsText()). 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. I've tried with both the default *.lyr file, which was created in 10.0 SP5 and a new *.lyr file created with 10.1. Same result if symbology is applied &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;via the script tool (==ArcMap crash). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure why the auto-symbology fails so spectacularly... These are file geodatabase rasters, un-signed 8-bit, nothing special...&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. 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;SPAN&gt;Any help appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lisa&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 19:51:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-tool-v10-1-sp1-raster-layer-display-problem/m-p/200070#M15373</guid>
      <dc:creator>LisaNelson</dc:creator>
      <dc:date>2013-01-07T19:51:11Z</dc:date>
    </item>
  </channel>
</rss>

