<?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: Find Line Segment Perpendicular to Point in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/find-line-segment-perpendicular-to-point/m-p/236963#M6127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you merge (union) all the segments inside the buffer into a single polyline?&amp;nbsp; You could use the polyline's IProximityOperator to querynearest on the point and return a point.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2012 19:00:45 GMT</pubDate>
    <dc:creator>AlexanderGray</dc:creator>
    <dc:date>2012-04-20T19:00:45Z</dc:date>
    <item>
      <title>Find Line Segment Perpendicular to Point</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/find-line-segment-perpendicular-to-point/m-p/236962#M6126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to measure distances between points on a river network.&amp;nbsp; In order to get an accurate distance measure, there has to be a vertex on the river line where each of the points are located.&amp;nbsp; Some of my points can be as far as 10 or so metres away from the river, but I have set an arbitrary "snapping" threshold to 6 metres.&amp;nbsp; I use ITopologicalOperator.Buffer to create a 6 metre buffer around the points and then create an ISpatialFilter to catch all of the river segments that intersect the buffer.&amp;nbsp; In the image I've attached, the blue line represents the river, flowing south-east, the big red dot represents the point I am trying to "snap" and the little red dot represents the point on the stream I want to snap it to, and thus, create a vertex at.&amp;nbsp; The line is split into segments.&amp;nbsp; If I create a cursor to loop through the intersecting segments (of which there are 3 in the picture), the bold segment will be the first one selected.&amp;nbsp; I need a way to tell it that it is in fact the second segment that I need because this is closest to the point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe that in order to use IProximityOperator.ReturnNearestPoint I already need to have a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;feature &lt;/SPAN&gt;&lt;SPAN&gt;(segment) and not a feature class (river) as the input.&amp;nbsp; Any suggestion on how to identify the correct line segment?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 18:49:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/find-line-segment-perpendicular-to-point/m-p/236962#M6126</guid>
      <dc:creator>LornaMurison</dc:creator>
      <dc:date>2012-04-20T18:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Find Line Segment Perpendicular to Point</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/find-line-segment-perpendicular-to-point/m-p/236963#M6127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you merge (union) all the segments inside the buffer into a single polyline?&amp;nbsp; You could use the polyline's IProximityOperator to querynearest on the point and return a point.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 19:00:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/find-line-segment-perpendicular-to-point/m-p/236963#M6127</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2012-04-20T19:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Find Line Segment Perpendicular to Point</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/find-line-segment-perpendicular-to-point/m-p/236964#M6128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are still looking for a solution, take a look at this script; it may be what you are looking for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/gallery/file/arcobjects-net-api/details?entryID=08EE7306-1422-2418-34D2-34CE0061CAE6"&gt;http://resources.arcgis.com/gallery/file/arcobjects-net-api/details?entryID=08EE7306-1422-2418-34D2-34CE0061CAE6&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 16:00:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/find-line-segment-perpendicular-to-point/m-p/236964#M6128</guid>
      <dc:creator>KaushikMysorekar</dc:creator>
      <dc:date>2012-05-01T16:00:16Z</dc:date>
    </item>
  </channel>
</rss>

