[GRASS-user] GRASS GIS 7.8.5 v.distance
Kelsey Wong
kelsey.wong at shaw.ca
Thu May 13 12:31:36 PDT 2021
Hi,
I am trying to use the v.distance function in GRASS GIS 7.8.5, however, it won’t accept ‘from’ as a parameter as it’s a python keyword (I think). When I use ‘FROM’ I get an error saying:
WARNING: Illegal filename <FROM=buildings>. Character <=> not allowed.
ERROR: Vector map <FROM=buildings> not found
This is the code I’m trying to run:
gs.run_command('v.distance',
FROM = 'buildings',
to = 'mappedStreams',
upload = 'to_attr',
column = 'stream_id',
to_column = 'OBJECTID',
output = 'distanceLines',
overwrite = True)
Any help would be greatly appreciated.
Thanks!
More information about the grass-user
mailing list