我也是搞测绘的,你看看这段代码即可
allert = GzwObj.Coordinates Lbnd = LBound(allert) Ubnd = UBound(allert)
ReDim points(Lbnd To Ubnd) As Double
For i = Lbnd To Ubnd Step 2 points(i) = allert(i) points(i + 1) = allert(i + 1) msg = msg & Format(allert(i + 1), "#####0.000") & "+" & Format(allert(i), "#####0.000") & "," Next i
|