<?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: Correct syntax for using arcpy.Geometry.touches or .intersects methods in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331468#M11630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you sure you're looking for touches and not within or contains or not disjoint? &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_cpp/componenthelp/index.html#/Touches_Method/000w00000346000000/"&gt;Touches only returns true if the geometry lies on the edge of the other geometry&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Nov 2010 14:16:32 GMT</pubDate>
    <dc:creator>JasonScheirer</dc:creator>
    <dc:date>2010-11-30T14:16:32Z</dc:date>
    <item>
      <title>Correct syntax for using arcpy.Geometry.touches or .intersects methods</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331457#M11619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Am trying to test new polygon created in script for overlap against an existing polygon feature class that may contain one or more multippart polygons.&amp;nbsp; Can seem to get the right syntax.&amp;nbsp; Keep getting failure on second geometry parameter.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# First create geometry object to receive existing polygon features&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;inML = arcpy.geometry()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Copy in features from fc to geometry object&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CopyFeatures_management(infc, inML)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Have polygon footprint in an array, aFoot, create geometry object&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;test_poly = arcpy.Geometry("polygon", aFoot)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# test for overlap&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;intersect = inML.touches(test_poly)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;intersect = inML.intersects(test_poly)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both fail with a second geometry error....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 13:57:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331457#M11619</guid>
      <dc:creator>StevenLambert</dc:creator>
      <dc:date>2010-08-03T13:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for using arcpy.Geometry.touches or .intersects methods</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331458#M11620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Steven,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First, the geometry object you have specified as output doesn't get populated with the geometry as your code is expecting.&amp;nbsp; That geometry object is just a special way of signifying you want geometry as output; the actual output is really on the left-side.&amp;nbsp; Something like below would work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;gL = arcpy.CopyFeatures_management(infc, arcpy.Geometry())&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case, the variable &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;gL&lt;/SPAN&gt;&lt;SPAN&gt; is a list of geometries.&amp;nbsp; If you have just one feature you could then use a relational operator like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;intersect = gL[0].touches(test_poly)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One small aside.&amp;nbsp; When creating your Polygon geometry, you could simplify you code like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;test_poly = arcpy.Polygon(aFoot)&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;test_poly = arcpy.Geometry("polygon", aFoot)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 16:36:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331458#M11620</guid>
      <dc:creator>DavidWynne</dc:creator>
      <dc:date>2010-08-03T16:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for using arcpy.Geometry.touches or .intersects methods</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331459#M11621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks. David.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One additional question,&amp;nbsp; for multipart geometries (e.g. geometry.isMultipart = True) , do I have to manually cycle through the individual parts of each geometry in the gL to test individual elements for intersection or does the geometry.touches&amp;nbsp; automatically test all parts each geometry in the gL?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 17:47:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331459#M11621</guid>
      <dc:creator>StevenLambert</dc:creator>
      <dc:date>2010-08-03T17:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for using arcpy.Geometry.touches or .intersects methods</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331460#M11622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;One additional question,&amp;nbsp; for multipart geometries (e.g. geometry.isMultipart = True) , do I have to manually cycle through the individual parts of each geometry in the gL to test individual elements for intersection or does the geometry.touches&amp;nbsp; automatically test all parts each geometry in the gL?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;No, you won't have to cycle through the parts if working with a multipart geometry.&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;touches&lt;/SPAN&gt;&lt;SPAN&gt; will work against the entire feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 17:59:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331460#M11622</guid>
      <dc:creator>DavidWynne</dc:creator>
      <dc:date>2010-08-03T17:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for using arcpy.Geometry.touches or .intersects methods</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331461#M11623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's great.&amp;nbsp; I appreciate the help.&amp;nbsp; Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 19:08:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331461#M11623</guid>
      <dc:creator>StevenLambert</dc:creator>
      <dc:date>2010-08-03T19:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for using arcpy.Geometry.touches or .intersects methods</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331462#M11624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thats awesome. If you have two two features, each in a separate feature class, aFeature and bFeature, could this method of checking polygon intersection be used to see if aFeature intersects aFeature and if so write an attribute of bFeature to a field in aFeature?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 19:28:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331462#M11624</guid>
      <dc:creator>ChrisMathers</dc:creator>
      <dc:date>2010-08-03T19:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for using arcpy.Geometry.touches or .intersects methods</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331463#M11625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thats awesome. If you have two two features, each in a separate feature class, aFeature and bFeature, could this method of checking polygon intersection be used to see if aFeature intersects aFeature and if so write an attribute of bFeature to a field in aFeature?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi clm42, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, and no.&amp;nbsp; You could definitely use this general approach, but geometry objects don't hold attribute information.&amp;nbsp; So instead of using the approach of getting geometry as output from geoprocessing tools (as most of the code in this thread shows), you'd have to open some cursors.&amp;nbsp; The cursor will then give you both the geometry and attribute information for a feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 22:11:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331463#M11625</guid>
      <dc:creator>DavidWynne</dc:creator>
      <dc:date>2010-08-03T22:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for using arcpy.Geometry.touches or .intersects methods</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331464#M11626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Was not getting convincing and consisten results, so I tried tests in code block.&amp;nbsp; I think that the "crosses" and "touches" are either wrong or the definitions in the documentation are inconsistent.&amp;nbsp; What do you think?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
