<?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: Setting min and max values across different rasters in Pro in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/setting-min-and-max-values-across-different/m-p/382870#M16873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for pointing me in the right direction. For anyone wishing to accomplish&amp;nbsp;something similar using the ArcGIS Pro SDK, the following worked for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Create a new Stretch Colorizer Definition supplying the color ramp&lt;BR /&gt; StretchColorizerDefinition stretchColorizerDef = new StretchColorizerDefinition(0, RasterStretchType.DefaultFromSource, 1.0, cimColorRamp);&lt;BR /&gt; stretchColorizerDef.StretchType = RasterStretchType.PercentMinimumMaximum;&lt;BR /&gt; //Create a new Stretch colorizer using the colorizer definition created above.&lt;BR /&gt; CIMRasterStretchColorizer newStretchColorizer =&lt;BR /&gt; await rasterLayer.CreateColorizerAsync(stretchColorizerDef) as CIMRasterStretchColorizer;&lt;/P&gt;&lt;P&gt;if (useCustomMinMax == true)&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; //Customize min and max&lt;BR /&gt;&amp;nbsp; newStretchColorizer.StretchType = RasterStretchType.MinimumMaximum;&lt;BR /&gt;&amp;nbsp; newStretchColorizer.StatsType = RasterStretchStatsType.GlobalStats;&lt;BR /&gt;&amp;nbsp; StatsHistogram histo = newStretchColorizer.StretchStats;&lt;BR /&gt;&amp;nbsp; histo.max = stretchMax;&lt;BR /&gt;&amp;nbsp; histo.min = stretchMin;&lt;BR /&gt;&amp;nbsp; newStretchColorizer.StretchStats = histo;&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Mar 2020 22:24:51 GMT</pubDate>
    <dc:creator>LesleyBross1</dc:creator>
    <dc:date>2020-03-25T22:24:51Z</dc:date>
    <item>
      <title>Setting min and max values across different rasters in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/setting-min-and-max-values-across-different/m-p/382868#M16871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to accomplish the same thing as the person in this question:&amp;nbsp;&lt;A href="https://community.esri.com/thread/181412-same-color-scale-symbology-for-multiple-rasters"&gt;https://community.esri.com/thread/181412-same-color-scale-symbology-for-multiple-rasters&lt;/A&gt;&amp;nbsp; in PRO...&lt;/P&gt;&lt;P&gt;Is this functionality available in ArcGIS PRO?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 16:28:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/setting-min-and-max-values-across-different/m-p/382868#M16871</guid>
      <dc:creator>MikeW</dc:creator>
      <dc:date>2018-03-22T16:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Setting min and max values across different rasters in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/setting-min-and-max-values-across-different/m-p/382869#M16872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can&amp;nbsp;share the first layer with the correct symbology as a layer file lyx and import that at the others by following these steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define the symbology for the first layer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/399576_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;In short; Stretch, Minimum Maximum, custom statistics and define Min and Max values (and set the color schema you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save the layer file:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/399577_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the symbology properties of the next raster and&amp;nbsp;import the symbology from the layer file:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/399593_pastedImage_3.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 17:45:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/setting-min-and-max-values-across-different/m-p/382869#M16872</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-03-22T17:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Setting min and max values across different rasters in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/setting-min-and-max-values-across-different/m-p/382870#M16873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for pointing me in the right direction. For anyone wishing to accomplish&amp;nbsp;something similar using the ArcGIS Pro SDK, the following worked for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Create a new Stretch Colorizer Definition supplying the color ramp&lt;BR /&gt; StretchColorizerDefinition stretchColorizerDef = new StretchColorizerDefinition(0, RasterStretchType.DefaultFromSource, 1.0, cimColorRamp);&lt;BR /&gt; stretchColorizerDef.StretchType = RasterStretchType.PercentMinimumMaximum;&lt;BR /&gt; //Create a new Stretch colorizer using the colorizer definition created above.&lt;BR /&gt; CIMRasterStretchColorizer newStretchColorizer =&lt;BR /&gt; await rasterLayer.CreateColorizerAsync(stretchColorizerDef) as CIMRasterStretchColorizer;&lt;/P&gt;&lt;P&gt;if (useCustomMinMax == true)&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; //Customize min and max&lt;BR /&gt;&amp;nbsp; newStretchColorizer.StretchType = RasterStretchType.MinimumMaximum;&lt;BR /&gt;&amp;nbsp; newStretchColorizer.StatsType = RasterStretchStatsType.GlobalStats;&lt;BR /&gt;&amp;nbsp; StatsHistogram histo = newStretchColorizer.StretchStats;&lt;BR /&gt;&amp;nbsp; histo.max = stretchMax;&lt;BR /&gt;&amp;nbsp; histo.min = stretchMin;&lt;BR /&gt;&amp;nbsp; newStretchColorizer.StretchStats = histo;&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2020 22:24:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/setting-min-and-max-values-across-different/m-p/382870#M16873</guid>
      <dc:creator>LesleyBross1</dc:creator>
      <dc:date>2020-03-25T22:24:51Z</dc:date>
    </item>
  </channel>
</rss>

