protected static Shape toShape(List<LngLatAlt> points) {
Path2D.Double pg = new Path2D.Double();
pg.moveTo(points.get(0).getLongitude(), points.get(0).getLatitude());
for (int i=1; i<points.size();i++) {
LngLatAlt pt = points.get(i);
pg.lineTo(pt.getLongitude(), pt.getLatitude());
}
pg.closePath();
return pg;
}