var flightPlanCoordinates = [];
var poly; //折线
// var gridID = document.getElementById("Grid1"); // ;
var grid = Ext.getCmp(gridID);
var total = grid.getStore().getCount(); //数据行数
//var s = grid.getStore().getAt(3).get("ct2").valueOf();
//var x = s1.substring(3, s1.length - s1.indexOf('</'));
// var s1 = grid.getStore().getAt(3).json[4];
// var s2 = grid.getStore().getAt(3).json[5];
// var x = s1.substring(3, s1.length - 4);
// var y = s2.substring(3, s2.length - 4);
for (var i = 0; i < total; i++) {
var s0 = grid.getStore().getAt(i).json[1];
var s1 = grid.getStore().getAt(i).json[4];
var s2 = grid.getStore().getAt(i).json[5];
var x = s1.substring(3, s1.length - 4);
var y = s2.substring(3, s2.length - 4);