GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
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 125 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 324 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 171 of file sindex.c.
References bound_box::B, dig_select_isles(), bound_box::E, G_debug(), bound_box::N, boxlist::n_values, Map_info::plus, bound_box::S, bound_box::T, and bound_box::W.
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 228 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 194 of file sindex.c.
References bound_box::B, dig_select_nodes(), bound_box::E, G_debug(), bound_box::N, ilist::n_values, Map_info::plus, bound_box::S, bound_box::T, Vect_reset_list(), and bound_box::W.
Referenced by Vect_find_node().