Hi Stefan,

Thank you so much - that solved my entire problem!

Cheers,

Kelsey

> On May 13, 2021, at 1:04 PM, Stefan Blumentrath <[email protected]> 
> wrote:
> 
> Hi Kelsey,
> 
> Try: "from_"
> 
> So, 
> gs.run_command('v.distance', 
>    from_ = 'buildings', 
>    to = 'mappedStreams',
> 
> The problem is indeed that from is a keyword...
> 
> Cheers
> Stefan
> 
> -----Original Message-----
> From: grass-user <[email protected] 
> <mailto:[email protected]>> On Behalf Of Kelsey Wong
> Sent: torsdag 13. mai 2021 21:32
> To: [email protected] <mailto:[email protected]>
> Subject: [GRASS-user] GRASS GIS 7.8.5 v.distance
> 
> 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://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fgrass-user&amp;data=04%7C01%7C%7C8d24cded0189434d8cc708d91646e043%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637565316357978059%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Wi6V%2FnzJQvTKzyUf0oK6q18d0MOMI%2FPOrLbNms2BfZQ%3D&amp;reserved=0
>  
> <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fgrass-user&amp;data=04%7C01%7C%7C8d24cded0189434d8cc708d91646e043%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637565316357978059%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Wi6V%2FnzJQvTKzyUf0oK6q18d0MOMI%2FPOrLbNms2BfZQ%3D&amp;reserved=0>
_______________________________________________
grass-user mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to