GNMANALYSE(1)
π¦ GNMANALYSE(1) β the girlies' guide to network analysis
okay so bestie, this is gnmanalyse from the GDAL manual, and I'm gonna walk you through it like we're texting at 2am π it's literally a program that does network analysis β think paths between points, shortest routes, that whole vibe. slay.
β¨ NAME β¨
gnmanalyse β analyses networks. that's it, that's the whole job. iconic.
πΈ SYNOPSIS πΈ
okay so here's the exact shape of the invocation, don't @ me, just copy it:
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>
look at all those nested brackets π«Ά everything in there is optional-ish, but <gnm_name> at the end is the main character β that one you actually need.
π DESCRIPTION π
so gnmanalyse gives you the analysing capabilities of geographical networks in GDAL. the results of calculations get returned in an OGRLayer format, or as console text output if such a layer is undefined. and the important bit β all calculations are made considering the blocking state of features, so blocked stuff stays blocked, periodt.
π dijkstra <start_gfid> <end_gfid>
calculates the best path between two points using the Dijkstra algorithm, going from start_gfid point to end_gfid point. classic, reliable, no cap.
π 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, iykyk β from start_gfid point to end_gfid point. so you get options, not just one route. we love choices β¨
π resource
calculates the "resource distribution". the connected components search is performed using breadth-first search, starting from that features which are marked by rules as 'EMITTERS'. very much the main character energy of the network, fr fr.
π OPTIONS π
-d <ds_name>β the name and path of the dataset to save the layer with resulting paths. not need to be existed dataset, so don't stress about pre-creating it π«Ά-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, so heads up, your old layer is gone-gone π<gnm_name>β the network to work with (path and name). the whole reason we're here.-dsco NAME=VALUEβ dataset creation option (format specific).-lco NAME=VALUEβ layer creation option (format specific).-alo NAME=VALUEβ algorithm option (format specific).
ngl bestie, watch that -l one. "will be rewritten" is not a drill, it's a whole personality. back up your layer if you care about it π
π AUTHOR π
Mikhail Gusev <gusevmihs@gmail.com>, Dmitry Baryshnikov <polimax@mail.ru> β legends, both of them π
β COPYRIGHT β
1998-2026 β yeah, a whole era. periodt.
and that's the page! π this was GNMANALYSE(1) from the GDAL manual, dated Jan 08, 2026. go analyse some networks bestie, you're gonna ate π
β¨
π¦ where this page comes from
- epel 9: gdal3.4 3.4.3-5.el9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms