<?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: weird issue using geometry objects in python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/weird-issue-using-geometry-objects-in-python/m-p/49037#M3890</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tough part about forums and not knowing people personally, comments can be read multiple ways....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhow, two other bugs were issued related to the aforementioned Support case:&amp;nbsp; BUG-000084666 and BUG-000084667.&amp;nbsp; Even though the impact might seem limited on the surface, cases like this can point to larger issues with managing precision deeper in the software stack.&amp;nbsp; What isn't stated in the public-facing Support system is that the "bug is not coordinate specific and it is not spatial reference specific."&amp;nbsp; Although the illustrative example involved working in a coordinate system that presented an unusual real-world case, it has been demonstrated the issue is abstracted from a single coordinate system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the end, the true impact may be small but maybe not.&amp;nbsp; It isn't always easy to tell until developers dig into the bug deeper.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jan 2015 19:36:44 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2015-01-21T19:36:44Z</dc:date>
    <item>
      <title>weird issue using geometry objects in python</title>
      <link>https://community.esri.com/t5/python-questions/weird-issue-using-geometry-objects-in-python/m-p/49030#M3883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am writing a script in python to generate polygons from lists of coordinates that I have saved in csv files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have followed the proper method of assigning the coordinates as point objects, adding them to an array, and then "arcpy.Polygon(array)" to get it as a polygon object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having a weird issue when I try to make the polygon from the array. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have gone into the shell and step by stepped it, when i print my array, i get this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;Array [&amp;lt;Point (147.7359, -35.5386, #, #)&amp;gt;, &amp;lt;Point (147.7366, -35.539, #, #)&amp;gt;, &amp;lt;Point (147.737, -35.539, #, #)&amp;gt;, &amp;lt;Point (147.7375, -35.539, #, #)&amp;gt;, &amp;lt;Point (147.7374, -35.5397, #, #)&amp;gt;, &amp;lt;Point (147.7368, -35.5401, #, #)&amp;gt;, &amp;lt;Point (147.7354, -35.5403, #, #)&amp;gt;, &amp;lt;Point (147.7343, -35.5405, #, #)&amp;gt;, &amp;lt;Point (147.732, -35.5408, #, #)&amp;gt;, &amp;lt;Point (147.7304, -35.5409, #, #)&amp;gt;, &amp;lt;Point (147.7299, -35.5414, #, #)&amp;gt;, &amp;lt;Point (147.7287, -35.5422, #, #)&amp;gt;, &amp;lt;Point (147.7272, -35.5423, #, #)&amp;gt;, &amp;lt;Point (147.726, -35.5433, #, #)&amp;gt;, &amp;lt;Point (147.7255, -35.5439, #, #)&amp;gt;, &amp;lt;Point (147.7247, -35.5445, #, #)&amp;gt;, &amp;lt;Point (147.724, -35.5452, #, #)&amp;gt;, &amp;lt;Point (147.7228, -35.5432, #, #)&amp;gt;, &amp;lt;Point (147.7235, -35.5421, #, #)&amp;gt;, &amp;lt;Point (147.7249, -35.5416, #, #)&amp;gt;, &amp;lt;Point (147.7256, -35.5411, #, #)&amp;gt;, &amp;lt;Point (147.7269, -35.541, #, #)&amp;gt;, &amp;lt;Point (147.7275, -35.541, #, #)&amp;gt;, &amp;lt;Point (147.7283, -35.5409, #, #)&amp;gt;, &amp;lt;Point (147.7287, -35.5408, #, #)&amp;gt;, &amp;lt;Point (147.7296, -35.5399, #, #)&amp;gt;, &amp;lt;Point (147.7308, -35.5396, #, #)&amp;gt;, &amp;lt;Point (147.7323, -35.5395, #, #)&amp;gt;, &amp;lt;Point (147.7333, -35.5392, #, #)&amp;gt;, &amp;lt;Point (147.734, -35.5387, #, #)&amp;gt;, &amp;lt;Point (147.7347, -35.5386, #, #)&amp;gt;, &amp;lt;Point (147.7359, -35.5386, #, #)&amp;gt;]&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which looks good to me, they are the exact coordinates from my csv, same order, and i don't require Z or M values so the "#" marks are expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when I use Polygon.getPart(), i get this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;Array [&amp;lt;Array [&amp;lt;Point (147.727905273, -35.5413818359, #, #)&amp;gt;, &amp;lt;Point (147.725097656, -35.5441894531, #, #)&amp;gt;, &amp;lt;Point (147.723327637, -35.5426025391, #, #)&amp;gt;, &amp;lt;Point (147.725280762, -35.5413208008, #, #)&amp;gt;, &amp;lt;Point (147.727905273, -35.5413818359, #, #)&amp;gt;]&amp;gt;]&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have done this numerous times, and i am definitely using the correct array in the arcpy.Polygon() function... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I should note that the polygon i am trying to draw is quite a simple shape also... no "donut holes", and its not multi-part...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have added an attachment comparing the two in arcmap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;has anyone ever come across this before?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 00:15:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/weird-issue-using-geometry-objects-in-python/m-p/49030#M3883</guid>
      <dc:creator>AndrewHaley</dc:creator>
      <dc:date>2014-01-21T00:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: weird issue using geometry objects in python</title>
      <link>https://community.esri.com/t5/python-questions/weird-issue-using-geometry-objects-in-python/m-p/49031#M3884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Andrew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when you create the polygon object, be sure to specify the spatial reference of the object as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;like :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;polygeom = arcpy.Polygon(array, sr)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Usually I get the sr object from Describe of the feature class I am adding to, or you can use the WKID of the coord sys.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers and good luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Neil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 05:10:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/weird-issue-using-geometry-objects-in-python/m-p/49031#M3884</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2014-01-21T05:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: weird issue using geometry objects in python</title>
      <link>https://community.esri.com/t5/python-questions/weird-issue-using-geometry-objects-in-python/m-p/49032#M3885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Although this is an older thread/message, I stumbled onto this problem recently and noticed some odd behavior with the ArcPy Geometry Classes and spatial references.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As &lt;A ___default_attr="5327" data-id="5327" data-objecttype="3" data-orig-content="Neil Ayres" data-type="person" href="https://community.esri.com/" jivemacro="user" rel="nofollow noopener noreferrer" target="_blank"&gt;Neil Ayres&lt;/A&gt;‌ points out, including a spatial reference is a good practice.&amp;nbsp; The documentation of &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Geometry/018z00000070000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;ArcPy Geometry Classes&lt;/A&gt; is a bit weak or confusing on this specific issue because &lt;SPAN style="font-family: 'Courier New'; font-size: 10pt;"&gt;spatial_reference &lt;/SPAN&gt;is listed as an optional argument with a default value of &lt;SPAN style="font-family: 'Courier New'; font-size: 10pt;"&gt;None&lt;/SPAN&gt;.&amp;nbsp; According to the documentation, there is no reason your original code shouldn't work.&amp;nbsp; What is happening might be related to a similar issue that was discussed in detail years back by &lt;A ___default_attr="3116" data-id="3116" data-objecttype="3" data-orig-content="Dan Patterson" data-type="person" href="https://community.esri.com/" jivemacro="user" rel="nofollow noopener noreferrer" target="_blank"&gt;Dan Patterson&lt;/A&gt;‌ and &lt;A ___default_attr="2582" data-id="2582" data-objecttype="3" data-orig-content="David Wynne" data-type="person" href="https://community.esri.com/" jivemacro="user" rel="nofollow noopener noreferrer" target="_blank"&gt;David Wynne&lt;/A&gt; in the&lt;A _jive_internal="true" href="https://community.esri.com/message/11502#11502" target="_blank"&gt; Errors in arcpy's Polygon class &lt;/A&gt;thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know what exactly is going on, but I would say there is a bug in the ArcPy Geometry Classes.&amp;nbsp; Looking at the same set of coordinates with four different spatial reference scenarios:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;EM&gt;coords = [(147.7359, -35.5386), (147.7374, -35.5397), (147.7304, -35.5409),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (147.7304, -35.5409), (147.7255, -35.5439), (147.7249, -35.5416)]&lt;/EM&gt;

