---
name: "gnmanalyse"
section: "1"
platform: "linux"
package: "gdal"
version: "3.13.3-6"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/gnmanalyse"
---

# gnmanalyse(1)

Analyses networks

## NAME

gnmanalyse - Analyses networks

## SYNOPSIS

```
Usage: gnmanalyse [--help][--help-general][-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>
```

## 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.

- **--help**

  Show this help message and exit

- **--help-general**

  Gives a brief usage message for the generic GDAL commandline options and exit.

- **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'.

- **-d \<ds\_name\>**

  The name and 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)

## RETURN STATUS CODE

The program returns status code 0 in case of success, and non-zero in case of error (non-blocking errors emitted as warnings are considered as a successful execution).

## AUTHOR

Mikhail Gusev \<gusevmihs@gmail.com\>, Dmitry Baryshnikov \<polimax@mail.ru\>

## COPYRIGHT

1998-2026
