74 G_debug(5,
"dig_node_alloc_line(): add = %d", add);
248 G_debug(5,
"dig_alloc_isle():");
347 points->
x = (
double *)p;
355 points->
y = (
double *)p;
363 points->
z = (
double *)p;
391 cats->
field = (
int *)p;
398 cats->
cat = (
int *)p;
419 num =
area->alloc_lines + add;
426 area->alloc_lines = num;
445 G_debug(5,
"dig_area_alloc_isle(): add = %d", add);
446 num =
area->alloc_isles + add;
453 area->alloc_isles = num;
471 G_debug(5,
"dig_isle_alloc_line():");
void G_zero(void *, int)
Zero out a buffer, buf, of length i.
void G_free(void *)
Free allocated memory.
void G_warning(const char *,...) __attribute__((format(printf
int G_debug(int, const char *,...) __attribute__((format(printf
void * dig__alloc_space(int, int *, int, void *, int)
plus_t * isles
1st generation interior islands
plus_t * lines
List of boundary lines.
plus_t alloc_lines
Allocated space for lines.
plus_t alloc_isles
Allocated space for isles.
plus_t * lines
List of boundary lines.
plus_t alloc_lines
Allocated space for lines.
plus_t area
Area it exists w/in, if any.
void * topo
Topology info.
Topological feature - node.
plus_t alloc_lines
Allocated space for lines.
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.
Basic topology-related info.
plus_t alloc_lines
Number of allocated lines.
struct P_line ** Line
Array of vector geometries.
plus_t alloc_areas
Number of allocated areas.
struct P_area ** Area
Array of areas.
plus_t alloc_isles
Number of allocated isles.
plus_t alloc_nodes
Number of allocated nodes.
struct P_isle ** Isle
Array of isles.
struct P_node ** Node
Array of nodes.
void dig_free_isle(struct P_isle *Isle)
Free isle structure.
struct P_isle * dig_alloc_isle(void)
Allocate new isle structure.
int dig_area_alloc_line(struct P_area *area, int add)
allocate space in P_area for add new lines
int dig_alloc_points(struct line_pnts *points, int num)
allocate room for 'num' X and Y arrays in struct line_pnts
void * dig_alloc_topo(char type)
Allocate new topo struct.
int dig_alloc_isles(struct Plus_head *Plus, int add)
Reallocate array of pointers to isles.
int dig_alloc_areas(struct Plus_head *Plus, int add)
Reallocate array of pointers to areas.
int dig_area_alloc_isle(struct P_area *area, int add)
Allocate space in P_area for add new isles.
int dig_alloc_nodes(struct Plus_head *Plus, int add)
Reallocate array of pointers to nodes.
int dig_alloc_lines(struct Plus_head *Plus, int add)
Reallocate array of pointers to lines.
int dig_node_alloc_line(struct P_node *node, int add)
Allocate space in P_node struct.
void dig_free_node(struct P_node *Node)
Free node structure.
int dig_alloc_cats(struct line_cats *cats, int num)
Allocate room for 'num' fields and category arrays in struct line_cats.
void dig_free_line(struct P_line *Line)
Free line structure.
struct P_area * dig_alloc_area(void)
Allocate new area structure.
void dig_free_area(struct P_area *Area)
Free area structure.
struct P_line * dig_alloc_line(void)
Allocate new line structure.
int dig_isle_alloc_line(struct P_isle *isle, int add)
Allocate space in P_isle for add new lines.
int dig_out_of_memory(void)
For now just print message and return error code.
struct P_node * dig_alloc_node(void)
Allocate new node structure.
int * field
Array of layers (fields)
int alloc_cats
Allocated space for categories.
int * cat
Array of categories.
Feature geometry info - coordinates.
double * y
Array of Y coordinates.
int alloc_points
Allocated space for points.
double * x
Array of X coordinates.
double * z
Array of Z coordinates.