<?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: Finding closed polylines in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/finding-closed-polylines/m-p/93931#M3229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How would I implement this into a field calculator expression? I'm a beginner with python but I could use some help. Basically I'm trying to implement this but rather than print the OID I want to populate a 1 for closed polylines and 0 for open. Thanks.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Dec 2017 20:13:26 GMT</pubDate>
    <dc:creator>deleted-user-AyQ-Iok8btBJ</dc:creator>
    <dc:date>2017-12-08T20:13:26Z</dc:date>
    <item>
      <title>Finding closed polylines</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/finding-closed-polylines/m-p/93925#M3223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone know how to find closed polylines using only geoprocessing tools (without using Data Reviewer or ArcObjects)?&amp;nbsp; It seems like I should be able to do this in Python without much hassle, but I can't find a way.&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 17:39:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/finding-closed-polylines/m-p/93925#M3223</guid>
      <dc:creator>RichardPascoe</dc:creator>
      <dc:date>2012-06-18T17:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Finding closed polylines</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/finding-closed-polylines/m-p/93926#M3224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Richard,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try making polygons from them.&amp;nbsp; If the polylines form closed loops by themselves or by intersection with others they will allow creation of a polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Easy to do in ArcView, no Python etc required.&amp;nbsp; Here's the simplest case; just ignore step 1.&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/6786-polyline-to-polygon"&gt;http://forums.arcgis.com/threads/6786-polyline-to-polygon&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hardolph&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 18:05:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/finding-closed-polylines/m-p/93926#M3224</guid>
      <dc:creator>HardolphWasteneys</dc:creator>
      <dc:date>2012-06-18T18:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Finding closed polylines</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/finding-closed-polylines/m-p/93927#M3225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;failing the simple way, above, you would have to get the vertex array from the geometry object for each line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;itterate through the array (which for a line or polygon is composed of point objects), and compare the first and last points. It they are identical, the line is closed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 18:51:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/finding-closed-polylines/m-p/93927#M3225</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2012-06-18T18:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Finding closed polylines</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/finding-closed-polylines/m-p/93928#M3226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Richard,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's an example on how to do this using python:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;fc = "Boundary"

rows = arcpy.SearchCursor(fc)
for row in rows:
&amp;nbsp;&amp;nbsp;&amp;nbsp; geom = row.shape
&amp;nbsp;&amp;nbsp;&amp;nbsp; if geom.firstPoint.X == geom.lastPoint.X:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print row.OBJECTID

del row, rows&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It will compare the X coordinate of the first and last point within each line.&amp;nbsp; If they are the same the OBJECTID of the line is printed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:35:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/finding-closed-polylines/m-p/93928#M3226</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-10T23:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Finding closed polylines</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/finding-closed-polylines/m-p/93929#M3227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jake and Mark - This is a great idea!&amp;nbsp; A polyline can be closed at two points that aren't the first and last, but this gives me a good starting point.&amp;nbsp; I will post the code once I am finished.&amp;nbsp; I imagine I will make a set of the coordinates for each feature and see if there are any that appear twice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hardolph - This will be a good alternative if the above doesn't work well.&amp;nbsp; Since I am automating, I want to avoid creating additional features, particularly for large datasets.&amp;nbsp; However, it is a simple process.&amp;nbsp; I would just need to create the polygons, join them back to the original features, select by attribute, and delete features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks to all of you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 12:26:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/finding-closed-polylines/m-p/93929#M3227</guid>
      <dc:creator>RichardPascoe</dc:creator>
      <dc:date>2012-06-19T12:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Finding closed polylines</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/finding-closed-polylines/m-p/93930#M3228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you have ArcInfo license, you can try the two steps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Run Feature To Polygon tool to get polygons from closed lines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Run Select Layer By Location to select polylines by the polygons, with the INTERSECT relationship option (or other suitable options). The resulting selection should contain closed polylines.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 20:35:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/finding-closed-polylines/m-p/93930#M3228</guid>
      <dc:creator>DanLee</dc:creator>
      <dc:date>2012-06-27T20:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Finding closed polylines</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/finding-closed-polylines/m-p/93931#M3229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How would I implement this into a field calculator expression? I'm a beginner with python but I could use some help. Basically I'm trying to implement this but rather than print the OID I want to populate a 1 for closed polylines and 0 for open. Thanks.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 20:13:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/finding-closed-polylines/m-p/93931#M3229</guid>
      <dc:creator>deleted-user-AyQ-Iok8btBJ</dc:creator>
      <dc:date>2017-12-08T20:13:26Z</dc:date>
    </item>
  </channel>
</rss>

