20 static void check_level(
const struct Map_info *Map)
23 G_fatal_error(
_(
"Vector map <%s> is not open at topological level"),
357 G_warning(
_(
"Areas not available for line %d"), line);
362 G_warning(
_(
"Line %d is not a boundary"), line);
371 *right = topo->
right;
445 G_fatal_error(
_(
"Topology info not available for feature %d"), centroid);
460 G_debug(1,
"Vect_set_updated(): name = '%s' enabled = %d", Map->
name, enable);
plus_t Vect_get_num_kernels(const struct Map_info *Map)
Fetch number of kernels in vector map.
int Vect_get_num_updated_nodes(const struct Map_info *Map)
Get number of updated nodes.
plus_t n_areas
Current number of areas.
plus_t Vect_get_num_areas(const struct Map_info *Map)
Get number of areas in vector map.
char * name
Map name (for 4.0)
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
plus_t area
Area number, negative for duplicate centroid.
int Vect_get_num_updated_lines(const struct Map_info *Map)
Get number of updated features.
int n_uplines
Number of updated lines.
plus_t n_klines
Current number of kernels.
plus_t n_holes
Current number of holes.
int n_fields
Number of available layers (old: fields)
int Vect_get_node_coor(const struct Map_info *Map, int num, double *x, double *y, double *z)
Get node coordinates.
struct P_line ** Line
Array of vector geometries.
int Vect_get_node_n_lines(const struct Map_info *Map, int node)
Get number of lines for node.
plus_t n_plines
Current number of points.
plus_t right
Area number to the right, negative for isle.
int * uplines
Array of updated lines.
struct P_node ** Node
Array of nodes.
plus_t n_lines
Number of attached lines (size of lines, angle)
void Vect_reset_updated(struct Map_info *Map)
Reset list of updated lines/nodes.
plus_t left
Area number to the left, negative for isle.
int Vect_get_num_dblinks(const struct Map_info *Map)
Get number of defined dblinks.
int Vect_get_centroid_area(const struct Map_info *Map, int centroid)
Get area id the centroid is within.
plus_t * lines
List of connected lines.
plus_t n_isles
Current number of isles.
plus_t Vect_get_num_volumes(const struct Map_info *Map)
Fetch number of volumes in vector map.
int do_uplist
Indicates if the list of updated features is maintained.
int Vect_get_updated_node(const struct Map_info *Map, int idx)
Get updated (modified) node by index.
#define GV_POINT
Feature types used in memory on run time (may change)
plus_t n_lines
Current number of lines.
float Vect_get_node_line_angle(const struct Map_info *Map, int node, int line)
Angle of segment of the line connected to the node.
void dig_node_reset_updated(struct Plus_head *)
Reset number of updated nodes.
plus_t Vect_get_num_islands(const struct Map_info *Map)
Get number of islands in vector map.
double z
Z coordinate (used only for 3D data)
off_t * uplines_offset
Array of updated lines - offset.
Basic topology-related info.
plus_t Vect_get_num_primitives(const struct Map_info *Map, int type)
Get number of primitives in vector map.
int Vect_get_node_line(const struct Map_info *Map, int node, int line)
Get line id for node line index.
void * topo
Topology info.
int n_upnodes
number of updated nodes
float * angles
List of angles of connected lines.
int Vect_get_updated_line(const struct Map_info *Map, int idx)
Get updated line by index.
struct Plus_head plus
Plus info (topology, version, ...)
int Vect_get_line_type(const struct Map_info *Map, int line)
Get line type.
Topological feature - node.
plus_t n_flines
Current number of faces.
plus_t Vect_get_num_nodes(const struct Map_info *Map)
Get number of nodes in vector map.
plus_t Vect_get_num_faces(const struct Map_info *Map)
Get number of faces in vector map.
int Vect_get_line_nodes(const struct Map_info *Map, int line, int *n1, int *n2)
Get line nodes.
plus_t n_llines
Current number of lines.
struct dblinks * dblnk
Array of DB links.
void Vect_set_updated(struct Map_info *Map, int enable)
Enable/disable maintanance of list of updated lines/nodes.
plus_t Vect_get_num_holes(const struct Map_info *Map)
Fetch number of holes in vector map.
void dig_line_reset_updated(struct Plus_head *)
Reset number of updated lines.
int Vect_get_line_areas(const struct Map_info *Map, int line, int *left, int *right)
Get area id on the left and right side of the boundary.
const char * Vect_get_full_name(const struct Map_info *)
Get fully qualified name of vector map.
plus_t Vect_get_num_lines(const struct Map_info *Map)
Fetch number of features (points, lines, boundaries, centroids) in vector map.
void G_warning(const char *,...) __attribute__((format(printf
int Vect_line_alive(const struct Map_info *, int)
Check if feature is alive or dead (topological level required)
plus_t n_clines
Current number of centroids.
int * upnodes
Array of updated nodes.
struct Plus_head::@10 uplist
List of updated lines/nodes.
plus_t n_blines
Current number of boundaries.
int G_debug(int, const char *,...) __attribute__((format(printf
plus_t n_volumes
Current number of volumes.
plus_t n_nodes
Current number of topological features derived from vector geometries.
off_t Vect_get_updated_line_offset(const struct Map_info *Map, int idx)
Get updated line offset by index.