GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-bea8435a9e
|
GIS Library - Pole in polygon. More...
#include <grass/gis.h>
Go to the source code of this file.
Functions | |
int | G_pole_in_polygon (const double *x, const double *y, int n) |
Check if pole is in polygon. More... | |
GIS Library - Pole in polygon.
(C) 2001-2009 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file pole_in_poly.c.
int G_pole_in_polygon | ( | const double * | x, |
const double * | y, | ||
int | n | ||
) |
Check if pole is 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.
Note: Use this routine only if the projection is PROJECTION_LL.
x | array of x coordinates |
y | array of y coordinates |
n | number of coordinates |
Definition at line 35 of file pole_in_poly.c.