<?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: ITopologicalOperator.Cut() fails at some polylines (randomly?) in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/itopologicaloperator-cut-fails-at-some-polylines/m-p/120645#M3161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;try ITopologicalOperator.Simplify()&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/esrigeometry/ITopologicalOperator2.htm"&gt;http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/esrigeometry/ITopologicalOperator2.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But be aware that it will modify your Polyline making geometry topologicaly correct, see the pictures from desktop SDK is picture that describes&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Aug 2011 07:43:26 GMT</pubDate>
    <dc:creator>DubravkoAntonic</dc:creator>
    <dc:date>2011-08-24T07:43:26Z</dc:date>
    <item>
      <title>ITopologicalOperator.Cut() fails at some polylines (randomly?)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/itopologicaloperator-cut-fails-at-some-polylines/m-p/120644#M3160</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 going to cut a Line (a route, Polyline) by a set of ContourLines stores in a PolylineFeatureClass.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For every left and right, which the cut method creates, I recursively cut again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A cut is done for every contourFeature in the featureClass (nexted through a loop) until a cut was successfull. After I got left and right, they are also simplified.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wit a small set of data, it works fine. But when using a bigger dataset the cut method throws an exception that there's missing an object refrence (think sth. is null). I debugged it and none of my objects are null (left and right are out params). And it fails every at the same position, on contour #148.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I delete this single contourLine the next fail is on contour #199. Then came #204, #205, #206, #258, #328 (of overall 340)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I took just some selections of contourLines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are some which WORKED:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) #148, #199, #204, #205, #206, #258, #328&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2)#123 - #150 (#148 included)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) any other selection like (2) when start position is higher than #123&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3)#1 - #150 (#148 excluded)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) #1 - #340 (all bad lines excluded)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are some which NOT WORKED:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) #122-#150 (#148 included)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) like (1) just with lower startposition&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) #1 - #340 (one or many of the bad lines included)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;some of the bad lines are closed, some not (isCloses means its a ring, not a path)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;some of the bad lines crosses the route, some not (some will cross more than once)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I dont know what to check where to look or what else to found out &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- what is the problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- how can I solve it&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- or what alternative do I have?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a little discussion or the solution^^ would be very nice&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 06:21:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/itopologicaloperator-cut-fails-at-some-polylines/m-p/120644#M3160</guid>
      <dc:creator>SebastianKrings</dc:creator>
      <dc:date>2011-08-24T06:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: ITopologicalOperator.Cut() fails at some polylines (randomly?)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/itopologicaloperator-cut-fails-at-some-polylines/m-p/120645#M3161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;try ITopologicalOperator.Simplify()&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/esrigeometry/ITopologicalOperator2.htm"&gt;http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/esrigeometry/ITopologicalOperator2.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But be aware that it will modify your Polyline making geometry topologicaly correct, see the pictures from desktop SDK is picture that describes&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 07:43:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/itopologicaloperator-cut-fails-at-some-polylines/m-p/120645#M3161</guid>
      <dc:creator>DubravkoAntonic</dc:creator>
      <dc:date>2011-08-24T07:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: ITopologicalOperator.Cut() fails at some polylines (randomly?)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/itopologicaloperator-cut-fails-at-some-polylines/m-p/120646#M3162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yeah I still do so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;After I got left and right, they are also simplified.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the wy it modifies paths is ok, becaus I have a straight route.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it will gain problems when I have a route which uses a street twice, wont it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I have a PolylineClass with a single polyline feature to be cut.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Let the route go from A to D. in the mid directly from A top D lies C. From C a way goes away to B.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The route goes now from A to C to B, back to C and then further to D. The way from C to B is used twice (vice versa). What will simplify do with this? Becaus I have just one feature.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 07:57:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/itopologicaloperator-cut-fails-at-some-polylines/m-p/120646#M3162</guid>
      <dc:creator>SebastianKrings</dc:creator>
      <dc:date>2011-08-24T07:57:04Z</dc:date>
    </item>
  </channel>
</rss>

