GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
|
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 UNUSED) |
Build network graph with turntable. More... | |
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. More... | |
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 695 of file net_build.c.
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 | UNUSED | ||
) |
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 49 of file net_build.c.