Hi,
You need to follow these steps:
1. Create empty network
> gnmmanage.exe create -f GNMFile -t_srs "EPSG:4326" -dsco
"net_name=my_network_1" C:\tmp\gnmnetwork
2. Load your data
> gnmmanage.exe import lines.shp -l lines C:\tmp\gnmnetwork
Repeat for all your layers
3. Connect features to create network. Features identifiers set while
importing your spatial data. Use ogrinfo to check them.
> gnmmanage.exe connect 1 2 -1 C:\tmp\gnmnetwork
4. Perform shortest path using Dijkstra
> gnmanalyse.exe dijkstra 1 2 -ds shortestpath.shp -f "ESRI Shapefile"
-l shortestpath C:\tmp\gnmnetwork
Some links:
* https://trac.osgeo.org/gdal/wiki/geography_network_support
* https://nextgis.com/blog/gnm/ <https://nextgis.com/blog/gnm/>
* http://gsoc2014gnm.blogspot.com/
Best regards,
Dmitry
19.08.2020 07:31, marto salata пишет:
dear GDAL team,
how i can create a network using gnmmanage.exe from a polyline
shapefile, so i can perform a dijkstra with gnmanalyse.exe
best regards
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev