<?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: Construct distinct polygons from polylines in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/construct-distinct-polygons-from-polylines/m-p/672823#M18024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you explored the geoprocessing tool feature to polygon? If that does what you want then you can call it using the IGeoProcessor interface.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Dec 2019 10:12:30 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2019-12-23T10:12:30Z</dc:date>
    <item>
      <title>Construct distinct polygons from polylines</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/construct-distinct-polygons-from-polylines/m-p/672822#M18023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a number of polylinesthat are split at crossing-points so they do not overlap. Now I want to create&amp;nbsp;distinct polygons from those polylines, where none of those polygons overlaps another one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can´t use the&amp;nbsp;Polyline2Polygon.features here, because we simply don´t have any features but just geometries.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So let´s define this structure as network having edges and nodes. My first idea was to remove all the polylines that are outside a common polygon. Or in other words delete the polylines that simply lead to nowhere.&amp;nbsp;This way I get a polygon that contains most of the edges (that´s the red outlined polygon in the image beyond). Now I can use &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;ITopologicalOperator4.Cut2&lt;/SPAN&gt; on this polygon in order to get all the&amp;nbsp;areas within that polygon.&lt;/P&gt;&lt;P&gt;Just an asside: &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Cut2&lt;/SPAN&gt; can´t handle those dead-edges mentioned before and will throw an exception. That´s why I want to delete them before.&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/476189_edges.png" /&gt;&lt;/P&gt;&lt;P&gt;However I have no idea how to define this common polygon.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2019 15:28:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/construct-distinct-polygons-from-polylines/m-p/672822#M18023</guid>
      <dc:creator>CarstenSchumann</dc:creator>
      <dc:date>2019-12-13T15:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Construct distinct polygons from polylines</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/construct-distinct-polygons-from-polylines/m-p/672823#M18024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you explored the geoprocessing tool feature to polygon? If that does what you want then you can call it using the IGeoProcessor interface.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2019 10:12:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/construct-distinct-polygons-from-polylines/m-p/672823#M18024</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2019-12-23T10:12:30Z</dc:date>
    </item>
  </channel>
</rss>

