<div dir="ltr"><div dir="ltr">Krishna and list,<br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Feb 5, 2025 at 9:10 AM krishna Ayyala <<a href="mailto:ayyalakrishna@gmail.com">ayyalakrishna@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Chris,<div>I am attaching the sample data. I have downloaded the road network online which is an ESRI data. For this data, I am unable to run either shortest path (layer to point) tool or v.net.salesman tool. It is giving me errors. What corrections do I need to make to the network inorder to make this run?</div><div>Regards.</div></div></blockquote><div><br></div><div>I looked at your data very briefly.  Here is a zoomed in portion near one of your points:</div><div><br></div><div><img src="cid:ii_m6sh28zt3" alt="image.png" width="578" height="300"><br></div><div><br></div><div>Looking at the line layer, it doesn't look to me to be a network graph, that is:</div><div><ol><li>in a graph, all lines join at nodes - that is not the case in your data; I am not certain whether the various path algorithms require a pre-noded network or whether they will establish new nodes, so you may wish to investigate this issue further<br></li><ol><li>the north-south road immediately to the west of the point is not noded at the double line highway</li><li>the same north-south road ends at the smaller road that sort of parallels the highway to the north, but that parallel road is not noded where the north-south road joins it</li><li>etc<br></li></ol><li>you have some double-line roads, which are not wanted; I am reasonably confident you need to replace them with their "centreline" and then node that</li><li>there are duplicate lines, extra lines that don't end cleanly, don't end precisely on another line, etc, for example in this closeup of the west end of the highway:</li></ol><div><img src="cid:ii_m6shafle4" alt="image.png" width="578" height="300"><br></div><div><br></div></div><div> I suggest you have some work to do to clean up the extra linework, and then you may need to node the clean linework.<br></div><div><br></div><div>As to your points, at least the one shown above, it's not on top of a line. I suggest that, once you have a clean road system, you should at least ensure your points are on your roads, and you may need to create a node where the point touches the road line.</div><div><br></div><div>You may find these references useful.</div><div><br></div><div><a href="https://changelog.qgis.org/en/qgis/lesson/data-acquisition-18/detail/63/?q=9.2">https://changelog.qgis.org/en/qgis/lesson/data-acquisition-18/detail/63/?q=9.2</a></div><div><br></div><div><a href="https://docs.qgis.org/3.34/en/docs/user_manual/plugins/core_plugins/plugins_topology_checker.html">https://docs.qgis.org/3.34/en/docs/user_manual/plugins/core_plugins/plugins_topology_checker.html</a></div><div><br></div><div><a href="https://gis.stackexchange.com/questions/tagged/v.clean">https://gis.stackexchange.com/questions/tagged/v.clean</a></div><div><br></div><div><a href="https://docs.qgis.org/3.34/en/docs/training_manual/vector_analysis/network_analysis.html">https://docs.qgis.org/3.34/en/docs/training_manual/vector_analysis/network_analysis.html</a></div><div><br></div><div>If your road network includes one-way streets you have more work to do.  This reference may help:</div><div><br></div><div><a href="https://plugins.qgis.org/models/30/">https://plugins.qgis.org/models/30/</a></div><div><br></div><div>Good luck.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 4, 2025 at 2:47 PM chris hermansen <<a href="mailto:clhermansen@gmail.com" target="_blank">clhermansen@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Krishna and list,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 4, 2025 at 12:43 PM krishna Ayyala <<a href="mailto:ayyalakrishna@gmail.com" target="_blank">ayyalakrishna@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Chris,</div>Its nothing to do with the number of points. I got the same error when I ran with 160 points.I also went to the study manual of v.net.salesman. The network and points are as per their guidelines.<div><img src="cid:ii_m6qy3xbw2" alt="image.png" width="433" height="276" style="margin-right: 0px;"><br></div></div></blockquote><div><br></div><div>These are different errors.  You are supplying at least one incorrect input argument (see the <points> is not a valid parameter) and your input file "outputla.. etc..." is not found.</div><div><br></div><div>I don't know what else to say, these messages seem pretty self-explanatory and there's no other info here to work with.<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 4, 2025 at 1:08 PM chris hermansen <<a href="mailto:clhermansen@gmail.com" target="_blank">clhermansen@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Krishna and list,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 4, 2025 at 11:49 AM krishna Ayyala <<a href="mailto:ayyalakrishna@gmail.com" target="_blank">ayyalakrishna@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I also ran v.clean on the network. Then ran v.net.salesman on the cleaned network. That did not help. Getting the same error message. Is there a fix for this? I wish to run 

v.net.salesman without any errors.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 4, 2025 at 12:15 PM krishna Ayyala <<a href="mailto:ayyalakrishna@gmail.com" target="_blank">ayyalakrishna@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Chris,<div>Again thanks for your reply. I am not sure if my network is proper. I downloaded this from an online data source. How to fix it, if there are any errors? Are there any tools in qgis to fix this?</div><div><br></div><div>Regards.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 4, 2025 at 12:12 PM chris hermansen <<a href="mailto:clhermansen@gmail.com" target="_blank">clhermansen@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div>Krishna and list,<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 4, 2025, 10:49 krishna Ayyala <<a href="mailto:ayyalakrishna@gmail.com" target="_blank">ayyalakrishna@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Chris,<div>Alternatively, I ran v.net.salesman. Even that is giving following error.</div><div><br></div><div><img src="cid:ii_m6qu1brb2" alt="image.png" width="401" height="110"><br></div><div><br></div><div><img src="cid:ii_m6qu26uf3" alt="image.png" width="356" height="217" style="margin-right: 0px;"><br></div><div><br></div></div></blockquote></div></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr" class="gmail_signature"><div dir="ltr"></div></div></div></blockquote></div></blockquote></div></blockquote></div></div></div></blockquote></div></blockquote></div></blockquote><div><br></div><div>Look at the message - Number of cities: 0 / ERROR: Not enough cities (< 2)</div><div><br></div><div>This tells you that your data is not properly set up.<br></div><div><br></div><div></div><div>Study the manual page for v.net.salesman here: <a href="https://grass.osgeo.org/grass-stable/manuals/v.net.salesman.html" target="_blank">https://grass.osgeo.org/grass-stable/manuals/v.net.salesman.html</a></div><div><br></div><div>There is a sample of v.net.salesman usage there which explains clearly how to set things up.  Note creation of cities to visit and use of <a href="http://v.net" target="_blank">v.net</a> to create the network prior to running v.net.salesman.<br></div></div><div><br clear="all"></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Chris Hermansen · clhermansen "at" gmail "dot" com<br><br>C'est ma façon de parler.</div></div></div>
</blockquote></div>
</blockquote></div><div><br clear="all"></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Chris Hermansen · clhermansen "at" gmail "dot" com<br><br>C'est ma façon de parler.</div></div></div>
</blockquote></div>
</blockquote></div><div><br clear="all"></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Chris Hermansen · clhermansen "at" gmail "dot" com<br><br>C'est ma façon de parler.</div></div></div>