<?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 arcgis.mapping.renderer.generate_renderer(???????) in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-mapping-renderer-generate-renderer/m-p/1060921#M6111</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new has developer in esri products.&lt;/P&gt;&lt;P&gt;I'm having trouble with this method. I'm trying to create a chorolopeth map using esriClassifyNaturalBreaks, but the API reference doesn't mention any argument for the number of breaks, i found it in a video for other method (sdf.spatial.plot), the argument is "class_count=", and it works, i don't know why it is not in the documentation. But surprisenly the argument "method = ", does not work at all. No matter the value used it creates the same renderer. Am i doing something wrong here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;renderer_classed = arcgis.mapping.renderer.generate_renderer(geometry_type = 'Polygon',
sdf_or_series = sdf, 
render_type ='c',
colors = 'Reds',
method = 'esriClassifyNaturalBreaks',
field = 'media_10',
class_count = 5)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which is the best way to create a renderer in python arcgis API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 24 May 2021 12:50:17 GMT</pubDate>
    <dc:creator>HenriqueJoner</dc:creator>
    <dc:date>2021-05-24T12:50:17Z</dc:date>
    <item>
      <title>arcgis.mapping.renderer.generate_renderer(???????)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-mapping-renderer-generate-renderer/m-p/1060921#M6111</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new has developer in esri products.&lt;/P&gt;&lt;P&gt;I'm having trouble with this method. I'm trying to create a chorolopeth map using esriClassifyNaturalBreaks, but the API reference doesn't mention any argument for the number of breaks, i found it in a video for other method (sdf.spatial.plot), the argument is "class_count=", and it works, i don't know why it is not in the documentation. But surprisenly the argument "method = ", does not work at all. No matter the value used it creates the same renderer. Am i doing something wrong here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;renderer_classed = arcgis.mapping.renderer.generate_renderer(geometry_type = 'Polygon',
sdf_or_series = sdf, 
render_type ='c',
colors = 'Reds',
method = 'esriClassifyNaturalBreaks',
field = 'media_10',
class_count = 5)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which is the best way to create a renderer in python arcgis API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 12:50:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-mapping-renderer-generate-renderer/m-p/1060921#M6111</guid>
      <dc:creator>HenriqueJoner</dc:creator>
      <dc:date>2021-05-24T12:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.mapping.renderer.generate_renderer(???????)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-mapping-renderer-generate-renderer/m-p/1061137#M6116</link>
      <description>&lt;P&gt;Just for update this topic:&lt;/P&gt;&lt;P&gt;When using sdf.spatial.plot() i get the same result. Any method, same renderer...&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sdf.spatial.plot(kind ='map',
                map_widget = mapa1,
                renderer_type = 'c',
                method = 'esriClassifyNaturalBreaks',
                col = 'media_10',
                class_count = 5,
                cmap = 'Reds',
                outline_color = [0,0,0,150],
                line_width = 0.5)&lt;/LI-CODE&gt;&lt;P&gt;It always retrieve equal intervals...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 20:31:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-mapping-renderer-generate-renderer/m-p/1061137#M6116</guid>
      <dc:creator>HenriqueJoner</dc:creator>
      <dc:date>2021-05-24T20:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.mapping.renderer.generate_renderer(???????)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-mapping-renderer-generate-renderer/m-p/1061210#M6118</link>
      <description>&lt;P&gt;And additionaly, the very sample code from esri doesn't work has it should be:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/guide/visualizing-data-with-the-spatially-enabled-dataframe/" target="_blank"&gt;https://developers.arcgis.com/python/guide/visualizing-data-with-the-spatially-enabled-dataframe/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you try m4 sample code, you will realise that this method doesn't work at all:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="n"&gt;df&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;spatial&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;plot&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;map_widget&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="n"&gt;m4&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;
               &lt;SPAN class="n"&gt;renderer_type&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;'c'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;  &lt;SPAN class="c1"&gt;# for class breaks renderer&lt;/SPAN&gt;
               &lt;SPAN class="n"&gt;method&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;'esriClassifyNaturalBreaks'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;  &lt;SPAN class="c1"&gt;# classification algorithm&lt;/SPAN&gt;
               &lt;SPAN class="n"&gt;class_count&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;20&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;  &lt;SPAN class="c1"&gt;# choose the number of classes&lt;/SPAN&gt;
               &lt;SPAN class="n"&gt;col&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;'POPULATION'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;  &lt;SPAN class="c1"&gt;# numeric column to classify&lt;/SPAN&gt;
               &lt;SPAN class="n"&gt;cmap&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;'prism'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;  &lt;SPAN class="c1"&gt;# color map to pick colors from for each class&lt;/SPAN&gt;
               &lt;SPAN class="n"&gt;alpha&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="mf"&gt;0.7&lt;/SPAN&gt;  &lt;SPAN class="c1"&gt;# specify opacity&lt;/SPAN&gt;
               &lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;You can change to any method here (e.g., esriClassifyQuantile), and you will always get equal intervals breaks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, the most strange thing is that to very sample code shows that there's no esriClassifyNaturalBreaks hapening there, has they show in the sample script, it is equal intervals....&lt;/P&gt;&lt;DIV class="input"&gt;&lt;DIV class="inner_cell"&gt;&lt;DIV class="input_area"&gt;&lt;DIV class="highlight hl-ipython3"&gt;&lt;PRE&gt;&lt;SPAN class="n"&gt;cbs_list&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="p"&gt;[]&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;cmap_list&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="p"&gt;[]&lt;/SPAN&gt;
