When called as instance method, some defaults are copied from the object where the call is made upon.
COMPONENTS are Math::Polygon, Math::Polygon::Surface, Geo::Line, Geo::Surface objects. When an ARRAY is specfied as COMPONENT, it will be used to instantiate a Math::Polygon::Surface object. In case of a Geo::Surface, the included polygons are translated to the specified projection.
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 the component (or components) with the specified INDEX(es). One Math::Polygon::Surface in scalar context, and multiple in list context.
Returns a list of Math::Polygon::Surface objects, together forming the surface.
Returns the number of components.
Returns the area enclosed by the combined components. Only useful when the points are in some orthogonal projection.
The bounding box of the combined polygons.
Detailed calculation whether two surfaces are equal is a lot of work. Therefore, only exactly equal surface descriptions are considered equivalent.
The length of the outer polygons of all components. Only useful in a orthogonal coordinate systems.
Returns a string representation of the line, which is also used for stringification.