<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
/* Style Definitions */
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Arial",sans-serif;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Arial",sans-serif;
        mso-fareast-language:EN-AU;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-AU" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoPlainText"><span style="mso-fareast-language:EN-US">Thanks Moritz,<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span style="mso-fareast-language:EN-US">What would be the reason behind the point layer switching back to layer 1 in v.net.distance if I have linked the point and network?<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span style="mso-fareast-language:EN-US">I'll test your two options in the meantime, but it still switches back to layer 1.<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><img width="361" height="163" style="width:3.7604in;height:1.6979in" id="Picture_x0020_1" src="cid:image001.png@01D7E05F.93540130"><span style="mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoPlainText"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span style="mso-fareast-language:EN-US">Regards,<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoPlainText">JOSHUA GEOGHEGAN | GIS Specialist | MORNINGTON PENINSULA SHIRE
<o:p></o:p></p>
<p class="MsoPlainText">Phone: 03 5950 1321 <o:p></o:p></p>
<p class="MsoPlainText">Email: joshua.geoghegan@mornpen.vic.gov.au<o:p></o:p></p>
<p class="MsoPlainText">Private Bag 1000, Rosebud VIC 3939 | 90 Besgrove Street, Rosebud VIC 3939<o:p></o:p></p>
<p class="MsoPlainText">www.mornpen.vic.gov.au | Twitter @MornPenShire | Facebook @MornPenShire<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Mornington Peninsula Shire acknowledges and pays respect to the Bunurong/Boon Wurrung people,<o:p></o:p></p>
<p class="MsoPlainText"><span style="mso-fareast-language:EN-US">the Traditional Custodians of these lands and waters.</span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="EN-US">-----Original Message-----<br>
From: Moritz Lennert <mlennert@club.worldonline.be> <br>
Sent: Monday, 22 November 2021 6:32 PM<br>
To: grass-user@lists.osgeo.org; Joshua Geoghegan <joshua.geoghegan@mornpen.vic.gov.au><br>
Subject: Re: [GRASS-user] Grass Graphic Model v.net.distance Not Accepting point layer in From or To fields</span></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Hi Joshua,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Le 21 novembre 2021 22:12:42 GMT+01:00, Joshua Geoghegan <<a href="mailto:joshua.geoghegan@mornpen.vic.gov.au"><span style="color:windowtext;text-decoration:none">joshua.geoghegan@mornpen.vic.gov.au</span></a>> a écrit :<o:p></o:p></p>
<p class="MsoPlainText">>Hi there,<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">>I have been stuck on a problem and I was hoping you could help, as I had no luck on GIS Stack Exchange.<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">>I have a point and network layer connected in Grass GIS via the graphic modeler.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">What exactly do you mean by 'the graphic modeler'. I assume you connect the two using v.net ?
<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">> I am trying to find the shortest path between the first point (ROUND=0) and every other point (ROUND != 0) on the same point layer. For some reason I can select this layer (layer 2) in both From and To tabs and add category 1-500 (which
 is more than the number of points), but when I try the where clause and test for values in the ROUND field on the SQL Builder the results show up as '', even though the imported shp file has values. When I hit OK and come back into the form it has reverted
 back to layer 1 in the From and To tabs, which is road network layer.<o:p></o:p></p>
<p class="MsoPlainText">><o:p> </o:p></p>
<p class="MsoPlainText">>What could be the issue here?<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">As the v.net man page states: "While the arcs created with v.net will retain any attribute information associated with the input vector line/boundary file in data layer 1, nodes created and stored in data layer 2 will not have any associated
 attribute information."<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">You have two options:<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">1) Find out what to the category number of the point is that has ROUND=0 and use that as from_cats, and all the others as to_cats.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">This could be done with v.db.select using columns=cat (assuming the column containing the cat values is called 'cat') and where=ROUND=0.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">2) Connect the attribute table of your original point map to the point layer of the connected network map using v.db.connect and the use the from_where and to_where parameters as you did.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">If any of that is not clear, don't hesitate to come back to us.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Moritz<o:p></o:p></p>
</div>
<table border="0" cellpadding="0" style="font-family:Arial;width:600px">
<tbody>
<tr>
<td colspan="2" style="padding:0cm 0cm 0cm 0cm;">
<p style="font-size: 7.0pt;word-spacing: -1px;"><br>
 <br>
DISCLAIMER: This email (and attachments) is for the intended recipient only and may contain privileged, confidential or copyright information. If received in error, please notify sender immediately and delete. Any other use is prohibited. Shire accepts no liability
 for damage caused by this email (and attachments) due to viruses, corruption, delay, interruption, unauthorised access or use. Views expressed are those of the individual and not necessarily Shire. Shire will only collect personal information from you with
 your prior consent, use it for the purpose collected or as reasonably expected and not disclose without consent, except if required by law/regulation. For further information see our privacy policy:
<br>
<img src="https://news.mornpen.vic.gov.au/arrow.png" width="10px" height="10px" alt="Arrow">
<a href="https://www.mornpen.vic.gov.au/privacystatement" style="font-size: 7.0pt;color: black;text-decoration: none">
mornpen.vic.gov.au/privacystatement</a> </p>
<img src="https://news.mornpen.vic.gov.au/envirostatement.png" width="600" height="27" alt="Consider the Environment">
</td>
</tr>
</tbody>
</table>
</body>
</html>