$ 0 0 Seems there is an error in DotSpatial. Have a look at issue 935. As soon as it is closed you can download the latest dlls. Then your AddPolyLineFeatureToShape should work correctly.