The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Geo::Geos::LineString - Models an OGC-style LineString.

SYNOPSIS (class-specific methods)

    use Geo::Geos::Coordinate;
    use Geo::Geos::GeometryFactory;

    my $c1 = Geo::Geos::Coordinate->new(1,2);
    my $c2 = Geo::Geos::Coordinate->new(5,2);
    my $gf = Geo::Geos::GeometryFactory::create();

    my $ls = $gf->createLineString([$c1, $c2], 2);  # => isa 'Geo::Geos::LineString'
    $gf->createLineString([$c1, $c2], 2);           # => isa 'Geo::Geos::Lineal'

    $ls->getPointN(0);       # => isa 'Geo::Geos::Point'
    $ls->getStartPoint;      # => isa 'Geo::Geos::Point'
    $ls->getEndPoint;        # => isa 'Geo::Geos::Point'

    $ls->isClosed;  # => ''
    $ls->isRing;    # => ''

    $lr->reverse;    # => isa 'Geo::Geos::Geometry'

DESCRIPTION

See methods in the base class Geo::Geos::Geometry.

SEE ALSO (C++ classes docs)

GEOS C++ Library

geos::geom::LineString

SEE ALSO

Geo::Geos

Geo::Geos::Geometry

Geo::Geos::GeometryFactory

Geo::Geos::Point

AUTHOR

Ivan Baidakou <i.baydakov@crazypanda.ru>, Crazy Panda, CP Decision LTD

LICENSE

You may distribute this code under the same terms as Perl itself.