Find Gap between two Continuous One Way street in Road Feature Class

351
0
01-15-2014 10:22 PM
cynthiasinha
New Contributor
I wish to find gap in the continuity of One Way street.I have One Road(Polyline) Feature Class and one way road are represented by one column called ONE Way.If ONE WAY="Y" that means road is one way so i wish to fetch out those polylines that fall between two continuous oneway road and its ONE WAY cloumn has no value.

Let me tell you , what i have done so far.Open the feature class as pfeatureclass and done query on it.Selected those features which are oneway.

prdQf=New Queryfilter

prdQf.whereclause="one way="& "YES"
prfcur=pfeatureclas

s.search(prdQf,false)

proadfeature=prfcur.Nextfeature
do until  proadfeature is nothing
pgeom=proadfeature.shape
pPolyline=pgeom
pPolyline.QueryToPoint(topt)
penvelope=topt.Envelope
penvelope.Expand(0,0,False)
Dim sPf as Ispatialfilter=New spatialfilter
sPf.Geometry=pEnvelope

sPf.GeometryField=pFeatureClass.Shapefieldname
sPf.Spatialrel=esrispatialRelEnum.esrispatialRelEnvelopeIntersects
pfc3=pfeatureclass.search(sPf,false)
Find all the edges that are intersecting it and one way is blank and then again find all intersected edges and their one way attribute. if one way value exist, that means there is gap.

But its not providing the correct error.???
0 Kudos
0 Replies