<div dir="rtl"><div dir="ltr" style="text-align:left">Hello all,<br><br></div><div dir="ltr" style="text-align:left">I'm trying to calculate a matrix of all shortest paths from settlements to 3 types of waste treatment facilities.<br>
<br></div><div dir="ltr" style="text-align:left">My methodology is to use the following layers:<br></div><div dir="ltr" style="text-align:left">1. roads - lines.<br></div><div dir="ltr" style="text-align:left">2. poi - points (combination of 3 layers as follows):<br>
<br></div><div dir="ltr" style="text-align:left">I used 3 distinct layers - landfill sites, recycling sites and sites which preforms both landfilling and recycling. I combined them to one layer called poi and uses v.db.update to change the categories of each layer. The reason for this is that those 3 layers was extracted out of one "sites" layer and their cats are messed up. I need to separate them since I would like to analyze each distance matrix separately. <br>
<br></div><div dir="ltr" style="text-align:left">I changed the cats by summing 10000 + cat, 20000 + cat and so on, for each type of site, including the settlements. Afterwards I plan to filter and extract from this layer the following maps:<br>
<br>allpairs - settlements to landfill, settlements to recycling and settlements to both. Than I'll use excel to add gate fees to transportation costs and to find the cheapest route from each settlement to one site in each category.<br>
<br></div><div dir="ltr" style="text-align:left">The problem is that after doing allpairs, I have received in both from and to cat the original cats and not those that I changed with v.db.update.<br><br></div><div dir="ltr" style="text-align:left">
i.e. before all pairs poi cats would look something like that:<br><br></div><div dir="ltr" style="text-align:left">cat = 10133, name, type=1<br></div><div dir="ltr" style="text-align:left">cat = 40121, name, type=4<br><br>
</div><div dir="ltr" style="text-align:left">after allpairs it became something like that:<br></div><div dir="ltr" style="text-align:left">cat=1, from_cat=133, to_cat=121 and so on...<br><br></div><div dir="ltr" style="text-align:left">
How can it be fixed?<br><br></div><div dir="ltr" style="text-align:left">Best,<br><br></div><div dir="ltr" style="text-align:left">Dor<br></div><div dir="ltr" style="text-align:left"><br></div></div>