SYNOPSIS

  # use coordinate pairs ...
  print wkt_linestring([1,2], [2,3], [3,2], [1,2]);
    # --> LINESTRING(1 2,2 3,3 2,1 2)

  # ... or coordinatie objects
  my $gp1 = Geo::Point->xy(6,7);
  my $gp2 = Geo::Point->xy(8,9);
  my $gp3 = Geo::Point->xy(6,9);
  print wkt_linestring($gp1, $gp2, $gp3);
    # --> LINESTRING(6 7,8 9,6 9)

  # Combine with Geo::Point registration of projections
  my $p = parse_wkt_point "POINT(3.5 6.7)", 'wgs84';
  print $p->toString; # point[wgs84](6.7000 3.5000)

DESCRIPTION

GIS application often communicate geographical structures in WKT format, defined by the OpenGIS consortium. This module translates Geo::Point objects from and to this WKT.