<?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: Why does arcpy.mp ArCGIS Pro 2.6 Mosaic Dataset Image Layer Symbology has no colorizer or renderer? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/why-does-arcpy-mp-arcgis-pro-2-6-mosaic-dataset/m-p/1017087#M5430</link>
    <description>&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;First off, it looks like you are using the ArcPy library. If that is the case, you may want to reach out to the &lt;A href="https://community.esri.com/t5/python/ct-p/python" target="_self"&gt;Python Community&lt;/A&gt; instead.&lt;/P&gt;&lt;P&gt;As for your question, I am curious as to how your raster dataset displays in ArcGIS Pro when you added it. Is it RGB? Classified? Unique values? Stretched?&lt;/P&gt;&lt;P&gt;If it's RGB, then it won't have a colorizer or renderer property. If you manually change the symbology for the raster layer to use class breaks, stretched ramp, or unique values, you will notice that the layer.symbology.colorizer property does get defined.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;-Calvin&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2021 22:07:00 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-01-14T22:07:00Z</dc:date>
    <item>
      <title>Why does arcpy.mp ArCGIS Pro 2.6 Mosaic Dataset Image Layer Symbology has no colorizer or renderer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/why-does-arcpy-mp-arcgis-pro-2-6-mosaic-dataset/m-p/1016312#M5417</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;currently I have a problem that I can't explain from docs.&lt;/P&gt;&lt;P&gt;1. When I load a mosaic dataset into my ArCGIS Pro 2.6 map as a layer.&lt;/P&gt;&lt;P&gt;2. I can access the mosaics "Image" layer from python window&lt;BR /&gt;&amp;nbsp; &amp;nbsp; layer = map.listLayers("Image")[0]&lt;/P&gt;&lt;P&gt;3. Now why does layer.symbology doesn't have a colorizer or renderer property?&lt;/P&gt;&lt;P&gt;AttributeError: 'Symbology' object has no attribute 'colorizer'&lt;/P&gt;&lt;P&gt;AttributeError: 'Symbology' object has no attribute 'renderer'&lt;/P&gt;&lt;P&gt;From docs I would expect that raster layers always have a colorizer and vector layers have a renderer.&lt;/P&gt;&lt;P&gt;So I have a raster layer with no symbology at all oO? And how can I set it? In Pro itself I can easily set classified colors on that layer.&lt;/P&gt;&lt;P&gt;Any help would be really appreciated.&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 12:53:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/why-does-arcpy-mp-arcgis-pro-2-6-mosaic-dataset/m-p/1016312#M5417</guid>
      <dc:creator>RichardReinicke</dc:creator>
      <dc:date>2021-01-13T12:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why does arcpy.mp ArCGIS Pro 2.6 Mosaic Dataset Image Layer Symbology has no colorizer or renderer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/why-does-arcpy-mp-arcgis-pro-2-6-mosaic-dataset/m-p/1017087#M5430</link>
      <description>&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;First off, it looks like you are using the ArcPy library. If that is the case, you may want to reach out to the &lt;A href="https://community.esri.com/t5/python/ct-p/python" target="_self"&gt;Python Community&lt;/A&gt; instead.&lt;/P&gt;&lt;P&gt;As for your question, I am curious as to how your raster dataset displays in ArcGIS Pro when you added it. Is it RGB? Classified? Unique values? Stretched?&lt;/P&gt;&lt;P&gt;If it's RGB, then it won't have a colorizer or renderer property. If you manually change the symbology for the raster layer to use class breaks, stretched ramp, or unique values, you will notice that the layer.symbology.colorizer property does get defined.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;-Calvin&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 22:07:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/why-does-arcpy-mp-arcgis-pro-2-6-mosaic-dataset/m-p/1017087#M5430</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-14T22:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why does arcpy.mp ArCGIS Pro 2.6 Mosaic Dataset Image Layer Symbology has no colorizer or renderer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/why-does-arcpy-mp-arcgis-pro-2-6-mosaic-dataset/m-p/1017185#M5431</link>
      <description>&lt;P&gt;Hello Calvin,&lt;/P&gt;&lt;P&gt;thank you very much for your answer and sorry for posting into the wrong community. Maybe I was a little bit confused because in my Jupyter Notebook project I'm using arcpy, arcpy.mp and arcgis API as well.&lt;/P&gt;&lt;P&gt;In my workflow I'm:&lt;/P&gt;&lt;P&gt;1. Creating a new mosaic dataset&lt;/P&gt;&lt;LI-CODE lang="python"&gt;create_mosaic_result = arcpy.management.CreateMosaicDataset(
  fgdb_path, md_name, arcpy.SpatialReference(25832), 1, "32_BIT_FLOAT", 
  NONE", None)&lt;/LI-CODE&gt;&lt;P&gt;2. I'm referencing a singe TIFF from folder to the mosaic dataset&lt;/P&gt;&lt;LI-CODE lang="python"&gt;add_raster_to_mosaic_result = 
  arcpy.management.AddRastersToMosaicDataset(
    os.path.join(fgdb_path, md_name), "Raster Dataset", raster_data_folder, 
    "UPDATE_CELL_SIZES", "UPDATE_BOUNDARY", "NO_OVERVIEWS", None, 1, 1500, 
    arcpy.SpatialReference(25832), '', "NO_SUBFOLDERS", "ALLOW_DUPLICATES", 
    "BUILD_PYRAMIDS", "CALCULATE_STATISTICS", "BUILD_THUMBNAILS", '', 
    "FORCE_SPATIAL_REFERENCE", "ESTIMATE_STATISTICS", None, "NO_PIXEL_CACHE", 
    "")&lt;/LI-CODE&gt;&lt;P&gt;3. If I add mosaic dataset to the map, the layer contains Boundary, Footprint and Image while Image ranges from value 0.2 to 10 with stretched greyscale (single band 32 bit float as defined in create statement above) and if I access the layer with arcpy.mp it's symbology is missing both attributes.&lt;/P&gt;&lt;P&gt;You say I can change colorizer manually but I need to do it from code. So can I initialize Symbology or just a colorizer like RasterClassifyColorizer and assign it to the layer?&lt;/P&gt;&lt;P&gt;ALTERNATIVELY&lt;BR /&gt;If I have a predefined raster processing template in the mosaic dataset. Can I activate it programmatically to change the layer appearance?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 08:31:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/why-does-arcpy-mp-arcgis-pro-2-6-mosaic-dataset/m-p/1017185#M5431</guid>
      <dc:creator>RichardReinicke</dc:creator>
      <dc:date>2021-01-15T08:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why does arcpy.mp ArCGIS Pro 2.6 Mosaic Dataset Image Layer Symbology has no colorizer or renderer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/why-does-arcpy-mp-arcgis-pro-2-6-mosaic-dataset/m-p/1017304#M5434</link>
      <description>&lt;P&gt;I'm not sure about raster processing templates, but you could also try creating a raster dataset, symbolizing it with class breaks manually, saving the layer file, and then &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/apply-symbology-from-layer.htm" target="_self"&gt;applying the symbology&lt;/A&gt; to the new layer.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 17:55:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/why-does-arcpy-mp-arcgis-pro-2-6-mosaic-dataset/m-p/1017304#M5434</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-15T17:55:08Z</dc:date>
    </item>
  </channel>
</rss>

