<?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 Change Raster rendering to &amp;amp;quot;composite RGB&amp;amp;quot; in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/change-raster-rendering-to-amp-quot-composite-rgb/m-p/628415#M48941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i need to load a Raster (jp2) in a mxd but without using lyr files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;here is my code (it works fine)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd2 = arcpy.mapping.MapDocument(mxdTemplate)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;df2 = arcpy.mapping.ListDataFrames(mxd2)[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;addlayer = arcpy.mapping.Layer("c:\toto.jp2")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.mapping.AddLayer(df2, addlayer, "BOTTOM")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rasterExtent = addlayer.getExtent()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;df2.extent = rasterExtent&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd2.saveACopy (nouveauMXD) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but the Raster is rendered "streched" ... i need to get it as it should : in composite RGB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea about doing this in arcpy ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Guillaume&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jul 2011 12:29:30 GMT</pubDate>
    <dc:creator>GuillaumeMOCCAND</dc:creator>
    <dc:date>2011-07-21T12:29:30Z</dc:date>
    <item>
      <title>Change Raster rendering to &amp;quot;composite RGB&amp;quot;</title>
      <link>https://community.esri.com/t5/python-questions/change-raster-rendering-to-amp-quot-composite-rgb/m-p/628415#M48941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i need to load a Raster (jp2) in a mxd but without using lyr files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;here is my code (it works fine)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd2 = arcpy.mapping.MapDocument(mxdTemplate)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;df2 = arcpy.mapping.ListDataFrames(mxd2)[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;addlayer = arcpy.mapping.Layer("c:\toto.jp2")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.mapping.AddLayer(df2, addlayer, "BOTTOM")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rasterExtent = addlayer.getExtent()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;df2.extent = rasterExtent&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd2.saveACopy (nouveauMXD) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but the Raster is rendered "streched" ... i need to get it as it should : in composite RGB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea about doing this in arcpy ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Guillaume&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 12:29:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-raster-rendering-to-amp-quot-composite-rgb/m-p/628415#M48941</guid>
      <dc:creator>GuillaumeMOCCAND</dc:creator>
      <dc:date>2011-07-21T12:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Change Raster rendering to "composite RGB"</title>
      <link>https://community.esri.com/t5/python-questions/change-raster-rendering-to-amp-quot-composite-rgb/m-p/628416#M48942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you found out the solution? I am having the same problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to add a "tif" with "RGB Composite", not single band image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help will be appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2012 17:09:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-raster-rendering-to-amp-quot-composite-rgb/m-p/628416#M48942</guid>
      <dc:creator>GraceCHUNG</dc:creator>
      <dc:date>2012-07-10T17:09:59Z</dc:date>
    </item>
  </channel>
</rss>

