#include <math.h>
#include <grass/gis.h>
#include <grass/Vect.h>
Go to the source code of this file.
Defines | |
#define | HUGE_VAL 9999999999999.0 |
Functions | |
int | Vect_find_node (struct Map_info *Map, double ux, double uy, double uz, double maxdist, int with_z) |
find nearest node | |
int | Vect_find_line (struct Map_info *map, double ux, double uy, double uz, int type, double maxdist, int with_z, int exclude) |
find nearest line | |
int | Vect_find_area (struct Map_info *Map, double x, double y) |
find area | |
int | Vect_find_island (struct Map_info *Map, double x, double y) |
find island |
int Vect_find_area | ( | struct Map_info * | map, | |
double | x, | |||
double | y | |||
) |
find area
Map_info | structure, ux, uy |
Definition at line 191 of file find.c.
References Vect_new_list(), Vect_point_in_area(), and Vect_select_areas_by_box().
Referenced by V2_write_line_nat(), Vect_attach_centroids(), Vect_build_nat(), Vect_overlay_and(), Vect_select_areas_by_polygon(), and Vect_tin_get_z().
int Vect_find_island | ( | struct Map_info * | map, | |
double | x, | |||
double | y | |||
) |
find island
map | vector | |
ux | ||
uy |
Definition at line 236 of file find.c.
References Vect_get_isle_points(), Vect_new_line_struct(), Vect_new_list(), Vect_point_in_island(), and Vect_select_isles_by_box().
int Vect_find_line | ( | struct Map_info * | map, | |
double | ux, | |||
double | uy, | |||
double | uz, | |||
int | type, | |||
double | maxdist, | |||
int | with_z, | |||
int | exclude | |||
) |
find nearest line
Map_info | structure, ux, uy, uz, type = GV_LINE, GV_POIN, GV_BOUNDARY or GV_CENTROID if only want to search certain types of lines or -1 if search all lines, maxdist = max distance from the line, with_z - use z coordinate (3D search) |
Definition at line 103 of file find.c.
References HUGE_VAL, Vect_destroy_list(), Vect_line_distance(), Vect_new_line_struct(), Vect_new_list(), Vect_read_line(), and Vect_select_lines_by_box().
Referenced by Vect_net_nearest_nodes().
int Vect_find_node | ( | struct Map_info * | Map, | |
double | ux, | |||
double | uy, | |||
double | uz, | |||
double | maxdist, | |||
int | with_z | |||
) |
find nearest node
Map_info | structure, ux, uy, uz, maxdist = max distance from the line, with_z - use z coordinate (3D search) |
Definition at line 36 of file find.c.
References HUGE_VAL, Vect_get_node_coor(), Vect_new_list(), Vect_points_distance(), and Vect_select_nodes_by_box().
Referenced by Vect_overlay_and().