GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GEO::SPACE (3)

.ds Aq ’

NAME

Geo::Space - A collection of various items

CONTENTS

INHERITANCE



 Geo::Space
   is a Geo::Shape



SYNOPSIS



 my $island1 = Geo::Line->filled(...);
 my $island2 = Geo::Space->new(...);
 my $islands = Geo::Space->new($island1, $island2)



DESCRIPTION

Where a Geo::Surface can only contains sets of nested polygons, the Space can contain anything you like: lines, points, and unrelated polygons.

Extends DESCRIPTION in Geo::Shape.

METHODS

Extends METHODS in Geo::Shape.

    Constructors

Extends Constructors in Geo::Shape.
$obj-><B>newB>([$components], %options)
Geo::Space-><B>newB>([$components], %options) When called as instance method, some defaults are copied from the object where the call is made upon. Usually called as class method.

$components are Math::Polygon, Math::Polygon::Surface, Geo::Point, Geo::Line, Geo::Surface, Geo::Space objects.



 -Option--Defined in--Default
  proj    Geo::Shape  see Geo::Proj::defaultProjection()



proj => LABEL

    Attributes

Extends Attributes in Geo::Shape.
$obj-><B>componentB>($index, [$index, ...]) Returns the component (or components) with the specified $index(es). One Geo::Shape object in scalar context, and multiple in list context.
$obj-><B>componentsB>() Returns a list of Geo::Shape objects, all located in this space.
$obj-><B>linesB>() Returns a list of Geo::Line objects, which are defined as separate components.
$obj-><B>nrComponentsB>() Returns the number of components.
$obj-><B>onlyLinesB>() Returns true when all components are lines; Geo::Line objects.
$obj-><B>onlyPointsB>() Returns true when all components are points; Geo::Point objects.
$obj-><B>onlyRingsB>() Returns true when all components are closed lines; Geo::Line objects each defined as ring.
$obj-><B>pointsB>() Returns a list of Geo::Point objects, which are defined as separate components.
$obj-><B>projB>() Inherited, see Attributes in Geo::Shape
$obj-><B>proj4B>() Inherited, see Attributes in Geo::Shape

    Projections

Extends Projections in Geo::Shape.
$obj-><B>inB>(<$label|’utm’>) Inherited, see Projections in Geo::Shape
$obj-><B>projectOnB>($nick, @points) Inherited, see Projections in Geo::Shape

    Geometry

Extends Geometry in Geo::Shape.
$obj-><B>areaB>() Returns the area enclosed by the combined components. Only useful when the points are in some orthogonal projection.
$obj-><B>bboxB>() Inherited, see Geometry in Geo::Shape
$obj-><B>bboxCenterB>() Inherited, see Geometry in Geo::Shape
$obj-><B>bboxRingB>([$xmin, $ymin, $xmax, $ymax, [$proj]])
Geo::Space-><B>bboxRingB>([$xmin, $ymin, $xmax, $ymax, [$proj]]) Inherited, see Geometry in Geo::Shape
$obj-><B>distanceB>($object, [$unit]) Inherited, see Geometry in Geo::Shape
$obj-><B>perimeterB>() The length of the outer polygons of all components. Only useful in a orthogonal coordinate systems.

    Display

Extends Display in Geo::Shape.
$obj-><B>deg2dmB>($degrees, $pos, $neg)
Geo::Space-><B>deg2dmB>($degrees, $pos, $neg) Inherited, see Display in Geo::Shape
$obj-><B>deg2dmsB>($degrees, $pos, $neg)
Geo::Space-><B>deg2dmsB>($degrees, $pos, $neg) Inherited, see Display in Geo::Shape
$obj-><B>dms2degB>($dms)
Geo::Space-><B>dms2degB>($dms) Inherited, see Display in Geo::Shape
$obj-><B>toStringB>([$projection]) Returns a string representation of the line, which is also used for stringification.

example:

OVERLOAD

Extends OVERLOAD in Geo::Shape.
overload: <B>’‘‘’’’ (stringification)B> Inherited, see OVERLOAD in Geo::Shape
overload: <B>’bool’ (truth value)B> Inherited, see OVERLOAD in Geo::Shape

DIAGNOSTICS

Error: distance calculation not implemented between a $kind and a $kind 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.
Error: in() not implemented for a $class

SEE ALSO

This module is part of Geo-Point distribution version 0.96, built on January 21, 2014. 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 geo-perl@list.hut.fi">http://geo-perl@list.hut.fi

LICENSE

Copyrights 2005-2014 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

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 GEO::SPACE (3) 2014-01-21

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.