• Antelope Release 5.5 Mac OS X 10.8.5 2015-04-21

 

NAME

perlpolygon - Perl interface to the polygon library

DESCRIPTION

The polygon extension to perl provides some of the functionality of the polygon library.

FUNCTIONS

The extensions must be loaded with a use statement:

use polygon;

Following are brief descriptions of the functions implemented.

  • inWhichPolygons (database, lat, lon)
    Returns a database pointer to the records where lat,lon falls in or dbINVALID if nothing is found,
    
    @db= inWhichPolygons(@db, lat, lon);
    if ($db[0]>0) {
    	print "found some records\n";
    }
    
    
  • readPolygon (database )
    Returns all vertices from the specified record in a single array.
    
    @vertices= readPolygon( @db );
    
    
  • windrose( heading )
    Returns the direction in textual form -> N, NNE, NE, ...
    
    $str= windrose( $azimuth );
    
    

SEE ALSO

perldb(3p), polygon(3), polygon1.1(5)

AUTHOR

Nikolaus Horn 2003

ZAMG / Vienna, nikolaus.horn@zamg.ac.at

SUPPORT


Contributed code: NO BRTT support.
THIS PIECE OF SOFTWARE WAS CONTRIBUTED BY THE ANTELOPE USER COMMUNITY. BRTT DISCLAIMS ALL OWNERSHIP, LIABILITY, AND SUPPORT FOR THIS PIECE OF SOFTWARE.

FOR HELP WITH THIS PIECE OF SOFTWARE, PLEASE CONTACT THE CONTRIBUTING AUTHOR.

Antelope User Group Contributed Software
Printer icon