<?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: ArcDesktop 10.5 - arcpy.da Geometry Issues in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645144#M50295</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;rather than 'SHAPE@' just try 'Shape'&amp;nbsp; ie the shape field name (they have their own issues)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Nov 2017 22:07:26 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2017-11-07T22:07:26Z</dc:date>
    <item>
      <title>ArcDesktop 10.5 - arcpy.da Geometry Issues</title>
      <link>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645140#M50291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp;have a quality control script that recreates features from a line work layer to ensure all our taxing districts are following the tax parcel boundaries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have been running this script every year since version 10.0&lt;/P&gt;&lt;P&gt;We recently upgraded to 10.5 and ran into a scenario where the union tool was creating features (in a file geodatabase featureclass) that have a shape_length value but the shape_area was zero. These features are tiny slivers (usually on curves) that appear to be lines (but are really polygons).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script copies the fallout features from the union layer to a quality control featuredataset in SDE using arpy.da cursors (search and insert).&lt;/P&gt;&lt;P&gt;where these areas are zero we started getting the following error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SystemError: error return without exception set&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;running a quick test, I tried to use the getArea() method to put in an exception for areas equaling zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;layer = r"\\path\to\featureclass"&lt;/P&gt;&lt;P&gt;with arcpy.da.SearchCursor(layer, ["SHAPE@"]) as cursor:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;for row in cursor:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if row[0].&lt;SPAN style="font-size: 11pt;"&gt;getArea()&amp;nbsp;== 0.0:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# do something&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;what I ran into was sometimes it worked and sometimes it through an error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;AttributeError: '_passthrough' object has no attribute 'getArea'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so then I decided to just print row[0] and my&amp;nbsp;results have mixed geometries...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;arcpy.arcobjects.mixins._passthrough object at 0x1585D610&amp;gt;&lt;BR /&gt;&amp;lt;geoprocessing describe geometry object object at 0x0297E0C0&amp;gt;&lt;BR /&gt;&amp;lt;arcpy.arcobjects.mixins._passthrough object at 0x1585D610&amp;gt;&lt;BR /&gt;&amp;lt;geoprocessing describe geometry object object at 0x0297E0C0&amp;gt;&lt;BR /&gt;&amp;lt;arcpy.arcobjects.mixins._passthrough object at 0x1585D610&amp;gt;&lt;BR /&gt;&amp;lt;geoprocessing describe geometry object object at 0x0297E0C0&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;what is this all about?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;I have never seen these arcpy.arcobjects.mixins._passthrough objects.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;can someone please explain the difference between these geometry types?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;and was this just introduced in version 10.5?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;Any insight would be helpful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;Kathleen&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 16:48:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645140#M50291</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2017-11-07T16:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: ArcDesktop 10.5 - arcpy.da Geometry Issues</title>
      <link>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645141#M50292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't answer you question, since we haven't upgraded to 10.5.x yet, but I'm wondering if you use topology rules.&lt;/P&gt;&lt;P&gt;You mention SDE and marking exceptions, so my guess is you already do have them setup, but just in case...&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/topologies/an-overview-of-topology-in-arcgis.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/topologies/an-overview-of-topology-in-arcgis.htm"&gt;An overview of topology in ArcGIS—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 17:13:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645141#M50292</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-11-07T17:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: ArcDesktop 10.5 - arcpy.da Geometry Issues</title>
      <link>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645142#M50293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rebecca,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We do have topology on the original layers in SDE. these areas are not being identified in the topology errors. we do have Boundary Must Be Covered By the line work layer. we also have Must Not Overlap and Must Not have Gaps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however, this is not what I meant by marking it as an exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I meant that I was using a conditional statement (if row[0].&lt;SPAN style="font-size: 11pt;"&gt;getArea()&amp;nbsp;== 0.0&lt;/SPAN&gt;) to provide a different error message to prompt the person running the script to check a different location to find these sliver errors where the polygons do not match the line work because they cannot be copied to the final fallout location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that conditional statement was throwing an error on the &lt;SPAN style="font-size: medium;"&gt;arcpy.arcobjects.mixins._passthrough objects.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyways. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 17:27:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645142#M50293</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2017-11-07T17:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: ArcDesktop 10.5 - arcpy.da Geometry Issues</title>
      <link>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645143#M50294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you print the WKT, what do some of these polygons look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 21:53:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645143#M50294</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-11-07T21:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: ArcDesktop 10.5 - arcpy.da Geometry Issues</title>
      <link>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645144#M50295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;rather than 'SHAPE@' just try 'Shape'&amp;nbsp; ie the shape field name (they have their own issues)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 22:07:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645144#M50295</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-07T22:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: ArcDesktop 10.5 - arcpy.da Geometry Issues</title>
      <link>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645145#M50296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with arcpy.da.SearchCursor(t, ["SHAPE@","SHAPE@WKT"]) as cursor:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for row in cursor:&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;print row[0], row[1]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where the area is zero the SHAPE@WKT is None (however they look like slivers when I view them in ArcMap)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise my print statement looks something like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;geoprocessing describe geometry object object at 0x02B31820&amp;gt; MULTIPOLYGON (((1057644.6332177445 1225359.5342195705, .... , 1055905.6406327449 1225768.6685719043)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;arcpy.arcobjects.mixins._passthrough object at 0x02B31810&amp;gt; MULTIPOLYGON (((1005439.4298855774 1219931.8436314017, ... , 1005750.351835914 1217696.1525647417)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: the ... in the examples above elimates numerous XY coordinates. All polygons are legitimate multipolygons with a minimum of 4 vertices.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 22:12:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645145#M50296</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2017-11-07T22:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: ArcDesktop 10.5 - arcpy.da Geometry Issues</title>
      <link>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645146#M50297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really sure what this is providing me.&lt;/P&gt;&lt;P&gt;It looks like a single point tuple. It is close to the first point in the multipolygon, but not exactly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the first two records when I use "Shape"&lt;/P&gt;&lt;P&gt;These are the same two records as the ones shown in the post above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1057423.7430463613, 1223122.6208914442)&lt;/P&gt;&lt;P&gt;(1004102.0138055336, 1210731.6523156033)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 22:21:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645146#M50297</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2017-11-07T22:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcDesktop 10.5 - arcpy.da Geometry Issues</title>
      <link>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645147#M50298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to be clear, I am not looking for a solution to the getArea() function.&lt;/P&gt;&lt;P&gt;I decided to use SHAPE@AREA to get the area and test if it is zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I do not understand why there are these different geometry types within a single feature class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The original layer in SDE only contains &amp;lt;geoprocessing describe geometry object objects&amp;gt;&lt;/P&gt;&lt;P&gt;but after running the union against the rebuild layers I end up with a combination of "geoprocessing describe geometry object objects" and "arcpy.arcobjects.mixins._passthrough objects"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what are these arcpy.arcobjects.mixins._passthrough objects?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 22:30:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645147#M50298</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2017-11-07T22:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: ArcDesktop 10.5 - arcpy.da Geometry Issues</title>
      <link>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645148#M50299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just checking are the ... 's missing the the 'Shape' return? if so, that would be a 2 point polygon (not going to happen) or were the ... 's omitted during transcription. which also leads to the suggestion of counting the length of the returned array to ensure that there are 4 points at least, which wouldn't solve the co-located problem, but it would further help with the messed up geometry objects&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 22:49:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645148#M50299</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-07T22:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: ArcDesktop 10.5 - arcpy.da Geometry Issues</title>
      <link>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645149#M50300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My apologies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "..." was written so I did not have to post a 500 line post because every multipolygon that did not have and area of zero had hundreds of XY vertices. I was just short handing the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry. I should have made that clear in my post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also note that out data is in State Plane US Feet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 00:52:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645149#M50300</guid>
      <dc:creator>Kathleen_Crombez</dc:creator>
      <dc:date>2017-11-08T00:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: ArcDesktop 10.5 - arcpy.da Geometry Issues</title>
      <link>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645150#M50301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you upload a couple of the polygons in a file geodatabase?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 01:48:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcdesktop-10-5-arcpy-da-geometry-issues/m-p/645150#M50301</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-11-08T01:48:56Z</dc:date>
    </item>
  </channel>
</rss>

