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()ForiAsInteger= 0TosearchResults.Count - 1myfeature = searchResults(i)DimmyLineAsNewLineShape(myfeature.GetShape().GetWellKnownText())StartGORD = Convert.ToDouble(myfeature.ColumnValues("GORD"))IfStartXY.Contains(StartGORD)Then'''GetWellKnownText for LINESTRING AND POINT'''potion for starting coordinate pair replaceEndIfIfEndXY.Contains(StartGORD)Then'''GetWellKnownText for LINESTRING AND POINT'''potion for ending coordinate pair replaceEndIffoundlines.EditTools.Add(myfeature)Nextifoundlines.EditTools.CommitTransaction()
Thanks