work with intersection point of the lines

2366
4
Jump to solution
01-22-2014 12:43 AM
DenEsenal
New Contributor
hi everybody,
I am new to ArcObjects and looking to get some ideas.

There are several polyline and point features in GDB.
Need to add point to an existing point feature class. Point formed at the intersection of the lines
How to do this in the process of drawing a polyline?

Thanks in Advance.
0 Kudos
1 Solution

Accepted Solutions
WeifengHe
Esri Contributor
So you have your feature class, say featCls
IFeature feat = featCls.CreateFeature
feat.Shape = point //point is the intersection of the pplyline
feat.Store()

That's it, you just added the point to your feature class.

View solution in original post

0 Kudos
4 Replies
swapnabhide
New Contributor
Hi Den,

I am not aware how to add the intersection point while drawing polyline. However, below is the link for sample code to create point where polyline intersect. It is a VBA code You may need to modify the code as per your requirements.

http://help.arcgis.com/en/sdk/10.0/vba_desktop/conceptualhelp/index.html#//00010000002m000000

Hope this will be helpful to start with your requirement.

Regards,
Swapna.
0 Kudos
DenEsenal
New Contributor
Hi Den,

I am not aware how to add the intersection point while drawing polyline. However, below is the link for sample code to create point where polyline intersect. It is a VBA code You may need to modify the code as per your requirements.

http://help.arcgis.com/en/sdk/10.0/vba_desktop/conceptualhelp/index.html#//00010000002m000000

Hope this will be helpful to start with your requirement.

Regards,
Swapna.


Hi Swapna!

Thanks/ VBA code works. Now I can find intersection points.:) �?ne step closer to my goal.
And my next problem is adding this points to existing point FC
0 Kudos
WeifengHe
Esri Contributor
So you have your feature class, say featCls
IFeature feat = featCls.CreateFeature
feat.Shape = point //point is the intersection of the pplyline
feat.Store()

That's it, you just added the point to your feature class.
0 Kudos
DenEsenal
New Contributor
So you have your feature class, say featCls
IFeature feat = featCls.CreateFeature
feat.Shape = point //point is the intersection of the pplyline
feat.Store()

That's it, you just added the point to your feature class.


Thanks Weifeng!
found an article about it
Updating features
0 Kudos