<?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: Why is the creation of the polygon failing for this point array? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115661#M9055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="_jivemacro_uid_14539061678078883 jive_macro_code jive_text_macro" data-renderedposition="8_8_912_160" jivemacro_uid="_14539061678078883"&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14539062799456949 jive_text_macro" data-renderedposition="8_67_853_0" jivemacro_uid="_14539062799456949"&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;poly_pnts = [[37.310437, -122.244706],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.320437, -122.244706],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.320437, -122.241706],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.310437, -122.241706]]&lt;/P&gt;&lt;P&gt;points = arcpy.Array([arcpy.Point(*coords) for coords in poly_pnts])&lt;BR /&gt;poly = arcpy.Polygon(points)&lt;BR /&gt;CH = poly.convexHull()&lt;BR /&gt;centroid = poly.centroid&lt;BR /&gt;print("Points\n{!r:}\nConvex Hull\n{}\nCentroid\n{!r:}".format(points, CH, centroid))&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you go simple first?&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/P&gt;&lt;P&gt;Points&lt;BR /&gt;&amp;lt;Array [&amp;lt;Point (37.310437, -122.244706, #, #)&amp;gt;, &amp;lt;Point (37.320437, -122.244706, #, #)&amp;gt;, &amp;lt;Point (37.320437, -122.241706, #, #)&amp;gt;, &amp;lt;Point (37.310437, -122.241706, #, #)&amp;gt;]&amp;gt;&lt;BR /&gt;Convex Hull&lt;BR /&gt;&amp;lt;geoprocessing describe geometry object object at 0x02628C20&amp;gt;&lt;BR /&gt;Centroid&lt;BR /&gt;&amp;lt;Point (37.3154907227, -122.24319458, #, #)&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jan 2016 14:51:23 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2016-01-27T14:51:23Z</dc:date>
    <item>
      <title>Why is the creation of the arcpy.Polygon object failing for this point array?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115658#M9052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed two tests to demonstrate the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def test_centroidTestFails(self):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygonpoints = [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.310437, -122.244706],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.320437, -122.244706],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.320437, -122.242706],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.310437, -122.242706]]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; points = arcpy.Array([arcpy.Point(*coords) for coords in polygonpoints])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon = arcpy.Polygon(points)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; with self.assertRaises(Exception) as context:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; centroid = polygon.centroid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def test_centroidTestSucceeds(self):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygonpoints = [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.310437, -122.244706],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.320437, -122.244706],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.320437, -122.241706],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.310437, -122.241706]]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; points = arcpy.Array([arcpy.Point(*coords) for coords in polygonpoints])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon = arcpy.Polygon(points)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; centroid = polygon.centroid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is the first test failing? For some reason the generated points array can't be used as input for the arcpy.Polygon() constructor. polygon.pointCount will return 0 for the test_centroidTestFails(). What is going wrong? Am i doing something wrong or is this a framework problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&amp;nbsp; Note that there is a small difference in the data points that are used for the two tests. The first test fails for no apparent reason and polygon.pointCount will return 0 on this test. The second test works successfully. For some reason the Array of points that is created is not accepted by the polygon constructor in the first test. Adding an additional point to close the polygon is not necessary and doesn't resolve the issue. The polygon will still return 0 points when using the data points from the first test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT 2:&lt;/STRONG&gt; the minor difference is -122.242706 vs. -122.241706 for the last two data points. ( .242 vs .241)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 13:41:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115658#M9052</guid>
      <dc:creator>BKuiper</dc:creator>
      <dc:date>2016-01-27T13:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the creation of the polygon failing for this point array?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115659#M9053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could it be that you need to repeat the first coordinate to close the polygon?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;def test_centroidTestFails(self):&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygonpoints = [&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.310437, -122.244706],&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.320437, -122.244706],&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.320437, -122.242706],&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.310437, -122.242706],&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.310437, -122.244706]]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 13:48:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115659#M9053</guid>
      <dc:creator>JenniferMcCall4</dc:creator>
      <dc:date>2016-01-27T13:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the creation of the polygon failing for this point array?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115660#M9054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, that doesn't matter. The second test runs successfully with a 4 points. I also tried running it with 5 points, with no luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 14:30:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115660#M9054</guid>
      <dc:creator>BKuiper</dc:creator>
      <dc:date>2016-01-27T14:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the creation of the polygon failing for this point array?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115661#M9055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="_jivemacro_uid_14539061678078883 jive_macro_code jive_text_macro" data-renderedposition="8_8_912_160" jivemacro_uid="_14539061678078883"&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14539062799456949 jive_text_macro" data-renderedposition="8_67_853_0" jivemacro_uid="_14539062799456949"&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;poly_pnts = [[37.310437, -122.244706],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.320437, -122.244706],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.320437, -122.241706],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.310437, -122.241706]]&lt;/P&gt;&lt;P&gt;points = arcpy.Array([arcpy.Point(*coords) for coords in poly_pnts])&lt;BR /&gt;poly = arcpy.Polygon(points)&lt;BR /&gt;CH = poly.convexHull()&lt;BR /&gt;centroid = poly.centroid&lt;BR /&gt;print("Points\n{!r:}\nConvex Hull\n{}\nCentroid\n{!r:}".format(points, CH, centroid))&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you go simple first?&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/P&gt;&lt;P&gt;Points&lt;BR /&gt;&amp;lt;Array [&amp;lt;Point (37.310437, -122.244706, #, #)&amp;gt;, &amp;lt;Point (37.320437, -122.244706, #, #)&amp;gt;, &amp;lt;Point (37.320437, -122.241706, #, #)&amp;gt;, &amp;lt;Point (37.310437, -122.241706, #, #)&amp;gt;]&amp;gt;&lt;BR /&gt;Convex Hull&lt;BR /&gt;&amp;lt;geoprocessing describe geometry object object at 0x02628C20&amp;gt;&lt;BR /&gt;Centroid&lt;BR /&gt;&amp;lt;Point (37.3154907227, -122.24319458, #, #)&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 14:51:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115661#M9055</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-01-27T14:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the creation of the polygon failing for this point array?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115662#M9056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note the small difference in the points that are defined for the two tests. The first set fails. The second set succeeds successfully. You used the second set, which is known to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try again with this set and you will see it fails:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.310437, -122.244706],&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.320437, -122.244706],&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.320437, -122.242706],&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [37.310437, -122.242706]]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 14:55:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115662#M9056</guid>
      <dc:creator>BKuiper</dc:creator>
      <dc:date>2016-01-27T14:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the creation of the polygon failing for this point array?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115663#M9057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok... just a query, If these are longitudes and latitudes, then you have the columns mixed up -122 is X aka long. and the 37's are Y.&amp;nbsp; So you need to check the point order which should go clockwise.&amp;nbsp; So pick one of your points and sort them by X and y pairs so that they are in clockwise order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 15:16:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115663#M9057</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-01-27T15:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the creation of the polygon failing for this point array?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115664#M9058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good point! Thanks! I adjusted it in my code, but doesn't matter in regards to the 'bug' I mentioned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 15:24:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115664#M9058</guid>
      <dc:creator>BKuiper</dc:creator>
      <dc:date>2016-01-27T15:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the creation of the polygon failing for this point array?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115665#M9059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And when you create the geometry, always specify the spatial reference for the points. This is a geographic coordinate system and those points (which are not very far apart) could be collapsing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;sr = arcpy.SpatialReference(4326) # GCS_WGS84
