[Qgis-user] Least Cost Path

chris hermansen clhermansen at gmail.com
Tue Feb 4 12:08:28 PST 2025


Krishna and list,

On Tue, Feb 4, 2025 at 11:49 AM krishna Ayyala <ayyalakrishna at gmail.com>
wrote:

> 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.
>
> On Tue, Feb 4, 2025 at 12:15 PM krishna Ayyala <ayyalakrishna at gmail.com>
> wrote:
>
>> Chris,
>> 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?
>>
>> Regards.
>>
>> On Tue, Feb 4, 2025 at 12:12 PM chris hermansen <clhermansen at gmail.com>
>> wrote:
>>
>>> Krishna and list,
>>>
>>> On Tue, Feb 4, 2025, 10:49 krishna Ayyala <ayyalakrishna at gmail.com>
>>> wrote:
>>>
>>>> Chris,
>>>> Alternatively, I ran v.net.salesman. Even that is giving following
>>>> error.
>>>>
>>>> [image: image.png]
>>>>
>>>> [image: image.png]
>>>>
>>>>
Look at the message - Number of cities: 0 / ERROR: Not enough cities (< 2)

This tells you that your data is not properly set up.

Study the manual page for v.net.salesman here:
https://grass.osgeo.org/grass-stable/manuals/v.net.salesman.html

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 v.net to
create the network prior to running v.net.salesman.


-- 
Chris Hermansen · clhermansen "at" gmail "dot" com

C'est ma façon de parler.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250204/e23b6d97/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 11390 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250204/e23b6d97/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 35158 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250204/e23b6d97/attachment-0003.png>


More information about the QGIS-User mailing list