23 G_fatal_error(
_(
"Vector map <%s> is not open at topological level"),
36 return (
Map->plus.n_nodes);
52 num +=
Map->plus.n_plines;
54 num +=
Map->plus.n_llines;
56 num +=
Map->plus.n_blines;
58 num +=
Map->plus.n_clines;
60 num +=
Map->plus.n_flines;
62 num +=
Map->plus.n_klines;
77 return (
Map->plus.n_lines);
89 return (
Map->plus.n_areas);
101 return (
Map->plus.n_klines);
113 return (
Map->plus.n_flines);
125 return (
Map->plus.n_volumes);
137 return (
Map->plus.n_isles);
149 return (
Map->plus.n_holes);
162 return (
Map->dblnk->n_fields);
177 return (
Map->plus.uplist.n_uplines);
193 return (
Map->plus.uplist.uplines[idx]);
209 return (
Map->plus.uplist.uplines_offset[idx]);
221 return (
Map->plus.uplist.n_upnodes);
243 return (
Map->plus.uplist.upnodes[idx]);
261 return (
Map->plus.Line[line]->type);
284 Node =
Map->plus.Node[num];
353 if (!
Map->plus.Line[line]->topo) {
354 G_warning(
_(
"Areas not available for line %d"), line);
359 G_warning(
_(
"Line %d is not a boundary"), line);
363 topo = (
struct P_topo_b *)
Map->plus.Line[line]->topo;
385 return (
Map->plus.Node[node]->n_lines);
401 return (
Map->plus.Node[node]->lines[line]);
417 return (
Map->plus.Node[node]->angles[line]);
439 topo = (
struct P_topo_c *)
Map->plus.Line[centroid]->topo;
457 G_debug(1,
"Vect_set_updated(): name = '%s' enabled = %d",
Map->
name,
AMI_err name(char **stream_name)
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
void G_warning(const char *,...) __attribute__((format(printf
int G_debug(int, const char *,...) __attribute__((format(printf
int Vect_line_alive(struct Map_info *, int)
Check if feature is alive or dead (topological level required)
const char * Vect_get_full_name(struct Map_info *)
Get fully qualified name of vector map.
#define GV_POINT
Feature types used in memory on run time (may change)
void dig_node_reset_updated(struct Plus_head *)
Reset number of updated nodes.
void dig_line_reset_updated(struct Plus_head *)
Reset number of updated lines.
plus_t Vect_get_num_faces(struct Map_info *Map)
Get number of faces in vector map.
plus_t Vect_get_num_primitives(struct Map_info *Map, int type)
Get number of primitives in vector map.
void Vect_reset_updated(struct Map_info *Map)
Reset list of updated lines/nodes.
void Vect_set_updated(struct Map_info *Map, int enable)
Enable/disable maintenance of list of updated lines/nodes.
plus_t Vect_get_num_kernels(struct Map_info *Map)
Fetch number of kernels in vector map.
int Vect_get_node_line(struct Map_info *Map, int node, int line)
Get line id for node line index.
int Vect_get_node_n_lines(struct Map_info *Map, int node)
Get number of lines for node.
plus_t Vect_get_num_nodes(struct Map_info *Map)
Get number of nodes in vector map.
plus_t Vect_get_num_lines(struct Map_info *Map)
Fetch number of features (points, lines, boundaries, centroids) in vector map.
int Vect_get_num_updated_nodes(struct Map_info *Map)
Get number of updated nodes.
int Vect_get_centroid_area(struct Map_info *Map, int centroid)
Get area id the centroid is within.
int Vect_get_updated_node(struct Map_info *Map, int idx)
Get updated (modified) node by index.
plus_t Vect_get_num_areas(struct Map_info *Map)
Get number of areas in vector map.
plus_t Vect_get_num_volumes(struct Map_info *Map)
Fetch number of volumes in vector map.
int Vect_get_updated_line(struct Map_info *Map, int idx)
Get updated line by index.
off_t Vect_get_updated_line_offset(struct Map_info *Map, int idx)
Get updated line offset by index.
plus_t Vect_get_num_holes(struct Map_info *Map)
Fetch number of holes in vector map.
int Vect_get_line_nodes(struct Map_info *Map, int line, int *n1, int *n2)
Get line nodes.
int Vect_get_line_type(struct Map_info *Map, int line)
Get line type.
int Vect_get_num_updated_lines(struct Map_info *Map)
Get number of updated features.
int Vect_get_num_dblinks(struct Map_info *Map)
Get number of defined dblinks.
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_node_coor(struct Map_info *Map, int num, double *x, double *y, double *z)
Get node coordinates.
int Vect_get_line_areas(struct Map_info *Map, int line, int *left, int *right)
Get area id on the left and right side of the boundary.
plus_t Vect_get_num_islands(struct Map_info *Map)
Get number of islands in vector map.
Topological feature - node.
double z
Z coordinate (used only for 3D data)
plus_t left
Area number to the left, negative for isle.
plus_t right
Area number to the right, negative for isle.
plus_t area
Area number, negative for duplicate centroid.
Basic topology-related info.