<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>You need to follow these steps:</p>
<p>1. Create empty network</p>
<p>> gnmmanage.exe create -f GNMFile -t_srs "EPSG:4326" -dsco
"net_name=my_network_1" C:\tmp\gnmnetwork</p>
<p>2. Load your data</p>
<p>> gnmmanage.exe import lines.shp -l lines C:\tmp\gnmnetwork</p>
<p>Repeat for all your layers<br>
</p>
<p>3. Connect features to create network. Features identifiers set
while importing your spatial data. Use ogrinfo to check them.<br>
</p>
<p>> gnmmanage.exe connect 1 2 -1 C:\tmp\gnmnetwork</p>
<p>4. Perform shortest path using Dijkstra<br>
</p>
<p>> gnmanalyse.exe dijkstra 1 2 -ds shortestpath.shp -f "ESRI
Shapefile" -l shortestpath C:\tmp\gnmnetwork</p>
<p><br>
</p>
<p>Some links:</p>
<p>* <a
href="https://trac.osgeo.org/gdal/wiki/geography_network_support">https://trac.osgeo.org/gdal/wiki/geography_network_support</a></p>
<p><a href="https://nextgis.com/blog/gnm/">*
https://nextgis.com/blog/gnm/</a></p>
<p>* <a href="http://gsoc2014gnm.blogspot.com/">http://gsoc2014gnm.blogspot.com/</a></p>
<pre class="moz-signature" cols="72">Best regards,
Dmitry</pre>
<div class="moz-cite-prefix">19.08.2020 07:31, marto salata пишет:<br>
</div>
<blockquote type="cite"
cite="mid:CAFTz8=-VYuJ5fZcgebG7zLBM9rxO3qUnrds-ebcDThWNCx7Q=A@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">dear GDAL team,
<div>how i can create a network using gnmmanage.exe from a
polyline shapefile, so i can perform a dijkstra with
gnmanalyse.exe</div>
<div><br>
</div>
<div>best regards</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
</blockquote>
</body>
</html>