#
# test of the various geometry or poly interaction methods
#
import arcpy
import sys

# define coordinate lists

clist1 = [[0,0], [0,10],[10,10],[10,0],[0,0]]
clist2 = [[10,0],[10,10],[20,10],[20,0],[10,0]]

# define geometry objects
#
#&amp;nbsp;&amp;nbsp; (0, 10) -------(10, 10)---------(20, 10)
#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; P1&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; P2&amp;nbsp; |
#&amp;nbsp;&amp;nbsp; (0,&amp;nbsp; 0) -------(10,&amp;nbsp; 0)---------(20,&amp;nbsp; 0)
#
# Intersection along the line (10,0) to (10,10)

aPt = arcpy.Point()
anArray = arcpy.Array()

# Make first polygon

for coordpair in clist1:
&amp;nbsp;&amp;nbsp;&amp;nbsp; aPt.X, aPt.Y = coordpair[0], coordpair[1]
&amp;nbsp;&amp;nbsp;&amp;nbsp; anArray.add(aPt)

polygon1 = arcpy.Polygon(anArray)

# Clear array and push in second coordinate list

anArray.removeAll()

# Make second polygon

for coordpair in clist2:
&amp;nbsp;&amp;nbsp;&amp;nbsp; aPt.X, aPt.Y = coordpair[0], coordpair[1]
&amp;nbsp;&amp;nbsp;&amp;nbsp; anArray.add(aPt)

polygon2 = arcpy.Polygon(anArray)

# Method Explanation
#
#&amp;nbsp;&amp;nbsp; contains (second_geometry) Indicates if this geometry contains the other geometry. 
#&amp;nbsp;&amp;nbsp; crosses (second_geometry) Indicates if the two geometries intersect in a geometry of lesser dimension. 
#&amp;nbsp;&amp;nbsp; disjoint (second_geometry) Indicates if the two geometries share no points in common.&amp;nbsp; 
#&amp;nbsp;&amp;nbsp; equals (second_geometry) Indicates if the two geometries are of the same type and define the same set of points in the plane. 
#&amp;nbsp;&amp;nbsp; overlaps (second_geometry) Indicates if the intersection of the two geometries has the same dimension as one of the input geometries. 
#&amp;nbsp;&amp;nbsp; touches (second_geometry) Indicates if the boundaries of the geometries intersect. 
#&amp;nbsp;&amp;nbsp; within (second_geometry) Indicates if this geometry is contained within another geometry. 

# Based on coordinate lists and definitions

# Polygon1 contains Polygon2 = False
# Polygon1 crosses Polygon2 = True Two two-dimensional polygons share a one-dimensional boundary, the line from (10,0) to (10,10)
# Polygon1 disjoint Polygon2 = False
# Polygon1 equals Polygon2 = False
# Polygon1 overlaps Polygon2 = False (Intersection is one-dimensional line (10,0) to (10,10)
# Polygon1 touches Polygon2 = True (Intersect along line (10,0) to (10,10)
# Polygon1 within Polygon2 = False

# Evaluate various polygon methods

