<?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 FromPoint does not intersect it's own IPolyline5 in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/frompoint-does-not-intersect-it-s-own-ipolyline5/m-p/215344#M5568</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a Polyline and a Point FeatureClass. I create a point feature on the Point layer for both the FromPoint and the ToPoint of the IPolyline5 similar to below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IFeature pointFeature1 = pointFeatureClass.CreateFeature ();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pointFeature1.Shape = polyline.FromPoint;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IFeature pointFeature2 = pointFeatureClass.CreateFeature ();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pointFeature2.Shape = polyline.ToPoint;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Later, I then run both the from point and to point geometries through a method like the below to find all the intersecting polyline features from the polyline feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ISpatialFilter filter = new SpatialFilter ();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;filter.Geometry = pointGeometry;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;filter.SpatialRel = esriSpatialRelEnum.esriSpatialRelIntersects;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IFeatureCursor cursor = lineFeatureClass.FeatureClass.Search (filter, false);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the very least, the intersect filter should find the polyline off which I got the 2 points. The strange thing is, it works for the FromPoint, but not with the ToPoint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both feature classes are using the same projection and Geographic Coordinate System and Projected Coordinate System.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope I am doing something stupid, but just can't figure out what.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using ArcEditer 9.3.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SO: &lt;/SPAN&gt;&lt;A href="http://stackoverflow.com/questions/9175096/frompoint-does-not-intersect-its-own-ipolyline5"&gt;http://stackoverflow.com/questions/9175096/frompoint-does-not-intersect-its-own-ipolyline5&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Feb 2012 10:00:39 GMT</pubDate>
    <dc:creator>SystemDevelopment_ZA</dc:creator>
    <dc:date>2012-02-07T10:00:39Z</dc:date>
    <item>
      <title>FromPoint does not intersect it's own IPolyline5</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/frompoint-does-not-intersect-it-s-own-ipolyline5/m-p/215344#M5568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a Polyline and a Point FeatureClass. I create a point feature on the Point layer for both the FromPoint and the ToPoint of the IPolyline5 similar to below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IFeature pointFeature1 = pointFeatureClass.CreateFeature ();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pointFeature1.Shape = polyline.FromPoint;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IFeature pointFeature2 = pointFeatureClass.CreateFeature ();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pointFeature2.Shape = polyline.ToPoint;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Later, I then run both the from point and to point geometries through a method like the below to find all the intersecting polyline features from the polyline feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ISpatialFilter filter = new SpatialFilter ();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;filter.Geometry = pointGeometry;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;filter.SpatialRel = esriSpatialRelEnum.esriSpatialRelIntersects;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IFeatureCursor cursor = lineFeatureClass.FeatureClass.Search (filter, false);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the very least, the intersect filter should find the polyline off which I got the 2 points. The strange thing is, it works for the FromPoint, but not with the ToPoint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both feature classes are using the same projection and Geographic Coordinate System and Projected Coordinate System.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope I am doing something stupid, but just can't figure out what.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using ArcEditer 9.3.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SO: &lt;/SPAN&gt;&lt;A href="http://stackoverflow.com/questions/9175096/frompoint-does-not-intersect-its-own-ipolyline5"&gt;http://stackoverflow.com/questions/9175096/frompoint-does-not-intersect-its-own-ipolyline5&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 10:00:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/frompoint-does-not-intersect-it-s-own-ipolyline5/m-p/215344#M5568</guid>
      <dc:creator>SystemDevelopment_ZA</dc:creator>
      <dc:date>2012-02-07T10:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: FromPoint does not intersect it's own IPolyline5</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/frompoint-does-not-intersect-it-s-own-ipolyline5/m-p/215345#M5569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you please try esriSpatialRelEnum.esriSpatialRelTouches instead of using esriSpatialRelEnum.esriSpatialRelIntersects and see what happen?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 16:34:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/frompoint-does-not-intersect-it-s-own-ipolyline5/m-p/215345#M5569</guid>
      <dc:creator>WeifengHe</dc:creator>
      <dc:date>2012-02-07T16:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: FromPoint does not intersect it's own IPolyline5</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/frompoint-does-not-intersect-it-s-own-ipolyline5/m-p/215346#M5570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi. Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using esriSpatialRelTouches got more positive results, however, there were still a lot of instances where it fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got it to work consistently with esriSpatialRelIntersects by just buffering the point feature by 0.001.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 04:35:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/frompoint-does-not-intersect-it-s-own-ipolyline5/m-p/215346#M5570</guid>
      <dc:creator>SystemDevelopment_ZA</dc:creator>
      <dc:date>2012-02-08T04:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: FromPoint does not intersect it's own IPolyline5</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/frompoint-does-not-intersect-it-s-own-ipolyline5/m-p/215347#M5571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just one question, the polylines you used to create those fromPoint and ToPoint, are they from existing database, or you just created on the fly?&amp;nbsp; are the tolerance for the two spatial reference the same?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 14:56:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/frompoint-does-not-intersect-it-s-own-ipolyline5/m-p/215347#M5571</guid>
      <dc:creator>WeifengHe</dc:creator>
      <dc:date>2012-02-08T14:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: FromPoint does not intersect it's own IPolyline5</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/frompoint-does-not-intersect-it-s-own-ipolyline5/m-p/215348#M5572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, they are exactly identical.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 10:13:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/frompoint-does-not-intersect-it-s-own-ipolyline5/m-p/215348#M5572</guid>
      <dc:creator>SystemDevelopment_ZA</dc:creator>
      <dc:date>2012-02-10T10:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: FromPoint does not intersect it's own IPolyline5</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/frompoint-does-not-intersect-it-s-own-ipolyline5/m-p/215349#M5573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible that you share the data?&amp;nbsp; You can identify those not work as expected.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 20:56:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/frompoint-does-not-intersect-it-s-own-ipolyline5/m-p/215349#M5573</guid>
      <dc:creator>WeifengHe</dc:creator>
      <dc:date>2012-02-10T20:56:44Z</dc:date>
    </item>
  </channel>
</rss>

