- xs = (long2coord(row['lon'].to_f, baselong, masterscale) * 20).floor
- ys = (lat2coord(row['lat'].to_f, basey, masterscale) * 20).floor
- xl = [xs, xl].min; xr = [xs, xr].max
- yb = [ys, yb].min; yt = [ys, yt].max
- if row['ts'].to_i - lasttime > 180 || row['fileid'] != lastfile || row['trackid'] != lasttrack # or row['ts'].to_i==lasttime
- b += startAndMove(xs, ys, '01')
- absx = xs.floor; absy = ys.floor
- end
- b += drawTo(absx, absy, xs, ys)
- absx = xs.floor; absy = ys.floor
- lasttime = row['ts'].to_i
- lastfile = row['fileid']
- lasttrack = row['trackid']
- while b.length > 80
- r += [b.slice!(0...80)].pack("B*")
+ xs = (long2coord(row["lon"].to_f, baselong, masterscale) * 20).floor
+ ys = (lat2coord(row["lat"].to_f, basey, masterscale) * 20).floor
+ xl = [xs, xl].min
+ xr = [xs, xr].max
+ yb = [ys, yb].min
+ yt = [ys, yt].max
+ if row["ts"].to_i - lasttime > 180 || row["fileid"] != lastfile || row["trackid"] != lasttrack # or row['ts'].to_i==lasttime
+ b += start_and_move(xs, ys, "01")
+ absx = xs.floor
+ absy = ys.floor