Geo::Geos::WKTReader - Reads a Geometry from Well-Known Text format.
use Geo::Geos::GeometryFactory; use Geo::Geos::WKTReader; my $gf = Geo::Geos::GeometryFactory::create(); my $s = "POINT (1.0000000000000000 2.0000000000000000)"; Geo::Geos::WKTReader::read($s, $gf); # => isa 'Geo::Geos::Geometry' Geo::Geos::WKTReader::read($s); # => isa 'Geo::Geos::Geometry' my $g = Geo::Geos::WKTReader::read($s); $g->toString eq $s; # => success
GEOS C++ Library
geos::io::WKTReader
Geo::Geos
Geo::Geos::Geometry
Geo::Geos::WKTWriter
Ivan Baidakou <i.baydakov@crazypanda.ru>, Crazy Panda, CP Decision LTD
You may distribute this code under the same terms as Perl itself.
To install Geo::Geos, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::Geos
CPAN shell
perl -MCPAN -e shell install Geo::Geos
For more information on module installation, please visit the detailed CPAN module installation guide.