Hi Joshua, Le 23 novembre 2021 01:45:14 GMT+01:00, Joshua Geoghegan <[email protected]> a écrit : >Thanks Moritz, > > > >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? > > > >I'll test your two options in the meantime, but it still switches back to >layer 1.
I'm not sure I understand what you mean by "switching back". Most modules have layer=1as the default setting. That doesn't mean that the specific layer you work on does not have other layers. Have you checked whether you can set it to layer=2 ? To help you, we would need some more info: - What is the exact command you use to connect the lines and the points ? - What is the output of v.category with option=report on the resulting file ? Moritz > > > >[cid:[email protected]] > > > >Regards, > > > >JOSHUA GEOGHEGAN | GIS Specialist | MORNINGTON PENINSULA SHIRE > >Phone: 03 5950 1321 > >Email: [email protected] > >Private Bag 1000, Rosebud VIC 3939 | 90 Besgrove Street, Rosebud VIC 3939 > >www.mornpen.vic.gov.au | Twitter @MornPenShire | Facebook @MornPenShire > > > >Mornington Peninsula Shire acknowledges and pays respect to the Bunurong/Boon >Wurrung people, > >the Traditional Custodians of these lands and waters. > >-----Original Message----- >From: Moritz Lennert <[email protected]> >Sent: Monday, 22 November 2021 6:32 PM >To: [email protected]; Joshua Geoghegan ><[email protected]> >Subject: Re: [GRASS-user] Grass Graphic Model v.net.distance Not Accepting >point layer in From or To fields > > > >Hi Joshua, > > > >Le 21 novembre 2021 22:12:42 GMT+01:00, Joshua Geoghegan ><[email protected]<mailto:[email protected]>> > a écrit : > >>Hi there, > >> > >>I have been stuck on a problem and I was hoping you could help, as I had no >>luck on GIS Stack Exchange. > >> > >>I have a point and network layer connected in Grass GIS via the graphic >>modeler. > > > >What exactly do you mean by 'the graphic modeler'. I assume you connect the >two using v.net ? > > > > > >> 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. > >> > >>What could be the issue here? > > > >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." > > > >You have two options: > > > >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. > > > >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. > > > >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. > > > >If any of that is not clear, don't hesitate to come back to us. > > > >Moritz > > >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: >[Arrow] >mornpen.vic.gov.au/privacystatement<https://www.mornpen.vic.gov.au/privacystatement> > >[Consider the Environment] _______________________________________________ grass-user mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/grass-user
