20 static void check_level(
struct Map_info *Map)
23 G_fatal_error(
_(
"Vector map <%s> is not open at topological level"),
353 G_warning(
_(
"Areas not available for line %d"), line);
358 G_warning(
_(
"Line %d is not a boundary"), line);
456 G_debug(1,
"Vect_set_updated(): name = '%s' enabled = %d", Map->
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
const char * Vect_get_full_name(struct Map_info *)
Get fully qualified name of vector map.
int Vect_line_alive(struct Map_info *, int)
Check if feature is alive or dead (topological level required)
#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.
char * name
Map name (for 4.0)
struct dblinks * dblnk
Array of DB links.
struct Plus_head plus
Plus info (topology, version, ...)
void * topo
Topology info.
Topological feature - node.
plus_t n_lines
Number of attached lines (size of lines, angle)
float * angles
List of angles of connected lines.
plus_t * lines
List of connected lines.
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.
int do_uplist
Indicates if the list of updated features is maintained.
plus_t n_klines
Current number of kernels.
struct P_line ** Line
Array of vector geometries.
plus_t n_lines
Current number of lines.
plus_t n_plines
Current number of points.
plus_t n_nodes
Current number of topological features derived from vector geometries.
plus_t n_volumes
Current number of volumes.
int n_upnodes
number of updated nodes
int * upnodes
Array of updated nodes.
plus_t n_blines
Current number of boundaries.
plus_t n_clines
Current number of centroids.
plus_t n_isles
Current number of isles.
int * uplines
Array of updated lines.
plus_t n_holes
Current number of holes.
struct Plus_head::@10 uplist
List of updated lines/nodes.
off_t * uplines_offset
Array of updated lines - offset.
int n_uplines
Number of updated lines.
struct P_node ** Node
Array of nodes.
plus_t n_areas
Current number of areas.
plus_t n_flines
Current number of faces.
plus_t n_llines
Current number of lines.
int n_fields
Number of available layers (old: fields)