.....

poly = arcpy.Polygon(array, sr)&lt;/PRE&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:49:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115665#M9059</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2021-12-11T06:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the creation of the arcpy.Polygon object failing for this point array?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115666#M9060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;specifing the spatial reference seems to resolve the issue. Could you explain or reference me to an article that explains the collapsing of the polygon. I'm not sure what this means. Would the arcpy.Polygon() constructor assume a default spatial reference when none specified where these points are to closely to one another?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 22:16:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115666#M9060</guid>
      <dc:creator>BKuiper</dc:creator>
      <dc:date>2016-01-27T22:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the creation of the arcpy.Polygon object failing for this point array?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115667#M9061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;strangely, I thought I posted a link to you this morning but it appears I failed to click Post.&lt;/P&gt;&lt;P&gt;I created quite the kerfuffle some time ago... this is one of the links...I have more elsewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/10256"&gt;Errors in arcpy's Polygon class&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 22:28:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115667#M9061</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-01-27T22:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the creation of the arcpy.Polygon object failing for this point array?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115668#M9062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. That thread was really helpful. It is interesting to see that it actually works when you specify an empty SpatialReference object (thus: polygon = arcpy.Polygon(points, arcpy.SpatialReference()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least there is some workaround.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 07:45:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115668#M9062</guid>
      <dc:creator>BKuiper</dc:creator>
      <dc:date>2016-01-28T07:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the creation of the arcpy.Polygon object failing for this point array?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115669#M9063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But it is always better to define the coordinate system when creating geometry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 09:12:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115669#M9063</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2016-01-28T09:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the creation of the arcpy.Polygon object failing for this point array?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115670#M9064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why would you want to create features with an unknown spatial reference?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 09:13:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-the-creation-of-the-arcpy-polygon-object/m-p/115670#M9064</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2016-01-28T09:13:45Z</dc:date>
    </item>
  </channel>
</rss>