&lt;SPAN class="k"&gt;for&lt;/SPAN&gt; &lt;SPAN class="n"&gt;cb&lt;/SPAN&gt; &lt;SPAN class="ow"&gt;in&lt;/SPAN&gt; &lt;SPAN class="n"&gt;class_breaks&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="nb"&gt;print&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;cb&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;description&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;  &lt;SPAN class="c1"&gt;# print the class break labels&lt;/SPAN&gt;
    &lt;SPAN class="n"&gt;cbs_list&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;append&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;cb&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;classMaxValue&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="n"&gt;cmap_list&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;append&lt;/SPAN&gt;&lt;SPAN class="p"&gt;([&lt;/SPAN&gt;&lt;SPAN class="n"&gt;x&lt;/SPAN&gt;&lt;SPAN class="o"&gt;/&lt;/SPAN&gt;&lt;SPAN class="mf"&gt;255.0&lt;/SPAN&gt; &lt;SPAN class="k"&gt;for&lt;/SPAN&gt; &lt;SPAN class="n"&gt;x&lt;/SPAN&gt; &lt;SPAN class="ow"&gt;in&lt;/SPAN&gt; &lt;SPAN class="n"&gt;cb&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;symbol&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;color&lt;/SPAN&gt;&lt;SPAN class="p"&gt;])&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="output_wrapper"&gt;&lt;DIV class="output"&gt;&lt;DIV class="output_area"&gt;&lt;DIV class="output_subarea output_stream output_stdout output_text"&gt;&lt;PRE&gt;7957.0 - 11659.315789473683
11659.315789473683 - 15361.631578947368
15361.631578947368 - 19063.947368421053
19063.947368421053 - 22766.263157894737
22766.263157894737 - 26468.57894736842
26468.57894736842 - 30170.894736842107
30170.894736842107 - 33873.21052631579
33873.21052631579 - 37575.52631578947
37575.52631578947 - 41277.84210526316
41277.84210526316 - 44980.15789473684
44980.15789473684 - 48682.47368421053
48682.47368421053 - 52384.78947368421
52384.78947368421 - 56087.10526315789
56087.10526315789 - 59789.42105263158
59789.42105263158 - 63491.73684210526
63491.73684210526 - 67194.05263157895
67194.05263157895 - 70896.36842105264
70896.36842105264 - 74598.68421052632
74598.68421052632 - 78301.0
78301.0 - 78301.0&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 May 2021 02:07:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-mapping-renderer-generate-renderer/m-p/1061210#M6118</guid>
      <dc:creator>HenriqueJoner</dc:creator>
      <dc:date>2021-05-25T02:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.mapping.renderer.generate_renderer(???????)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-mapping-renderer-generate-renderer/m-p/1061212#M6119</link>
      <description>&lt;P&gt;Now the question is, has someone had success using this Python API for choropleth maps with these methods? Please, show me how.&lt;/P&gt;&lt;PRE&gt;method                  Determines the classification method that was used to
                        generate class breaks.

                        Must be one of the following values:

                        + esriClassifyDefinedInterval
                        + esriClassifyEqualInterval
                        + esriClassifyGeometricalInterval
                        + esriClassifyNaturalBreaks
                        + esriClassifyQuantile
                        + esriClassifyStandardDeviation
                        + esriClassifyManual&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 02:11:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-mapping-renderer-generate-renderer/m-p/1061212#M6119</guid>
      <dc:creator>HenriqueJoner</dc:creator>
      <dc:date>2021-05-25T02:11:58Z</dc:date>
    </item>
  </channel>
</rss>

