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!
_______________________________________________
grass-user mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to