protected List<Coord> parseLineString(String line){
  List<Coord> coords=new ArrayList<Coord>();
  Scanner lineScan;
  Scanner tupleScan;
  double x, y;
  Coord c;
  lineScan=new Scanner(line);
  lineScan.useDelimiter(",");
  while (lineScan.hasNext()) {
    tupleScan=new Scanner(lineScan.next());
    x=Double.parseDouble(tupleScan.next());
    y=Double.parseDouble(tupleScan.next());
    c=new Coord(x,y);
    coords.add(c);
  }
  return coords;
}

protected List < Coord > parseLineString ( String line ) { List < Coord > coords = new ArrayList < Coord > ( ) ; Scanner lineScan ; Scanner tupleScan ; double x , y ; Coord c ; lineScan = new Scanner ( line ) ; lineScan . useDelimiter ( "," ) ; while ( lineScan . hasNext ( ) ) { tupleScan = new Scanner ( lineScan . next ( ) ) ; x = Double . parseDouble ( tupleScan . next ( ) ) ; y = Double . parseDouble ( tupleScan . next ( ) ) ; c = new Coord ( x , y ) ; coords . add ( c ) ; } return coords ; }
parses coordinate tuples from " linestring " lines