&lt;EM&gt;SR_list = [['noneSR', None],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ['emptySR', arcpy.SpatialReference()],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ['webmercSR', arcpy.SpatialReference(3857)],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ['wgs84', arcpy.SpatialReference(4326)]]&lt;/EM&gt;

&lt;EM&gt;results = [['SR_Name', 'Type', 'PCSName', 'GCSName', 'XYResolution', 'pointCount']]&lt;/EM&gt;

&lt;EM&gt;for SR_name, SR in SR_list:
&amp;nbsp;&amp;nbsp;&amp;nbsp; pn = arcpy.Polygon(
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Array([arcpy.Point(*coord) for coord in coords]),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SR
&amp;nbsp;&amp;nbsp;&amp;nbsp; )
&amp;nbsp;&amp;nbsp;&amp;nbsp; pnSR = pn.spatialReference
&amp;nbsp;&amp;nbsp;&amp;nbsp; if pnSR is None:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; results.append([SR_name, SR.type, SR.PCSName,
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SR.GCSName, SR.XYResolution, pn.pointCount])
&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; results.append([SR_name, pnSR.type, pnSR.PCSName,
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pnSR.GCSName, pnSR.XYResolution, pn.pointCount])&lt;/EM&gt;

&lt;EM&gt;for result in results:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print '{:&amp;lt;12}{:&amp;lt;12}{:&amp;lt;36.34}{:&amp;lt;12.10}{:&amp;lt;12.10}{:&amp;lt;4}'.format(*result)&lt;/EM&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yields:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
SR_Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PCSName&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;&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; GCSName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XYResoluti&amp;nbsp; pointCount
noneSR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unknown&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 
emptySR&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;&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp; 
webmercSR&amp;nbsp;&amp;nbsp; Projected&amp;nbsp;&amp;nbsp; WGS_1984_Web_Mercator_Auxiliary_Sp&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; 0.0001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 
wgs84&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Geographic&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GCS_WGS_19&amp;nbsp; 1e-09&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp; 
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To me, this behavior seems odd.&amp;nbsp; Using no spatial reference (None), which is the default, arcpy.Polygon does not generate an error, but it effectively doesn't generate a polygon either (f&lt;EM&gt;rom a practical perspective, I don't consider a polygon with zero points a polygon, especially when it should have six points).&lt;/EM&gt;&amp;nbsp; Using an empty spatial reference, arcpy.Polygon generates a 6-pt polygon using a spatial reference that has no type, no names, and no XY resolution.&amp;nbsp; Interestingly enough, although a polygon is generated with six points and all the Polygon methods work, none of the geoprocessing tools (CopyFeatures_management, etc...) that I tried would work with it, likely due to its nonexisting spatial reference.&amp;nbsp; Using the Web Mercator projection, arcpy.Polygon fails to create the polygon in question even though the coordinates are valid within the Web Mercator projection.&amp;nbsp; And finally using a geographic coordinate system, arcpy.Polygon generates the polygon we have been after the whole time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From my perspective, the none/default and Web Mercator spatial references should generate a 6-pt polygon but don't while the empty spatial reference should generate an error instead of generating a 6-pt polygon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:53:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/weird-issue-using-geometry-objects-in-python/m-p/49032#M3885</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-10T21:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: weird issue using geometry objects in python</title>
      <link>https://community.esri.com/t5/python-questions/weird-issue-using-geometry-objects-in-python/m-p/49033#M3886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can confirm that the behaviour I noticed several years ago still exists and your recommendation that a SR always be used still holds.&amp;nbsp; This not only affects the ability to generate geometric objects but also their 'precision'.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User beware...this makes working with a fixed accuracy and precision difficult to control.&amp;nbsp; The errors may seem insignificant, with the exception of no features generated, but it affects working with more math specific modules such as numpy etc.&amp;nbsp; I have been comparing numpy generated point coordinates with those generated with arcpy and the spatial reference omission has always generated the differences.&amp;nbsp; I now use numpy recarrays to do most of my geometric operations using arcpy solely to transfer geometry and attribute information back and forth between the applications.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 01:31:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/weird-issue-using-geometry-objects-in-python/m-p/49033#M3886</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-12-19T01:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: weird issue using geometry objects in python</title>
      <link>https://community.esri.com/t5/python-questions/weird-issue-using-geometry-objects-in-python/m-p/49034#M3887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Opened a case with Esri Support back on 12/19.&amp;nbsp; Esri Support was able to narrow the issue down even further, but the case remains open until Esri Development decides they have some time to look into it more.&amp;nbsp; I will post the bug number when it gets formally issued.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 21:46:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/weird-issue-using-geometry-objects-in-python/m-p/49034#M3887</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-01-16T21:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: weird issue using geometry objects in python</title>
      <link>https://community.esri.com/t5/python-questions/weird-issue-using-geometry-objects-in-python/m-p/49035#M3888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Esri Support issued a formal bug:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Bug BUG-000084665:&lt;/P&gt;&lt;P&gt;Attempting to create an equilateral triangle with lengths of 0.0027 gives, "The feature could not be created. The geometry is invalid." However, the distance between each vertex is greater than the XY Tolerance (0.001) and the XY Resolution (0.0001).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternate Solution:&lt;/P&gt;&lt;P&gt;Ensure the distance between each vertex is at least 0.0029 units.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I can't say I am a fan of the Summary text.&amp;nbsp; I think it downplays the scope and impact of the bug, i.e., someone might think it is about triangles and not the much larger issue of all polygons and lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The workaround is basically to not trust the XY Tolerance or XY Resolution of spatial references.&amp;nbsp; &lt;EM&gt;Caveat utilitor.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 18:28:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/weird-issue-using-geometry-objects-in-python/m-p/49035#M3888</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-01-21T18:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: weird issue using geometry objects in python</title>
      <link>https://community.esri.com/t5/python-questions/weird-issue-using-geometry-objects-in-python/m-p/49036#M3889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wow...works fine with a shapefile...I guess no one else works on projects with millimeter references and sub-meter extents&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 19:02:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/weird-issue-using-geometry-objects-in-python/m-p/49036#M3889</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-01-21T19:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: weird issue using geometry objects in python</title>
      <link>https://community.esri.com/t5/python-questions/weird-issue-using-geometry-objects-in-python/m-p/49037#M3890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tough part about forums and not knowing people personally, comments can be read multiple ways....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhow, two other bugs were issued related to the aforementioned Support case:&amp;nbsp; BUG-000084666 and BUG-000084667.&amp;nbsp; Even though the impact might seem limited on the surface, cases like this can point to larger issues with managing precision deeper in the software stack.&amp;nbsp; What isn't stated in the public-facing Support system is that the "bug is not coordinate specific and it is not spatial reference specific."&amp;nbsp; Although the illustrative example involved working in a coordinate system that presented an unusual real-world case, it has been demonstrated the issue is abstracted from a single coordinate system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the end, the true impact may be small but maybe not.&amp;nbsp; It isn't always easy to tell until developers dig into the bug deeper.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 19:36:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/weird-issue-using-geometry-objects-in-python/m-p/49037#M3890</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-01-21T19:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: weird issue using geometry objects in python</title>
      <link>https://community.esri.com/t5/python-questions/weird-issue-using-geometry-objects-in-python/m-p/49038#M3891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which I was surprised find out, that the original errors that I posted on when using geometry objects without a SR hadn't been addressed in several releases and still is an issue, from what I am finding. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are working in small areas and need a 0,0 origin...it is a pain that you have to specify a coordinate system in the first place...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When people ask where I do my most work I say ... about 600km south of Accra and 750 km west of Sao Tome &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 20:39:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/weird-issue-using-geometry-objects-in-python/m-p/49038#M3891</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-01-21T20:39:19Z</dc:date>
    </item>
  </channel>
</rss>

