I am attempting to create a buffer around a feature(lineshape) from the Map_Click event. I have my feature and distance, but clearly do not get the buffer part. I do not get any warnings or errors telling me this will not work. I took what I thought would work from forum posts and WIKI Multi Ring Buffering, again, clearly, I am not getting it.
For Each myFeature As Feature In closestline
PIRdist = Convert.ToInt32(myFeature.ColumnValues("PIR"))
Dim lshape As BaseShape = myFeature.GetShape()
lshape.Buffer(PIRdist, GeographyUnit.DecimalDegree, DistanceUnit.Feet)
foundlines.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.FromArgb(150, 50, 250, 250))
foundlines.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
foundlines.EditTools.Add(New Feature(lshape))
foundlines.EditTools.CommitTransaction()
foundlines.Close()
Next myFeature
Dim activesegmentOverlay As New LayerOverlay()
activesegmentOverlay.Layers.Add(foundlines)
Map.Overlays.Add("ActivesegmentOverlay", activesegmentOverlay)
Map.Refresh()