[GRASS-dev] db.join script wanted

Markus Neteler neteler at osgeo.org
Wed Mar 9 08:30:40 PST 2016


On Mar 9, 2016 5:25 PM, "Paulo van Breugel" <p.vanbreugel at gmail.com> wrote:
>
> Hoi Markus
>
> Still not there via g.extension, but I copied the script to the script
folder.
>
> I tried with two tables (both created in an external sqlite editor),
>
> Table 1: columns A (integer, key) and B (float)
> Table 2: columns A (integer, key) and C (float)
>
> First observation: using the GUI, the drop down menu for the identifier
column shows the column names of Table 1 instead of Table 2.

Mhh, perhaps I mixed something up there.

> I tried to link the two on the first columns and on the second columns.
In both cases I got an error message, copied below:
>
> db.join table=test1 column=A other_table=test2
other_column=A
>
> Traceback (most recent call last):
>
>   File "/home/paulo/.grass7/addons/scripts/db.join", line 170, in
<module>    sys.exit(main())
>
>   File "/home/paulo/.grass7/addons/scripts/db.join", line 152, in main
columns=colspec)
>
>   File "/usr/local/grass7/grass-7.1.svn/etc/python/grass/script/core.py",
line 408, in run_command ps = start_command(*args, **kwargs)
>
>   File "/usr/local/grass7/grass-7.1.svn/etc/python/grass/script/core.py",
line 377, in start_command return Popen(args, **popts)
>
>   File "/usr/local/grass7/grass-7.1.svn/etc/python/grass/script/core.py",
line 74, in __init__ subprocess.Popen.__init__(self, args, **kwargs)
>
>   File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
>
>   File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
>
> OSError: [Errno 2] No such file or directory

That one I fixed 30min ago or so in Svn.

Please check again.

Markus

> Paulo
>
>
>
> On 09-03-16 14:02, Markus Neteler wrote:
>>
>>
>> On Mar 9, 2016 1:36 PM, "Paulo van Breugel" <p.vanbreugel at gmail.com>
wrote:
>>
>> ...
>> > It is in svn I saw, but it doesn't show up in g.extension.. perhaps
because I am on 7.1?
>>
>> This does not matter. I didn't yet add it to the parent Make file
because it is not ready.
>>
>> Just take it from trac/svn from now...
>>
>> Markus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20160309/3d7fe29b/attachment.html>


More information about the grass-dev mailing list