<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font size="2">Hi Stephan,</font></p>
<p><font size="2">Thanks for your message. I got intersection point
with your method. I did not succeed to add cat to the error
v.clean with v.category (database connection is missing ?)</font>.
<font size="2">Anyway, another problem is I cannot copy attribute
table v.patch. So I have to do a v.what on my original river
lines to get its name and v.to.db to get coordinates. It's quite
a long process, and my data counts numerous lines (river our
roads, between 500 upto 2000 lines)... I will try</font></p>
<p><font size="2">Another way could be to use v.buffer for transect
lines and use this buffer as transect with v.overlay. I keep the
attribute table and I can get coordinate with v.to.db. Do you
think it is suitable ?<br>
</font></p>
<p><font size="2">I think v.profile should be the way, but this
function is not available yet.</font></p>
<p><font size="2">Regards,</font></p>
<p><font size="2">Frank</font><br>
</p>
<div class="moz-signature">
<style>
div#signature {font-size:10px;color:#666;margin:10px 0}
div.nom {font-weight:bold}
div.titre {}
div.geophom {font-size:11px;font-weight:bold;color:#A1CD1A;margin-top:10px
</style>
<div><br>
</div>
</div>
<div class="moz-cite-prefix">Le 27/04/2022 à 23:02, Stefan
Blumentrath a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:HE1PR0202MB279492941B985702C00A04AC9EFA9@HE1PR0202MB2794.eurprd02.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
font-size:10.0pt;
font-family:"Courier New";}span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.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]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi
Frank,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"
lang="EN-US">Yes, you are right. To get the intersection
point you patch the line maps (v.patch), use v.clean on the
patched maps and sve the intersection points (errors option
in v.clean). Then you add categories to the generated points
with v.category…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"
lang="EN-US">That just for correction of my earlier
suggestion. Your approach with v.profile seems way more
appropriate.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"
lang="EN-US">If all your lines have the same cat value, you
could create new, induvial cat values with v.category,
before you run v.profile (I have not looked at your dataset
yet…)?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"
lang="EN-US">Cheers<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"
lang="EN-US">Stefan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"
lang="EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span
lang="EN-US"> Frank David <a class="moz-txt-link-rfc2396E" href="mailto:frank.david@geophom.fr"><frank.david@geophom.fr></a>
<br>
<b>Sent:</b> onsdag 27. april 2022 19:23<br>
<b>To:</b> Stefan Blumentrath
<a class="moz-txt-link-rfc2396E" href="mailto:Stefan.Blumentrath@nina.no"><Stefan.Blumentrath@nina.no></a>; GRASS user list
<a class="moz-txt-link-rfc2396E" href="mailto:grass-user@lists.osgeo.org"><grass-user@lists.osgeo.org></a><br>
<b>Subject:</b> Re: [GRASS-user] multiple<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p><span style="font-size:10.0pt">Hi Stephan,</span><o:p></o:p></p>
<p><span style="font-size:10.0pt">I'm not very used to
v.overlay, but it seems to be used with area and not with
lines crossing lines, isn't it ?</span><o:p></o:p></p>
<p><span style="font-size:10.0pt">Frank</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Le 27/04/2022 à 09:14, Stefan Blumentrath
a écrit :<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>Hi Frank,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>My general approach would be like this:<o:p></o:p></pre>
<pre>v.overay to intersect transects and lines<o:p></o:p></pre>
<pre>v.to.points use=start to get transect start points<o:p></o:p></pre>
<pre>v.distance to get distance from transect start point to point where lines cross<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>With v.distance you need to try whether it is sufficient to compute distance to the nearest point only or if you need to compute distance to all intersection points within the distance equal to the length of the transect...<o:p></o:p></pre>
<pre>If the latter is the case you would need to filter out lines with distances that are not along a transect.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Hope that helps.<o:p></o:p></pre>
<pre>v.distance can produce lines, so you could check visually if the approach works as expected.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Just a suggestion.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Cheers<o:p></o:p></pre>
<pre>Stefan<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>-----Original Message-----<o:p></o:p></pre>
<pre>From: grass-user <a href="mailto:grass-user-bounces@lists.osgeo.org" moz-do-not-send="true"><grass-user-bounces@lists.osgeo.org></a> On Behalf Of Frank David<o:p></o:p></pre>
<pre>Sent: tirsdag 26. april 2022 20:01<o:p></o:p></pre>
<pre>To: GRASS user list <a href="mailto:grass-user@lists.osgeo.org" moz-do-not-send="true"><grass-user@lists.osgeo.org></a><o:p></o:p></pre>
<pre>Subject: [GRASS-user] multiple<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Hello,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>I need to identify vector lines (like roads, rivers) crossed by a transect and get distance from the beginning of the transect. For the moment I'm using v.profile but it returns only the first item. Is there any way to get all crossed lines ?<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Thank for your help,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Frank<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>grass-user mailing list<o:p></o:p></pre>
<pre><a href="mailto:grass-user@lists.osgeo.org" moz-do-not-send="true" class="moz-txt-link-freetext">grass-user@lists.osgeo.org</a><o:p></o:p></pre>
<pre><a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fgrass-user&data=05%7C01%7CStefan.Blumentrath%40nina.no%7C1240fd7d1fc9422c513408da287297be%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637866769889954957%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=1NJMtzy00JhCzzWX%2BjN7y5kiLER8wa21Xp40ceYKOYU%3D&reserved=0" moz-do-not-send="true">https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fgrass-user&data=05%7C01%7CStefan.Blumentrath%40nina.no%7Caf69c18ee50c48d0e93508da27afbd3a%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637865933270370389%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=nldQo6FwP%2FW2SFmeQdPQCw2GKnR%2B2Dr%2FbyaTrjuteg8%3D&reserved=0</a><o:p></o:p></pre>
</blockquote>
</div>
</blockquote>
</body>
</html>