<?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: Precision Problem of &amp;quot;Intersect&amp;quot; from ITopologicalOperator in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/precision-problem-of-amp-quot-intersect-amp-quot/m-p/361035#M9512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Technically you should be assigning a spatial reference to your geometries so that the linear units are defined.&amp;nbsp; That spatial reference will also define the precision.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It's better to get a more precision result.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Up to a certain point, yes this is true.&amp;nbsp; However, I'm assuming your linear units are feet or meters since these are quite common.&amp;nbsp; If that's the case then the results are accurate out to about a millionth of a foot or meter.&amp;nbsp; You'd need an electron microscope to see that so does it really matter?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jan 2014 18:15:21 GMT</pubDate>
    <dc:creator>NeilClemmons</dc:creator>
    <dc:date>2014-01-29T18:15:21Z</dc:date>
    <item>
      <title>Precision Problem of &amp;quot;Intersect&amp;quot; from ITopologicalOperator</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/precision-problem-of-amp-quot-intersect-amp-quot/m-p/361034#M9511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tested "Intersect" from ITopologicalOperator, and found out that the result was not precision.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My test is very simple. I created two polylines, each of which had two vertices:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the first polyline: (0,0) and (1,1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the second polyline: (0,1) and (1,0) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I used the "intersect" function of ITopologicalOperator, I got an intersection, whose coordinates were 0.50000190734863281, 0.50000190734863281, which are not precision.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody know why? It's better to get a more precision result. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below are my codes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; object Missing = Type.Missing;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPointCollection pCol1 = new PolylineClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPoint ipt1 = new PointClass(); ipt1.PutCoords(0, 0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPoint ipt2 = new PointClass(); ipt2.PutCoords(1, 1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pCol1.AddPoint(ipt1, ref Missing, ref Missing);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pCol1.AddPoint(ipt2, ref Missing, ref Missing);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPolyline ipl1=pCol1 as IPolyline ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPointCollection pCol2 = new PolylineClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPoint ipt3 = new PointClass(); ipt3.PutCoords(0, 1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPoint ipt4 = new PointClass(); ipt4.PutCoords(1, 0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pCol2.AddPoint(ipt3, ref Missing, ref Missing);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pCol2.AddPoint(ipt4, ref Missing, ref Missing);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPolyline ipl2=pCol2 as IPolyline ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ITopologicalOperator pTop = ipl1 as ITopologicalOperator;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IGeometry pGeoIntersect = pTop.Intersect(ipl2, esriGeometryDimension.esriGeometry0Dimension);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPointCollection pColIntersect = pGeoIntersect as IPointCollection;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int j = 0; j &amp;lt; pColIntersect.PointCount; j++)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; double dblx = pColIntersect.get_Point(j).X;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; double dbly = pColIntersect.get_Point(j).Y;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 15:16:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/precision-problem-of-amp-quot-intersect-amp-quot/m-p/361034#M9511</guid>
      <dc:creator>DongliangPeng</dc:creator>
      <dc:date>2014-01-29T15:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Precision Problem of "Intersect" from ITopologicalOperator</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/precision-problem-of-amp-quot-intersect-amp-quot/m-p/361035#M9512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Technically you should be assigning a spatial reference to your geometries so that the linear units are defined.&amp;nbsp; That spatial reference will also define the precision.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It's better to get a more precision result.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Up to a certain point, yes this is true.&amp;nbsp; However, I'm assuming your linear units are feet or meters since these are quite common.&amp;nbsp; If that's the case then the results are accurate out to about a millionth of a foot or meter.&amp;nbsp; You'd need an electron microscope to see that so does it really matter?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 18:15:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/precision-problem-of-amp-quot-intersect-amp-quot/m-p/361035#M9512</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2014-01-29T18:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Precision Problem of "Intersect" from ITopologicalOperator</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/precision-problem-of-amp-quot-intersect-amp-quot/m-p/361036#M9513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can get desktop scanning electron microscopes now. Although I guess one would have to smash the monitor up and place bits of it into the scanner and then you'll be limited to the pixel resolution of the monitor...so.... your electron microscope idea won't work &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 12:10:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/precision-problem-of-amp-quot-intersect-amp-quot/m-p/361036#M9513</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2014-01-30T12:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Precision Problem of "Intersect" from ITopologicalOperator</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/precision-problem-of-amp-quot-intersect-amp-quot/m-p/361037#M9514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Technically you should be assigning a spatial reference to your geometries so that the linear units are defined.&amp;nbsp; That spatial reference will also define the precision.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Up to a certain point, yes this is true.&amp;nbsp; However, I'm assuming your linear units are feet or meters since these are quite common.&amp;nbsp; If that's the case then the results are accurate out to about a millionth of a foot or meter.&amp;nbsp; You'd need an electron microscope to see that so does it really matter?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your answer is reasonable. For the vision purpose, the current precision is enough. However, I want to save the coordinates of the intersections as data, and later use the data for some other applications. In this case, some problems may occur. Therefore, it's better to get extrem precise intersections to avoid potential problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anyway to see the codes of the "Intersect" function or how the "Intersect" function is implemented?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 17:38:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/precision-problem-of-amp-quot-intersect-amp-quot/m-p/361037#M9514</guid>
      <dc:creator>DongliangPeng</dc:creator>
      <dc:date>2014-01-30T17:38:24Z</dc:date>
    </item>
  </channel>
</rss>

