I am attempting to conjure up a potion that will let me replace a coordinate pair of a LINESTRING with a coordinate pair of a Point.
LINESTRING(-96.53140902 31.70302971,-96.53304535 31.70499253)
POINT(-96.5329705463785 31.7049028011285)
My result would be LINESTRING(-96.5329705463785 31.7049028011285,-96.53304535 31.70499253)
foundlines.EditTools.BeginTransaction()
For
i
As
Integer
= 0
To
searchResults.Count - 1
myfeature = searchResults(i)
Dim
myLine
As
New
LineShape(myfeature.GetShape().GetWellKnownText())
StartGORD = Convert.ToDouble(myfeature.ColumnValues(
"GORD"
))
If
StartXY.Contains(StartGORD)
Then
'''GetWellKnownText for LINESTRING AND POINT
'''potion for starting coordinate pair replace
End
If
If
EndXY.Contains(StartGORD)
Then
'''GetWellKnownText for LINESTRING AND POINT
'''potion for ending coordinate pair replace
End
If
foundlines.EditTools.Add(myfeature)
Next
i
foundlines.EditTools.CommitTransaction()
Thanks