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::JSON::UTILS (3)

.ds Aq ’

NAME

Geo::JSON::Utils - Util methods for Geo::JSON classes

CONTENTS

SYNOPSIS



    use Geo::JSON::Utils qw/ compare_positions compute_bbox /;



DESCRIPTION

Util methods for Geo::JSON

METHODS

    compare_positions



    if (Geo::JSON::Utils::compare_positions( $pt1, $pt2 )) {
        # positions of points are the same
    }



Compare two points. Compares in up to three dimensions. Any further dimensions are ignored.

    compute_bbox



    my $bbox = Geo::JSON::Utils::compute_bbox( \@positions );



Computes a bounding box for an arrayref of positions. The bounding box is a list of all minimum values for all axes followed by all maximum values. The values are in the order the axis they appear in the position geometry.

Assumes all points will have same number of dimensions as the first.

TODO

o Improve comparisons of floating point coordinates, look at stringification issues, etc.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 GEO::JSON::UTILS (3) 2015-02-16

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