<?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 Using Python to resymbolise polygon bandings from high to low in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-python-to-resymbolise-polygon-bandings-from/m-p/322632#M25156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am doing a choropleth/thematic batch mapping project, and need to alter the data classification (5 bands from low to high) on a map by map basis. That is, for each catchment on the map I need to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- zoom to catchment&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- reclassify the symbology based on the min and max polygon values within that catchment&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- export map to pdf&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My understanding is that Python doesn't provide access to symbology and data classification (eg Jenks, quantile etc). Will the following workaround function OK in Python? I'd welcome your thoughts:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Zoom to catchment&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Set definition query to show only polygons in that catchment (based on predefined flag in attributes)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Loop through the rows of the visible polygons, note min and max values&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Create 5 band categories (probably with equal interval since it's easiest to program)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. For each category, create a selection of polygons within that category&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. Export that selection to a new shapefile (5 in total)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7. Resymbolise each exported shapefile according to predefined .lyr files (say from blue to red)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;8. Job done&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will this work? Has anyone got experience using Python for this kind of job? I hope I've explained it clearly enough.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your time&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Nov 2011 07:47:53 GMT</pubDate>
    <dc:creator>JT2</dc:creator>
    <dc:date>2011-11-24T07:47:53Z</dc:date>
    <item>
      <title>Using Python to resymbolise polygon bandings from high to low</title>
      <link>https://community.esri.com/t5/python-questions/using-python-to-resymbolise-polygon-bandings-from/m-p/322632#M25156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am doing a choropleth/thematic batch mapping project, and need to alter the data classification (5 bands from low to high) on a map by map basis. That is, for each catchment on the map I need to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- zoom to catchment&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- reclassify the symbology based on the min and max polygon values within that catchment&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- export map to pdf&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My understanding is that Python doesn't provide access to symbology and data classification (eg Jenks, quantile etc). Will the following workaround function OK in Python? I'd welcome your thoughts:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Zoom to catchment&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Set definition query to show only polygons in that catchment (based on predefined flag in attributes)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Loop through the rows of the visible polygons, note min and max values&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Create 5 band categories (probably with equal interval since it's easiest to program)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. For each category, create a selection of polygons within that category&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. Export that selection to a new shapefile (5 in total)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7. Resymbolise each exported shapefile according to predefined .lyr files (say from blue to red)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;8. Job done&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will this work? Has anyone got experience using Python for this kind of job? I hope I've explained it clearly enough.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your time&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 07:47:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-python-to-resymbolise-polygon-bandings-from/m-p/322632#M25156</guid>
      <dc:creator>JT2</dc:creator>
      <dc:date>2011-11-24T07:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to resymbolise polygon bandings from high to low</title>
      <link>https://community.esri.com/t5/python-questions/using-python-to-resymbolise-polygon-bandings-from/m-p/322633#M25157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It turns out my workaround above is not required. The job can be done with the "Apply Symbology From Layer (Data Management)" tool, more info here &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000006n000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000006n000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You just need to create a layer file beforehand, and then it updates your bandings (quantiles, equal interval etc) using the values contained in your data subset (via definition query).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Very handy indeed&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2011 13:46:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-python-to-resymbolise-polygon-bandings-from/m-p/322633#M25157</guid>
      <dc:creator>JT2</dc:creator>
      <dc:date>2011-11-25T13:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to resymbolise polygon bandings from high to low</title>
      <link>https://community.esri.com/t5/python-questions/using-python-to-resymbolise-polygon-bandings-from/m-p/322634#M25158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can also use arcpy.mapping.UpdateLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At 10.1 we expanded the arcpy.mapping API to include symbology renderer properties (e.g., class breaks, labels, number of classes, etc.).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 13:24:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-python-to-resymbolise-polygon-bandings-from/m-p/322634#M25158</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2011-11-28T13:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python to resymbolise polygon bandings from high to low</title>
      <link>https://community.esri.com/t5/python-questions/using-python-to-resymbolise-polygon-bandings-from/m-p/322635#M25159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any chance this gets added as a service pack to 10.0?&amp;nbsp; I miss VBA...but we must move on with Python in the name of "progress"!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 19:27:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-python-to-resymbolise-polygon-bandings-from/m-p/322635#M25159</guid>
      <dc:creator>GuyDuke</dc:creator>
      <dc:date>2012-02-22T19:27:49Z</dc:date>
    </item>
  </channel>
</rss>

