4

Is there any way to make intersection of two lines tool with extending lines option, so the result would be a point. the hardest part is when the lines have to be extended to intersect.

the tool will intersect int the cases described in the picture below.

this operation is a common CAD operation but i haven't found a tool or a snippet to do it in Arcobjects or Arcgis Engine 10.1.

Any help please.

enter image description here

1
  • 1
    An illustration of what you want would be helpful.
    – R.K.
    Apr 9, 2013 at 10:01

5 Answers 5

2

Have a look at the ConstructIntersection method on the IConstructMultipoint interface. It constructs the points of intersection between two segments with options for extending the segments in order to locate additional points.

1

Have you looked at the Extend Line tool?

http://resources.arcgis.com/en/help/main/10.1/index.html#//001v00000004000000

This tool extends line segments to the first intersecting feature within a specified distance. If no intersecting feature is within the specified distance, the line segment will not be extended. Tool use is intended for quality control tasks such as cleaning up topology errors in features that were digitized without having set proper snapping environments.

Without a specified distance, lines will extend until an intersecting feature is found. A combination of that with Intersect seems like a possibility, especially because it allows extending to extensions as well as existing segments (both of which you illustrated above)

1
  • the extend tool is very good, but according to to my experience with it, sometimes it do not extend for no reason, sometime it is extended to the opposite direction of the feature.
    – geogeek
    Apr 9, 2013 at 14:13
1

In Autocad Map 3d these are called drawing cleanup tools.
cleanup
esri will do these types of actions on topology. You would need to create geodatabase topology of your feature class/classes and then show the topology toolbar. Then you can display the topology errors, and see any violations of the "must not have dangles" rule
This topic applies to ArcGIS for Desktop Standard and ArcGIS for Desktop Advanced only.
If you don't like this route.
I would import the data into Map3d run the clean tools and export back to esri.

1
  • Excellent use of topology rules
    – geogeek
    Apr 9, 2013 at 14:32
1

You want to create the "intersecting point" in an edit session manually (by clicking with your mouse - not as a batch task for all features)?

Then use the Intersection tool from the Feature Construction toolbar:

enter image description here

1
  • thanks, but i forgot to tell that i want to program the intersection.
    – geogeek
    Apr 9, 2013 at 14:48
0

the IRay.QueryFirstIntersection Method seems to be the solution. the first line could be the Ray and second line could the argument to intersect.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.