Geo::Surface - A surface description.
Geo::Surface is a Geo::Shape
my $island = Geo::Surface->new($outer, $lake1, $lake2);
In this context, a "surface" is defined as a single filled area with possible enclosures in one projection system.
Extends "DESCRIPTION" in Geo::Shape.
Extends "METHODS" in Geo::Shape.
Extends "Constructors" in Geo::Shape.
When called as instance method, some defaults are copied from the object where the call is made upon.
You may either provide a Math::Polygon::Surface $surface, or a LIST of lines. In the latter case, the first line is the $outer polygon of the surface, and the other are all $inner enclosures: lakes. Lines are and Geo::Line, Math::Polygon objects, or ARRAY of points.
If no projection is specified, then the projection of the first Geo-encoded line will be used.
-Option--Defined in--Default proj Geo::Shape see Geo::Proj::defaultProjection()
Extends "Attributes" in Geo::Shape.
Returns a LIST of enclosed polygons, converted to Geo::Line objects.
Returns the outer polygon as Geo::Line object.
Returns a LIST of enclosed Math::Polygon objects.
Returns the outer Math::Polygon.
Inherited, see "Attributes" in Geo::Shape
Extends "Projections" in Geo::Shape.
Inherited, see "Projections" in Geo::Shape
Extends "Geometry" in Geo::Shape.
Returns the area enclosed by the outer polygon, minus the erea of the enclosures. Only useful when the points are in some orthogonal projection.
The bounding box of outer surface polygon.
Inherited, see "Geometry" in Geo::Shape
The length of the outer polygon. Only useful in a orthogonal coordinate systems.
Extends "Display" in Geo::Shape.
Inherited, see "Display" in Geo::Shape
Returns a string representation of the line, which is also used for stringification.
Extends "OVERLOAD" in Geo::Shape.
Inherited, see "OVERLOAD" in Geo::Shape
When Geo::Line objects are used to compose a surface, each of them must be filled. Representation of rivers and such do not belong in a surface description.
Only a subset of all objects can be used in the distance calculation. The limitation is purely caused by lack of time to implement this.
This module is part of Geo-Point distribution version 0.99, built on February 09, 2021. Website: http://perl.overmeer.net/CPAN/
Copyrights 2005-2021 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://dev.perl.org/licenses/
To install Geo::Point, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::Point
CPAN shell
perl -MCPAN -e shell install Geo::Point
For more information on module installation, please visit the detailed CPAN module installation guide.