if (this.measureShapeType.equals(SHAPE_LINE) || this.measureShapeType.equals(SHAPE_PATH))
{
if (this.positions.size() > 1 && this.line == null)
{
// Init polyline
this.line = new GfrDirectedPath();
this.line.setFollowTerrain(true);
this.line.setAltitudeMode(WorldWind.CLAMP_TO_GROUND);
ShapeAttributes attrs = new BasicShapeAttributes();
attrs.setOutlineWidth(this.getLineWidth());