<?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: identify the shape of polygon in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/identify-the-shape-of-polygon/m-p/1094350#M45047</link>
    <description>&lt;P&gt;The isoperimetric distance was the first thing I thought of when I saw this post, glad to see it's already been suggested. It'll definitely get you your circles.&lt;/P&gt;&lt;P&gt;For rectangles, you could also orthogonalize the shapes and compare the output against the input. Shapes which changed very little were likely rectangular to begin with.&lt;/P&gt;&lt;P&gt;I have a couple of questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Are there other shapes besides circles and rectangles you'd like identified? Or were you looking for some way to easily classify your shapes, i.e., building vs. silo? From your screenshots, it looks like you might be dealing with building / silo footprints of some kind.&lt;/LI&gt;&lt;LI&gt;Are there particular tools or processing environments you prefer or avoid? There could be a number of ways to approach this. Model builder, python, Data Interoperability, etc.&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Wed, 01 Sep 2021 13:15:08 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2021-09-01T13:15:08Z</dc:date>
    <item>
      <title>identify the shape of polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/identify-the-shape-of-polygon/m-p/1094278#M45044</link>
      <description>&lt;P&gt;Hi everbody, I have a dataset contains polygon in a geodatabase, some of a shape of a circle like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielSrensen_0-1630480723989.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22154i49503EDFC5F50722/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielSrensen_0-1630480723989.png" alt="DanielSrensen_0-1630480723989.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and some squard like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielSrensen_1-1630480780278.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22155i39B2460B5FD67876/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielSrensen_1-1630480780278.png" alt="DanielSrensen_1-1630480780278.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you guys know a method, that can identify, what kind of shape the polygons are? I tried count the number of vertex's, which indicate a bit the shape (a high number of vertex indicate a circle - but not always).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 07:25:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/identify-the-shape-of-polygon/m-p/1094278#M45044</guid>
      <dc:creator>DanielSørensen</dc:creator>
      <dc:date>2021-09-01T07:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: identify the shape of polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/identify-the-shape-of-polygon/m-p/1094308#M45045</link>
      <description>&lt;P&gt;Hmmm, interesting.&lt;/P&gt;&lt;P&gt;4 vertices and distance(v1, v3) ~ distance(v2, v4): rectangle, else irregular quadrangle.&lt;/P&gt;&lt;P&gt;(Almost) circles: for each vertex, get the distance from the centroid. get min and max distance. if max - min ~ 0: it's a circle, else it's something else.&lt;/P&gt;&lt;P&gt;or: calculate the isoperimetric quotient of the polygon&lt;A href="https://en.wikipedia.org/wiki/Isoperimetric_inequality" target="_blank" rel="noopener"&gt; (https://en.wikipedia.org/wiki/Isoperimetric_inequality&lt;/A&gt;, &lt;A href="https://en.wikipedia.org/wiki/Polsby%E2%80%93Popper_test" target="_blank" rel="noopener"&gt;https://en.wikipedia.org/wiki/Polsby%E2%80%93Popper_test&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Q = 4*pi*area/(perimeter^2)&lt;/P&gt;&lt;P&gt;For Q == 1 it's a circle; the lower Q gets, the less circle-ish the shape is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rectangle-ish shapes with more than 4 vertices: get bearing of each line segment. if bearing[i] ~ bearing[i+1], it's the same side. if you get 4 sides this way, you know its a quadrangle. get the angles between the sides. if they're ~90°, it's a rectangle.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 09:09:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/identify-the-shape-of-polygon/m-p/1094308#M45045</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-09-01T09:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: identify the shape of polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/identify-the-shape-of-polygon/m-p/1094350#M45047</link>
      <description>&lt;P&gt;The isoperimetric distance was the first thing I thought of when I saw this post, glad to see it's already been suggested. It'll definitely get you your circles.&lt;/P&gt;&lt;P&gt;For rectangles, you could also orthogonalize the shapes and compare the output against the input. Shapes which changed very little were likely rectangular to begin with.&lt;/P&gt;&lt;P&gt;I have a couple of questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Are there other shapes besides circles and rectangles you'd like identified? Or were you looking for some way to easily classify your shapes, i.e., building vs. silo? From your screenshots, it looks like you might be dealing with building / silo footprints of some kind.&lt;/LI&gt;&lt;LI&gt;Are there particular tools or processing environments you prefer or avoid? There could be a number of ways to approach this. Model builder, python, Data Interoperability, etc.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 01 Sep 2021 13:15:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/identify-the-shape-of-polygon/m-p/1094350#M45047</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-09-01T13:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: identify the shape of polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/identify-the-shape-of-polygon/m-p/1094461#M45066</link>
      <description>&lt;P&gt;Try the following:&lt;/P&gt;&lt;P&gt;Run Minimum Bounding Geometry on your polygons with the CIRCLE geometry type. You will get the smallest circle around every polygon. For input circle like polygons, their Shape_Area would be much closer to the bounding circle than rectangle polygons.&lt;/P&gt;&lt;P&gt;Use Join Field to transfer Shape_Area from the circles to input polygons. The field name will be Shape_Area_1.&lt;/P&gt;&lt;P&gt;Add a field to the input and calculate the ratio between Shape_Area and Shape_Area_1 to the new field. The circle-like polygons should have the ratio values very close to 1. The remaining ones would be rectangle or other non-circle shapes.&lt;/P&gt;&lt;P&gt;Sorry I don't have time to write the details. Hope you get the idea.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 15:58:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/identify-the-shape-of-polygon/m-p/1094461#M45066</guid>
      <dc:creator>DanLee</dc:creator>
      <dc:date>2021-09-01T15:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: identify the shape of polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/identify-the-shape-of-polygon/m-p/1098662#M45629</link>
      <description>&lt;P&gt;Hi Johannes&lt;/P&gt;&lt;P&gt;Thanks, its seams like its working for me, when I use:&amp;nbsp;&lt;SPAN&gt;Q = 4*pi*area/(perimeter^2) like this in field calculater:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(&lt;SPAN class=""&gt;4&lt;/SPAN&gt;&amp;nbsp;*&amp;nbsp;&lt;SPAN class=""&gt;3.14&lt;/SPAN&gt;* !shape.area!) / !shape.&lt;SPAN class=""&gt;length&lt;/SPAN&gt;! **&amp;nbsp;&lt;SPAN class=""&gt;2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;I most interested in, whatever the object is a circle or something else, and if I used Q &amp;gt; 0,98 I get all the circles.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 20:37:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/identify-the-shape-of-polygon/m-p/1098662#M45629</guid>
      <dc:creator>DanielSørensen</dc:creator>
      <dc:date>2021-09-15T20:37:16Z</dc:date>
    </item>
  </channel>
</rss>

