|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
|
Vector library - related fns for vector network building. More...

Go to the source code of this file.
Functions | |
| int | Vect_net_ttb_build_graph (struct Map_info *Map, int ltype, int afield, int nfield, int tfield, int tucfield, const char *afcol, const char *abcol, const char *ncol, int geo, int algorithm) |
| Build network graph with turntable. | |
| int | Vect_net_build_graph (struct Map_info *Map, int ltype, int afield, int nfield, const char *afcol, const char *abcol, const char *ncol, int geo, int version) |
| Build network graph. | |
Vector library - related fns for vector network building.
Higher level functions for reading/writing/manipulating vectors.
(C) 2001-2009, 2014 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file net_build.c.
| int Vect_net_build_graph | ( | struct Map_info * | Map, |
| int | ltype, | ||
| int | afield, | ||
| int | nfield, | ||
| const char * | afcol, | ||
| const char * | abcol, | ||
| const char * | ncol, | ||
| int | geo, | ||
| int | version | ||
| ) |
Build network graph.
Internal format for edge costs is integer, costs are multiplied before conversion to int by 1000 and for lengths LL without geo flag by
| Map | vector map |
| ltype | line type for arcs |
| afield | arc costs field (if 0, use length) |
| nfield | node costs field (if 0, do not use node costs) |
| afcol | column with forward costs for arc |
| abcol | column with backward costs for arc (if NULL, back costs = forward costs), |
| ncol | column with costs for nodes (if NULL, do not use node costs), |
| geo | use geodesic calculation for length (LL), |
| version | graph version to create (1, 2, 3) |
Definition at line 703 of file net_build.c.
References _, boxlist::box, DB_C_TYPE_DOUBLE, DB_C_TYPE_INT, db_CatValArray_free(), db_CatValArray_get_value_double(), db_CatValArray_get_value_int(), db_CatValArray_init(), db_close_database_shutdown_driver(), db_free_column(), db_get_column(), db_get_column_sqltype(), db_init_handle(), db_init_string(), DB_OK, db_select_CatValArray(), db_sqltype_to_Ctype(), db_start_driver_open_database(), dglAddEdge(), dglFlatten(), dglGetNode(), dglInitialize(), dglInitializeSPCache(), dglNodeSet_Attr(), G_debug(), G_fatal_error(), G_malloc, G_message(), G_percent(), G_projection(), G_warning(), GV_BOUNDARY, GV_LINE, GV_POINT, NULL, Vect_cat_get(), Vect_destroy_boxlist(), Vect_destroy_field_info(), Vect_get_field(), Vect_get_line_nodes(), Vect_get_node_coor(), Vect_get_num_lines(), Vect_get_num_nodes(), Vect_line_geodesic_length(), Vect_line_length(), Vect_new_boxlist(), Vect_new_cats_struct(), Vect_new_line_struct(), Vect_read_line(), Vect_select_lines_by_box(), and x.
| int Vect_net_ttb_build_graph | ( | struct Map_info * | Map, |
| int | ltype, | ||
| int | afield, | ||
| int | nfield, | ||
| int | tfield, | ||
| int | tucfield, | ||
| const char * | afcol, | ||
| const char * | abcol, | ||
| const char * | ncol, | ||
| int | geo, | ||
| int | algorithm | ||
| ) |
Build network graph with turntable.
Internal format for edge costs is integer, costs are multiplied before conversion to int by 1000 and for lengths LL without geo flag by
| Map | vector map |
| ltype | line type for arcs |
| afield | arc costs field (if 0, use length) |
| nfield | node costs field (if 0, do not use node costs) |
| tfield | field where turntable is attached |
| tucfield | field with unique categories used in the turntable |
| afcol | column with forward costs for arc |
| abcol | column with backward costs for arc (if NULL, back costs = forward costs) |
| ncol | column with costs for nodes (if NULL, do not use node costs) |
| geo | use geodesic calculation for length (LL) |
| algorithm | not used (in future code for algorithm) |
Definition at line 48 of file net_build.c.
References _, boxlist::box, DB_C_TYPE_DOUBLE, DB_C_TYPE_INT, db_CatValArray_free(), db_CatValArray_get_value_double(), db_CatValArray_get_value_int(), db_CatValArray_init(), db_close_database_shutdown_driver(), db_free_column(), db_get_column(), db_get_column_sqltype(), db_init_handle(), db_init_string(), DB_OK, db_select_CatValArray(), db_sqltype_to_Ctype(), db_start_driver_open_database(), dglAddEdge(), dglFlatten(), dglGetNode(), dglInitialize(), dglInitializeSPCache(), dglNodeSet_Attr(), G_debug(), G_fatal_error(), G_malloc, G_message(), G_percent(), G_projection(), G_warning(), GV_BOUNDARY, GV_LINE, GV_POINT, NULL, t, Vect_cat_get(), Vect_cidx_find_next(), Vect_cidx_get_field_index(), Vect_destroy_boxlist(), Vect_destroy_cats_struct(), Vect_destroy_field_info(), Vect_destroy_line_struct(), Vect_find_node(), Vect_get_field(), Vect_get_line_nodes(), Vect_get_node_coor(), Vect_get_node_line(), Vect_get_node_n_lines(), Vect_get_num_lines(), Vect_get_num_nodes(), Vect_line_geodesic_length(), Vect_line_length(), Vect_new_boxlist(), Vect_new_cats_struct(), Vect_new_line_struct(), Vect_read_line(), Vect_select_lines_by_box(), WITHOUT_Z, line_pnts::x, x, line_pnts::y, and line_pnts::z.