GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
overlap.c
Go to the documentation of this file.
1 /*
2  ****************************************************************************
3  *
4  * MODULE: Vector library
5  *
6  * AUTHOR(S): Original author CERL, probably Dave Gerdes or Mike Higgins.
7  * Update to GRASS 5.7 Radim Blazek and David D. Gray.
8  *
9  * PURPOSE: Higher level functions for reading/writing/manipulating vectors.
10  *
11  * COPYRIGHT: (C) 2001 by the GRASS Development Team
12  *
13  * This program is free software under the GNU General Public
14  * License (>=v2). Read the file COPYING that comes with GRASS
15  * for details.
16  *
17  *****************************************************************************/
18 #include <grass/gis.h>
19 #include <grass/Vect.h>
20 
21 int
22 V__map_overlap(struct Map_info *Map, double n, double s, double e, double w)
23 {
24  struct Cell_head W;
25 
26  /* updated for Lat lon support 21 Jun 91 */
27  W.north = Map->Constraint_N;
28  W.south = Map->Constraint_S;
29  W.east = Map->Constraint_E;
30  W.west = Map->Constraint_W;
31  W.proj = Map->proj;
32 
33  return G_window_overlap(&W, n, s, e, w);
34 }
int V__map_overlap(struct Map_info *Map, double n, double s, double e, double w)
Definition: overlap.c:22
tuple Map
Definition: render.py:1310
int G_window_overlap(const struct Cell_head *window, double N, double S, double E, double W)
Determins if a box overlays a map window.
Definition: wind_overlap.c:37
int n
Definition: dataquad.c:291