/*! \page gnm_utilities GNM Utility Programs There are several Geographical Network Model (GNM) utilities: */ /*! \page gnmmanage gnmmanage Manages networks \section gnmmanage_synopsis SYNOPSIS \verbatim gnmmanage [--help][-q][-quiet][--long-usage] [info] [create [-f format_name] [-t_srs srs_name] [-dsco NAME=VALUE]... ] [import src_dataset_name] [-l layer_name] [connect gfid_src gfid_tgt gfid_con [-c cost] [-ic inv_cost] [-dir dir]] [disconnect gfid_src gfid_tgt gfid_con] [rule rule_str] [autoconnect tolerance] [delete] [change [-bl gfid][-unbl gfid][-unblall]] gnm_name [layer [layer ...]] \endverbatim \section gnmmanage_description DESCRIPTION The gnmmanage program can perform various managing operations on geographical networks in GDAL. In addition to creating and deleting networks this includes capabilities of managing network's features, topology and rules.
info:
Different information about network: system and class layers, network metadata, network spatial reference.
create:
Create network.
-f format_name:
Output file format name.
-t_srs srs_name:
Spatial reference input.
-dsco NAME=VALUE:
Network creation option set as pair name=value.
import src_dataset_name:
Import layer with dataset name to copy.
-l layer_name:
Layer name in dataset. If unset, 0 layer is copied.
connect gfid_src gfid_tgt gfid_con:
Make a topological connection, where the gfid_src and gfid_tgt are vertexes and gfid_con is edge (gfid_con can be -1, so the system edge will be inserted).
-c cost -ic inv_cost -dir dir:
Manually assign the following values: the cost (weight), inverse cost and direction of the edge (optional).
disconnect gfid_src gfid_tgt gfid_con:
Removes the connection from the graph.
rule rule_str:
Creates a rule in the network by the given rule_str string.
autoconnect tolerance:
Create topology automatically with the given double tolerance and layer names. In no layer name provided all layers of network will be used.
delete:
Delete network.
change:
Change blocking state of network edges or vertices.
-bl gfid:
Block feature before the main operation. Blocking features are saved in the special layer.
-unbl gfid:
Unblock feature before the main operation.
-unblall:
Unblock all blocked features before the main operation.
gnm_name:
The network to work with (path and name).
layer:
The network layer name.
\if man \section gnmmanage_author AUTHORS Mikhail Gusev Dmitry Baryshnikov \endif */ /*! \page gnmanalyse gnmanalyse Analyses networks \section gnmanalyse_synopsis SYNOPSIS \verbatim gnmanalyse [--help][-q][-quiet][--long-usage] [dijkstra start_gfid end_gfid [[-alo NAME=VALUE] ...]]] [kpaths start_gfid end_gfid k [[-alo NAME=VALUE] ...]]] [resource [[-alo NAME=VALUE] ...]]] [-ds ds_name][-f ds_format][-l layer_name] [[-dsco NAME=VALUE] ...][-lco NAME=VALUE] gnm_name \endverbatim \section gnmanalyse_description DESCRIPTION The gnmanalyse program provides analysing capabilities of geographical networks in GDAL. The results of calculations are return in an OGRLayer format or as a console text output if such layer is undefined. All calculations are made considering the blocking state of features.
dijkstra start_gfid end_gfid:
Calculates the best path between two points using Dijkstra algorithm from start_gfid point to end_gfid point.
kpaths start_gfid end_gfid:
Calculates K shortest paths between two points using Yen's algorithm (which internally uses Dijkstra algorithm for single path calculating) from start_gfid point to end_gfid point.
resource:
Calculates the "resource distribution". The connected components search is performed using breadth-first search and starting from that features which are marked by rules as 'EMITTERS'.
-ds ds_name:
The name&path of the dataset to save the layer with resulting paths. Not need to be existed dataset.
-f ds_format:
Define this to set the format of newly created dataset.
-l layer_name:
The name of the resulting layer. If the layer exist already - it will be rewritten.
gnm_name:
The network to work with (path and name).
-dsco NAME=VALUE:
Dataset creation option (format specific)
-lco NAME=VALUE:
Layer creation option (format specific)
-alo NAME=VALUE:
Algorithm option (format specific)
\if man \section gnmanalyse_author AUTHORS Mikhail Gusev Dmitry Baryshnikov \endif */