pts = New List(Of Coordinate2D)
.........................
rowBuffer(FeatureClassDefinition.GetShapeField()) = New PolylineBuilderEx(pts).ToGeometry
在运行至此行时,提示“System.ArgumentException:“Destination array was not long enough. Check the destination index, length, and the array's lower bounds. Arg_ParamName_Name”
未处理的异常: System.ArgumentException:目标数组不够长?
当pts的个数少时,不提示,完全没有问题,当pts个数增多时,就发生异常,于是就转换了方法,问题解决,代码如下:
Dim pl As ArcGIS.Core.Geometry.Polyline = PolylineBuilderEx.CreatePolyline(pts)
rowBuffer(FeatureClassDefinition.GetShapeField()) = pl