Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
An illustration of what you want would be helpful. – R.K. Apr 9 '13 at 10:01
up vote 2 down vote accepted

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.

share|improve this answer

Have you looked at the Extend Line tool?

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)

share|improve this answer
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 '13 at 14:13

In Autocad Map 3d these are called drawing cleanup tools.
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.

share|improve this answer
Excellent use of topology rules – geogeek Apr 9 '13 at 14:32

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

share|improve this answer
thanks, but i forgot to tell that i want to program the intersection. – geogeek Apr 9 '13 at 14:48

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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