Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Geo::JSON::Utils(3)   User Contributed Perl Documentation  Geo::JSON::Utils(3)

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

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.

perl v5.24.1			  2015-02-16		   Geo::JSON::Utils(3)

NAME | SYNOPSIS | DESCRIPTION | METHODS | TODO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Geo::JSON::Utils&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help