#include <stdlib.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
int | Vect_get_num_nodes (struct Map_info *map) |
Get number of nodes in vector map. | |
int | Vect_get_num_primitives (struct Map_info *map, int type) |
Get number of primitives in vector map. | |
int | Vect_get_num_lines (struct Map_info *map) |
Fetch number of features (points, lines, boundaries, centroids) in vector map. | |
int | Vect_get_num_areas (struct Map_info *map) |
Get number of areas in vector map. | |
int | Vect_get_num_faces (struct Map_info *map) |
Get number of faces in vector map. | |
int | Vect_get_num_islands (struct Map_info *map) |
Get number of islands in vector map. | |
int | Vect_get_num_dblinks (struct Map_info *map) |
Get number of defined dblinks. | |
int | Vect_get_num_updated_lines (struct Map_info *map) |
Get number of updated features. | |
int | Vect_get_updated_line (struct Map_info *map, int idx) |
Get updated line by index. | |
int | Vect_get_num_updated_nodes (struct Map_info *map) |
Get number of updated nodes. | |
int | Vect_get_updated_node (struct Map_info *map, int idx) |
Get updated node by index. | |
int | Vect_get_node_coor (struct Map_info *map, int num, double *x, double *y, double *z) |
Get node coordinates. | |
int | Vect_get_line_nodes (struct Map_info *Map, int line, int *n1, int *n2) |
Get line nodes. | |
int | Vect_get_line_areas (struct Map_info *Map, int line, int *left, int *right) |
Get area/isle ids on the left and right. | |
int | Vect_get_node_n_lines (struct Map_info *Map, int node) |
Get number of lines for node. | |
int | Vect_get_node_line (struct Map_info *Map, int node, int line) |
Get line id for node line index. | |
float | Vect_get_node_line_angle (struct Map_info *Map, int node, int line) |
Angle of segment of the line connected to the node. | |
int | Vect_get_centroid_area (struct Map_info *Map, int centroid) |
Get area id the centroid is within. |
(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 level_two.c.
int Vect_get_centroid_area | ( | struct Map_info * | Map, | |
int | centroid | |||
) |
Get area id the centroid is within.
Map | vector map | |
centroid | centroid id |
0 for not in area
negative id if area/centroid (?) is duplicate
Definition at line 312 of file level_two.c.
References Vect_get_full_name().
int Vect_get_line_areas | ( | struct Map_info * | Map, | |
int | line, | |||
int * | left, | |||
int * | right | |||
) |
Get area/isle ids on the left and right.
Map | vector map | |
line | line id | |
[out] | left,right | area/isle id on the left and right |
Definition at line 231 of file level_two.c.
References Vect_get_full_name().
Referenced by Vect_remove_small_areas(), and Vect_select_areas_by_polygon().
int Vect_get_line_nodes | ( | struct Map_info * | Map, | |
int | line, | |||
int * | n1, | |||
int * | n2 | |||
) |
Get line nodes.
Map | vector map | |
line | line id | |
n1,n2 | ids of line nodes (or NULL) |
Definition at line 206 of file level_two.c.
References Vect_get_full_name().
Referenced by Vect_break_lines_list(), Vect_net_build_graph(), Vect_net_nearest_nodes(), and Vedit_connect_lines().
int Vect_get_node_coor | ( | struct Map_info * | map, | |
int | num, | |||
double * | x, | |||
double * | y, | |||
double * | z | |||
) |
Get node coordinates.
map | vector map | |
num | node id | |
x,y,z | coordinates values (for 2D coordinates z is NULL) |
Definition at line 182 of file level_two.c.
Referenced by Vect_break_lines_list(), Vect_clean_small_angles_at_nodes(), Vect_find_node(), and Vedit_connect_lines().
int Vect_get_node_line | ( | struct Map_info * | Map, | |
int | node, | |||
int | line | |||
) |
Get line id for node line index.
Map | vector map | |
node | node id | |
line | line index (range: 0 - Vect_get_node_n_lines()) |
Definition at line 275 of file level_two.c.
References Vect_get_full_name().
Referenced by Vect_clean_small_angles_at_nodes(), Vect_net_build_graph(), and Vect_overlay_and().
float Vect_get_node_line_angle | ( | struct Map_info * | Map, | |
int | node, | |||
int | line | |||
) |
Angle of segment of the line connected to the node.
Map | vector map | |
node | node number | |
line | line index (range: 0 - Vect_get_node_n_lines()) |
Definition at line 293 of file level_two.c.
References Vect_get_full_name().
Referenced by Vect_clean_small_angles_at_nodes().
int Vect_get_node_n_lines | ( | struct Map_info * | Map, | |
int | node | |||
) |
Get number of lines for node.
Map | vector map | |
node | node id |
Definition at line 255 of file level_two.c.
References Vect_get_full_name().
Referenced by Vect_clean_small_angles_at_nodes(), Vect_net_build_graph(), and Vect_overlay_and().
int Vect_get_num_areas | ( | struct Map_info * | map | ) |
Get number of areas in vector map.
map | vector map |
Definition at line 81 of file level_two.c.
Referenced by Vect_build_partial(), Vect_remove_small_areas(), Vect_set_varray_from_cat_list(), and Vect_set_varray_from_db().
int Vect_get_num_dblinks | ( | struct Map_info * | map | ) |
Get number of defined dblinks.
map | vector map |
Definition at line 117 of file level_two.c.
Referenced by Vect_copy(), Vect_copy_tables(), Vect_delete(), Vect_get_column_names(), Vect_get_column_names_types(), Vect_get_column_types(), and Vect_rename().
int Vect_get_num_faces | ( | struct Map_info * | map | ) |
Get number of faces in vector map.
map | vector map |
Definition at line 93 of file level_two.c.
int Vect_get_num_islands | ( | struct Map_info * | map | ) |
Get number of islands in vector map.
map | vector map |
Definition at line 105 of file level_two.c.
int Vect_get_num_lines | ( | struct Map_info * | map | ) |
Fetch number of features (points, lines, boundaries, centroids) in vector map.
map | vector map |
Definition at line 69 of file level_two.c.
Referenced by Vect_break_lines_list(), Vect_break_polygons(), Vect_build_nat(), Vect_build_partial(), Vect_copy_map_lines(), Vect_net_build_graph(), Vect_overlay_and(), Vect_remove_duplicates(), Vect_set_varray_from_cat_list(), Vect_set_varray_from_db(), Vect_snap_lines(), Vedit_merge_lines(), and Vedit_select_by_query().
int Vect_get_num_nodes | ( | struct Map_info * | map | ) |
Get number of nodes in vector map.
Map | vector map |
Definition at line 29 of file level_two.c.
Referenced by Vect_clean_small_angles_at_nodes(), and Vect_net_build_graph().
int Vect_get_num_primitives | ( | struct Map_info * | map, | |
int | type | |||
) |
Get number of primitives in vector map.
map | vector map type feature type |
Definition at line 42 of file level_two.c.
int Vect_get_num_updated_lines | ( | struct Map_info * | map | ) |
Get number of updated features.
map | vector map |
Definition at line 129 of file level_two.c.
int Vect_get_num_updated_nodes | ( | struct Map_info * | map | ) |
Get number of updated nodes.
map | vector map |
Definition at line 154 of file level_two.c.
int Vect_get_updated_line | ( | struct Map_info * | map, | |
int | idx | |||
) |
Get updated line by index.
map | vector map | |
idx | index |
Definition at line 142 of file level_two.c.
int Vect_get_updated_node | ( | struct Map_info * | map, | |
int | idx | |||
) |
Get updated node by index.
map | vector map | |
idx | index |
Definition at line 167 of file level_two.c.