[GRASS-user] v.net.iso - node costs
Paolo Craveri
pcraveri at gmail.com
Tue Nov 18 04:29:40 EST 2008
Hi all
I wonder if v.net.iso gives this error only to me, using cost point (ncolumn).
Can anyone tell me what is wrong in this code?
#!/bin/sh
##spearfish60 dataset
db.connect driver=sqlite database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite.db'
g.copy vect=roads,myroads,archsites,myarchsites --o
v.distance -p from=myarchsites to=myroads upload=dist col=dist
v.net myroads points=myarchsites out=mynetwork op=connect thresh=1000 --o
v.db.addtable mynetwork layer=2 col="cat integer, cost integer"
### simply add a foo point cost
echo "update mynetwork_2 set cost=1" | db.execute
### this line gives an error:
### ERROR: Vect_read_line(): line '-384' is not reasonable (max line in map:
### 900)
v.net.iso in=mynetwork out=isocost alayer=1 nlayer=2 ncolumn=cost
ccats=1-10 cost=200,600,800,1200,5000 --o
Many thanks in advance.
Paolo
More information about the grass-user
mailing list