GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
|
Vector library - select vector features. More...
Go to the source code of this file.
Functions | |
int | Vect_select_lines_by_box (struct Map_info *Map, const struct bound_box *Box, int type, struct boxlist *list) |
Select lines with bounding boxes by box. More... | |
int | Vect_select_areas_by_box (struct Map_info *Map, const struct bound_box *Box, struct boxlist *list) |
Select areas with bounding boxes by box. More... | |
int | Vect_select_isles_by_box (struct Map_info *Map, const struct bound_box *Box, struct boxlist *list) |
Select isles with bounding boxes by box. More... | |
int | Vect_select_nodes_by_box (struct Map_info *Map, const struct bound_box *Box, struct ilist *list) |
Select nodes by box. More... | |
int | Vect_select_lines_by_polygon (struct Map_info *Map, struct line_pnts *Polygon, int nisles, struct line_pnts **Isles, int type, struct ilist *List) |
Select lines by Polygon with optional isles. More... | |
int | Vect_select_areas_by_polygon (struct Map_info *Map, struct line_pnts *Polygon, int nisles, struct line_pnts **Isles, struct ilist *List) |
Select areas by Polygon with optional isles. More... | |
Vector library - select vector features.
Higher level functions for reading/writing/manipulating vectors.
(C) 2001-2011 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 sindex.c.
int Vect_select_areas_by_box | ( | struct Map_info * | Map, |
const struct bound_box * | Box, | ||
struct boxlist * | list | ||
) |
Select areas with bounding boxes by box.
Select areas whose boxes overlap specified box!!! It means that selected area may or may not overlap the box.
Map | vector map | |
Box | bounding box | |
[out] | output | list, must be initialized |
Definition at line 121 of file sindex.c.
Referenced by Vect_find_area().
int Vect_select_areas_by_polygon | ( | struct Map_info * | Map, |
struct line_pnts * | Polygon, | ||
int | nisles, | ||
struct line_pnts ** | Isles, | ||
struct ilist * | List | ||
) |
Select areas by Polygon with optional isles.
Polygons should be closed, i.e. first and last points must be identical.
Map | vector map | |
Polygon | outer ring | |
nisles | number of islands or 0 | |
Isles | array of islands or NULL | |
[out] | list | output list, must be initialised |
Definition at line 317 of file sindex.c.
References G_debug(), GV_BOUNDARY, ilist::n_values, NULL, Vect_new_list(), Vect_reset_list(), and Vect_select_lines_by_polygon().
int Vect_select_isles_by_box | ( | struct Map_info * | Map, |
const struct bound_box * | Box, | ||
struct boxlist * | list | ||
) |
Select isles with bounding boxes by box.
Select isles whose boxes overlap specified box!!! It means that selected isle may or may not overlap the box.
Map | vector map | |
Box | bounding box | |
[out] | list | output list, must be initialized |
Definition at line 165 of file sindex.c.
References Box, dig_select_isles(), G_debug(), and Map_info::plus.
Referenced by Vect_attach_isles().
int Vect_select_lines_by_box | ( | struct Map_info * | Map, |
const struct bound_box * | Box, | ||
int | type, | ||
struct boxlist * | list | ||
) |
Select lines with bounding boxes by box.
Select lines whose boxes overlap specified box!!! It means that selected line may or may not overlap the box.
Map | vector map | |
Box | bounding box | |
type | line type | |
[out] | list | output list, must be initialized |
int Vect_select_lines_by_polygon | ( | struct Map_info * | Map, |
struct line_pnts * | Polygon, | ||
int | nisles, | ||
struct line_pnts ** | Isles, | ||
int | type, | ||
struct ilist * | List | ||
) |
Select lines by Polygon with optional isles.
Polygons should be closed, i.e. first and last points must be identical.
Map | vector map | |
Polygon | outer ring | |
nisles | number of islands or 0 | |
Isles | array of islands or NULL | |
type | line type | |
[out] | list | output list, must be initialised |
Definition at line 220 of file sindex.c.
Referenced by Vect_select_areas_by_polygon().
int Vect_select_nodes_by_box | ( | struct Map_info * | Map, |
const struct bound_box * | Box, | ||
struct ilist * | list | ||
) |
Select nodes by box.
Map | vector map | |
Box | bounding box | |
[out] | list | output list, must be initialized |
Definition at line 187 of file sindex.c.
References Box, dig_select_nodes(), G_debug(), Map_info::plus, and Vect_reset_list().
Referenced by Vect_find_node().