geoalglib.pm - Geometric Algorithim Library / Perl module.
1.0
./geoalglib -s 45.03N -75.45W 46.09N -80.32W great-circle distance from 45:01:48N 75:27:00E to 46:05:24N 80:19:12E is 397 km 247 miles 214 nautical miles initial heading: 71 degrees (east-northeast)
geoalglib.pm provides numerous geometric algorithms for everyday use in a Perl environment. The accompanying geoalglib Perl script gives a useful API into the module.
None.
A full listing below:
Usage: geoalglib [flag] [inputs] Geometric Algorithms flag function inputs -e Euclidean (direct) distance x1 y1 x2 y2 -m Manhattan (grid) distance x1 y1 x2 y2 -s Great Circle distance x1 y1 x2 y2 -c Closest pair of points x1 y1 x2 y2 x3 y3 ... -at Area of triangle len1 len2 len3 OR x1 y1 x2 y2 x3 y3 -pt Perimeter of triangle len1 len2 len3 OR x1 y1 x2 y2 x3 y3 -ap Area of polygon x1 y1 x2 y2 x3 y3 ... -pp Perimeter of polygon x1 y1 x2 y2 x3 y3 ... -pip Point in polygon point x y x1 y1 x2 y2 x3 y3 ... -pit Point in triangle point x y x1 y1 x2 y2 x3 y3 -vd Vector direction x1 y1 x2 y2 x3 y3 -piq Point in a quadrangle point x y x1 y1 x2 y2 x3 y3 ... -bb Bounding box of object x1 y1 x2 y2 x3 y3 ... -li Line intersection x1 y1 x2 y2 x3 y3 x4 y4 -se Compute spatial extent minx miny maxx maxy numrows numcols Computing File Sizes -fssbr Single band raster numcols numrows numbytes -fssbrh Single band raster with header numcols numrows numbytes headerbytes -fsmbr Multi-band raster numcols numrows numbytes numbands -fsmbrh Multi-band raster with header numcols numrows numbytes numbands headerbytes -fsmbrmh Multi-band raster with multi headers numcols numrows numbytes numbands headerbytes
Tom Kralidis tomkralidis@hotmail.com http://jedi.kralidis.ca/gis/