|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-f6f2c534ea
|
Vector library - overlays. More...

Go to the source code of this file.
Functions | |
| int | Vect_overlay_and (struct Map_info *AMap, int atype, struct ilist *AList, struct ilist *AAList, struct Map_info *BMap, int btype, struct ilist *BList, struct ilist *BAList, struct Map_info *OMap) |
| Overlay 2 vector maps with AND. | |
| int | Vect_overlay_str_to_operator (const char *str) |
| Get operator code from string. | |
| int | Vect_overlay (struct Map_info *AMap, int atype, struct ilist *AList, struct ilist *AAList, struct Map_info *BMap, int btype, struct ilist *BList, struct ilist *BAList, int operator, struct Map_info *OMap) |
| Overlay 2 vector maps and create new one. | |
Vector library - overlays.
Higher level functions for reading/writing/manipulating vectors.
This is file is just example and starting point for writing overlay functions!!!
(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 overlay.c.
| int Vect_overlay | ( | struct Map_info * | AMap, |
| int | atype, | ||
| struct ilist * | AList, | ||
| struct ilist * | AAList, | ||
| struct Map_info * | BMap, | ||
| int | btype, | ||
| struct ilist * | BList, | ||
| struct ilist * | BAList, | ||
| int | operator, | ||
| struct Map_info * | OMap | ||
| ) |
Overlay 2 vector maps and create new one.
| AMap | vector map A | |
| atype | feature type for A | |
| AList | unused ? | |
| AAList | unused ? | |
| BMap | vector map B | |
| btype | feature type for B | |
| BList | unused ? | |
| BAList | unused ? | |
| operator | operator code | |
| [out] | OMap | output vector map |
Definition at line 62 of file overlay.c.
References _, G_fatal_error(), GV_O_AND, and Vect_overlay_and().
| int Vect_overlay_and | ( | struct Map_info * | AMap, |
| int | atype, | ||
| struct ilist * | AList, | ||
| struct ilist * | AAList, | ||
| struct Map_info * | BMap, | ||
| int | btype, | ||
| struct ilist * | BList, | ||
| struct ilist * | BAList, | ||
| struct Map_info * | OMap | ||
| ) |
Overlay 2 vector maps with AND.
AND supports:point line area point + - + line - - - area + - -
| AMap | vector map A |
| atype | feature type for A |
| AList | unused ? |
| AAList | unused ? |
| BMap | vector map B |
| btype | feature type for B |
| BList | unused ? |
| BAList | unused ? |
| OMap | output vector map |
Definition at line 101 of file overlay.c.
References _, bound_box::B, bound_box::E, G_debug(), G_warning(), GV_AREA, GV_LINES, GV_POINTS, boxlist::id, bound_box::N, boxlist::n_values, NULL, bound_box::S, bound_box::T, Vect_cat_set(), Vect_destroy_boxlist(), Vect_destroy_cats_struct(), Vect_destroy_line_struct(), Vect_destroy_list(), Vect_find_area(), Vect_get_area_centroid(), Vect_get_num_lines(), Vect_list_append(), Vect_new_boxlist(), Vect_new_cats_struct(), Vect_new_line_struct(), Vect_new_list(), Vect_read_line(), Vect_reset_cats(), Vect_select_lines_by_box(), Vect_val_in_list(), Vect_write_line(), bound_box::W, line_pnts::x, line_pnts::y, and line_pnts::z.
Referenced by Vect_overlay().
Get operator code from string.
| str | operator code string |
Definition at line 35 of file overlay.c.
References GV_O_AND, GV_O_OVERLAP, GV_ON_AND, and GV_ON_OVERLAP.