CPoint p1 = ls.getPoint(i);
CPoint p2 = ls.getPoint(i + 1);
// 距离过小时不画
LineSegment lseg = new LineSegment(p1, p2);
if (lseg.taxiDistance() < dis)
continue;
LineString lsa = (LineString) getGeometry(p1, p2);
GeneralPath path = toGeneralPath(lsa);
g.fill(path);