GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Vector library - constraints. More...
#include <grass/Vect.h>
#include <grass/gis.h>
Go to the source code of this file.
Functions | |
int | Vect_set_constraint_region (struct Map_info *Map, double n, double s, double e, double w, double t, double b) |
Set constraint region. More... | |
int | Vect_get_constraint_box (struct Map_info *Map, BOUND_BOX *Box) |
Get constraint box. More... | |
int | Vect_set_constraint_type (struct Map_info *Map, int type) |
Set constraint type. More... | |
int | Vect_remove_constraints (struct Map_info *Map) |
Remove constraints. More... | |
Vector library - constraints.
Higher level functions for reading/writing/manipulating vectors.
These routines can affect the read_next_line funtions by restricting what they return. They are applied on a per map basis.
These do not affect the lower level direct read functions.
Normally, All 'Alive' lines will be returned unless overridden by this function. You can specified all the types you are interested in (by oring their types together). You can use this to say exclude Area type lines.
By default all DEAD lines are ignored by the read_next_line () functions This too can be overridden by including their types.
Refer to dig_defines for the line type Defines
All lines can be forced to be read by setting type = -1
(C) 2001-2008 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 constraint.c.
int Vect_get_constraint_box | ( | struct Map_info * | Map, |
BOUND_BOX * | Box | ||
) |
Get constraint box.
Map | vector map |
Box | bounding box |
Definition at line 81 of file constraint.c.
Referenced by V1_read_next_line_nat(), V1_read_next_line_ogr(), and V2_read_next_line_nat().
int Vect_remove_constraints | ( | struct Map_info * | Map | ) |
Remove constraints.
Map | vector map |
Definition at line 116 of file constraint.c.
int Vect_set_constraint_region | ( | struct Map_info * | Map, |
double | n, | ||
double | s, | ||
double | e, | ||
double | w, | ||
double | t, | ||
double | b | ||
) |
Set constraint region.
Map | vector map |
n,s,e,w,t,b | north, south, east, west, top, bottom coordinates |
Definition at line 52 of file constraint.c.
References b, G_projection(), n, dialogs::s, and dialogs::w.
Referenced by Gp_load_sites(), and Gv_load_vect().
Set constraint type.
Map | vector map |
type | constraint type |
Definition at line 101 of file constraint.c.
References dialogs::type.