<?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: Creating buffers dependent on polygon areas in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/creating-buffers-dependent-on-polygon-areas/m-p/1024989#M25166</link>
    <description>&lt;P&gt;It's an Arcade expression rather than python (most similar to Javascript I believe)&lt;/P&gt;&lt;P&gt;I think you've missed supplying the variable again after each &amp;amp;&amp;amp; (AND) statement, and also the default value if no conditions are met (in the below example I've supplied -99999)&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;when($feature.Area_ha &amp;lt;= 50, 100,
($feature.Area_ha &amp;gt;= 51 &amp;amp;&amp;amp; $feature.Area_ha &amp;lt;= 199), 200,
($feature.Area_ha &amp;gt;= 200 &amp;amp;&amp;amp; $feature.Area_ha &amp;lt;= 299), 300,
($feature.Area_ha &amp;gt;= 300 &amp;amp;&amp;amp; $feature.Area_ha &amp;lt;= 399), 400,
$feature.Area_ha &amp;gt;= 400, 500, -99999)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Feb 2021 19:05:34 GMT</pubDate>
    <dc:creator>DavidPike</dc:creator>
    <dc:date>2021-02-09T19:05:34Z</dc:date>
    <item>
      <title>Creating buffers dependent on polygon areas</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/creating-buffers-dependent-on-polygon-areas/m-p/1024983#M25165</link>
      <description>&lt;P&gt;I'm trying to create buffers around polygons with the buffer distance dependent on the size of the polygon. For example, a polygon of &amp;lt;50 hectares would get a buffer of 100m, 51-199 hectares gets a buffer of 200m, and so on. I've been using the Create Buffers tool and trying to use an Expression buffer type. Firstly, I'm not sure if this is the best way to go about this so any advice would be appreciated. Secondly, my expression keeps failing due it not being valid (I'm new to Python).&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code I've been trying to input has been something like:&lt;/P&gt;&lt;P&gt;when($feature.Area_ha &amp;lt;= 50, 100,&lt;BR /&gt;($feature.Area_ha &amp;gt;= 51 &amp;amp;&amp;amp; &amp;lt;= 199), 200,&lt;BR /&gt;($feature.Area_ha &amp;gt;= 200 &amp;amp;&amp;amp; &amp;lt;= 299), 300,&lt;BR /&gt;($feature.Area_ha &amp;gt;= 300 &amp;amp;&amp;amp; &amp;lt;= 399), 400,&lt;BR /&gt;$feature.Area_ha &amp;gt;= 400, 500)&lt;/P&gt;&lt;P&gt;If anyone has any advice on improving the code or another method that would be great.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 18:40:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/creating-buffers-dependent-on-polygon-areas/m-p/1024983#M25165</guid>
      <dc:creator>COLINGUILFOYLE</dc:creator>
      <dc:date>2021-02-09T18:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating buffers dependent on polygon areas</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/creating-buffers-dependent-on-polygon-areas/m-p/1024989#M25166</link>
      <description>&lt;P&gt;It's an Arcade expression rather than python (most similar to Javascript I believe)&lt;/P&gt;&lt;P&gt;I think you've missed supplying the variable again after each &amp;amp;&amp;amp; (AND) statement, and also the default value if no conditions are met (in the below example I've supplied -99999)&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;when($feature.Area_ha &amp;lt;= 50, 100,
($feature.Area_ha &amp;gt;= 51 &amp;amp;&amp;amp; $feature.Area_ha &amp;lt;= 199), 200,
($feature.Area_ha &amp;gt;= 200 &amp;amp;&amp;amp; $feature.Area_ha &amp;lt;= 299), 300,
($feature.Area_ha &amp;gt;= 300 &amp;amp;&amp;amp; $feature.Area_ha &amp;lt;= 399), 400,
$feature.Area_ha &amp;gt;= 400, 500, -99999)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 19:05:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/creating-buffers-dependent-on-polygon-areas/m-p/1024989#M25166</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-02-09T19:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Creating buffers dependent on polygon areas</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/creating-buffers-dependent-on-polygon-areas/m-p/1025247#M25167</link>
      <description>&lt;P&gt;Yes that's what the issue was - Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 08:43:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/creating-buffers-dependent-on-polygon-areas/m-p/1025247#M25167</guid>
      <dc:creator>COLINGUILFOYLE</dc:creator>
      <dc:date>2021-02-10T08:43:55Z</dc:date>
    </item>
  </channel>
</rss>

