Geo::WKT - Well Known Text representation of geometry information
Geo::WKT is a Exporter
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.
Parse any STRING into the applicable Geo::Shape structure.
Convert a WKT string into Geo::Space objects, containing the exterior and optionally some interior polygons.
Convert a WKT string into one Geo::Point object.
Convert a WKT string into one Geo::Surface objects, containing the exterior and optionally some interior polygons.
Whole bunch of unsorted geometries. You may specify one Geo::Space or multiple things.
A line string is a non-closed list ('string') of points.
Format a list of lines into WKT. A LINE contains Geo::Point objects or ARRAY-REFs to pairs. You may also provide a Geo::Line or a Math::Polygon.
A set of points, which must be specified as list. They can be stored in a Geo::Space.
Format a list of closed lines into WKT. A LINE contains Geo::Point objects or ARRAY-REFs to pairs. You may also provide a Geo::Line or a Math::Polygon.
Pass any Geo::Shape object, and the easiest representation is returned.
Format one point into WKT format.
Format one polygon (exterior with optional interiors) into WKT format. An ARRAY contains Geo::Point objects or ARRAY-REFs to pairs. You may also provide a Geo::Line or Geo::Surface OBJECTS.
example:
wkt_polygon [2,3],[4,5]; #list of points for outer wkt_polygon $gp1, $gp2; #list of Geo::Points for outer wkt_polygon [[2,3],[4,5]]; #array of points for outer wkt_polygon [$gp1, $gp2]; #array with Geo::Points for outer my $outer = Geo::Line->new; wkt_polygon $outer; wkt_polygon $outer, $inner1, $inner2; wkt_polygon [$gp1,$gp2],[$gp3,$gp4,...];
This module is part of Geo-WKT distribution version 0.04, built on November 18, 2012. Website: http://perl.overmeer.net/geo All modules in this suite: "Geo::Point", "Geo::Proj4", "Geo::WKT", "Math::Polygon", "Geo::GML", "Geo::ISO19139", "Geo::EOP", "Geo::Format::Envisat", and "Geo::Format::Landsat".
Please post questions or ideas to the mailinglist at http://geo-perl@list.hut.fi
Copyrights 2008-2012 by [Mark Overmeer]. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html
To install Geo::WKT, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::WKT
CPAN shell
perl -MCPAN -e shell install Geo::WKT
For more information on module installation, please visit the detailed CPAN module installation guide.