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 |
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.
Returns a LIST of enclosed Math::Polygon objects.
Returns the outer Math::Polygon.
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.
The length of the outer polygon. Only useful in a orthogonal coordinate systems.
Returns a string representation of the line, which is also used for stringification.