test1 = polygon1.contains(polygon2)
test2 = polygon1.crosses(polygon2)
test3 = polygon1.disjoint(polygon2)
test4 = polygon1.equals(polygon2)
test5 = polygon1.overlaps(polygon2)
test6 = polygon1.touches(polygon2)
test7 = polygon1.within(polygon2)

# Evaluate obverse

test8 = polygon2.contains(polygon1)
test9 = polygon2.crosses(polygon1)
test10 = polygon2.disjoint(polygon1)
test11 = polygon2.equals(polygon1)
test12 = polygon2.overlaps(polygon1)
test13 = polygon2.touches(polygon1)
test14 = polygon2.within(polygon1)

print 'Test1&amp;nbsp; = ', test1
print 'Test2&amp;nbsp; = ', test2
print 'Test3&amp;nbsp; = ', test3
print 'Test4&amp;nbsp; = ', test4
print 'Test5&amp;nbsp; = ', test5
print 'Test6&amp;nbsp; = ', test6
print 'Test7&amp;nbsp; = ', test7

print ' '

print 'Test8&amp;nbsp; = ', test8
print 'Test9&amp;nbsp; = ', test9
print 'Test10 = ', test10
print 'Test11 = ', test11
print 'Test12 = ', test12
print 'Test13 = ', test12
print 'Test14 = ', test12


print ' '
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:41:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331464#M11626</guid>
      <dc:creator>StevenLambert</dc:creator>
      <dc:date>2021-12-11T15:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for using arcpy.Geometry.touches or .intersects methods</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331465#M11627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I retract concern about crosses test.&amp;nbsp; Was focusing on planar polygons.&amp;nbsp; Only way two polgons can cross at a lesser dimesionality is to share only a point e.g. polygons (and lines!) are 2D points are 1D...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still not sure about touches test though...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 20:46:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331465#M11627</guid>
      <dc:creator>StevenLambert</dc:creator>
      <dc:date>2010-08-04T20:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for using arcpy.Geometry.touches or .intersects methods</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331466#M11628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would test by creating 2 known shapes and see if the test passes or fails.&amp;nbsp; Recently&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/9763-Errors-in-arcpy-s-Polygon-class"&gt;http://forums.arcgis.com/threads/9763-Errors-in-arcpy-s-Polygon-class&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;several issues have been raised about the arcpy polygon and polyline class accuracies which affect the extent of features as well as other parameters.&amp;nbsp; To test create two adjacent shapes see if they intersect, offset them by a finite epsilon amount and see if the test fails.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 21:40:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331466#M11628</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2010-08-05T21:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for using arcpy.Geometry.touches or .intersects methods</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331467#M11629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am also trying to do something similar: have a user specify either a point or a polygon and return True or False depending on weather or not it is within a study area polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To test i digitized a simple single part single feature polygon, as well as a single point directly in the center of the polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately this returns false - when i know for certain the point is within the polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

pointShp = "c:/temp/temp.shp"
polyShp = "c:/temp/temppoly.shp"

gL = arcpy.CopyFeatures_management(pointShp, arcpy.Geometry())

array = arcpy.Array()
rows = gp.SearchCursor(polyShp)
row = rows.Next()
while row:
&amp;nbsp;&amp;nbsp;&amp;nbsp; feat = row.shape
&amp;nbsp;&amp;nbsp;&amp;nbsp; pnt = feat.getPart()
&amp;nbsp;&amp;nbsp;&amp;nbsp; array.add(pnt)
&amp;nbsp;&amp;nbsp;&amp;nbsp; row = rows.Next()
array.add(array[0])

Poly = arcpy.Polygon(array)

intersect = gL[0].touches(Poly)

print intersect
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:41:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331467#M11629</guid>
      <dc:creator>AustinMulder</dc:creator>
      <dc:date>2021-12-11T15:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for using arcpy.Geometry.touches or .intersects methods</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331468#M11630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you sure you're looking for touches and not within or contains or not disjoint? &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_cpp/componenthelp/index.html#/Touches_Method/000w00000346000000/"&gt;Touches only returns true if the geometry lies on the edge of the other geometry&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 14:16:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/correct-syntax-for-using-arcpy-geometry-touches-or/m-p/331468#M11630</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2010-11-30T14:16:32Z</dc:date>
    </item>
  </channel>
</rss>

