pole_in_poly.c File Reference

#include <grass/gis.h>

Include dependency graph for pole_in_poly.c:

Go to the source code of this file.

Functions

int G_pole_in_polygon (double *x, double *y, int n)
 pole in polygon


Function Documentation

int G_pole_in_polygon ( double *  x,
double *  y,
int  n 
)

pole in polygon

For latitude-longitude coordinates, this routine determines if the polygon defined by the n coordinate vertices x,y contains one of the poles. Returns -1 if it contains the south pole; 1 if it contains the north pole; 0 if it contains neither pole. Note. Use this routine only if the projection is PROJECTION_LL.

Parameters:
x 
y 
n 
Returns:
int

Definition at line 37 of file pole_in_poly.c.


Generated on Sun Apr 6 17:32:23 2008 for GRASS by  doxygen 1.5.5