Select to view content in your preferred language

How to find intersection for line

485
1
04-11-2010 08:15 PM
monalakade
Emerging Contributor
Hello All

       please suggest me How to find intersection for line.

Thanks
Mona
0 Kudos
1 Reply
jitendrapareek
Deactivated User
Hi,

Do you want to find self line intersection or you want to find other feature layer line?

1. in case you have one feature layer for line and other feature layer for other feature.

dim pGeom as Geometry=pFeature.shape (Line1 layer)
dim pSptFil as ISpatialFilter=new saptialFilert

with pSptFil
set .geometry=pGeom
SpatialRel = esriSpatialRelIntersects
end with


dim intsectFeats as ifeaturecursor
intsectFeats =othrFeatureLayer.FeatureClass.search(pSptFil,False)

2. Incase you find all intersect feature on map then

SelectByShape method of IMap

eg: m_Map.SelectByShape(pGeometry, pSelectEniv, false);


Thanks
Jitendra

Hello All

       please suggest me How to find intersection for line.

Thanks
Mona
0 Kudos