[GRASS-user] Problem in query vector maps

Vaclav Petras wenzeslaus at gmail.com
Fri Feb 22 03:11:50 PST 2013


Hi,

if you are able to test it with the 6.4.3svn, release candidate or the
version 7, please do. There were some changes (some only in 7) which
may affect your problem.

Vaclav

On 20 February 2013 14:57, Marcello Benigno <benigno.marcello at gmail.com> wrote:
> Just one more information,
>
> I made some tests using SQLITE and the same problem occurred. I concluded
> that the problem has to do with the Database.
>
>
>
> 2013/2/20 Marcello Benigno <benigno.marcello at gmail.com>
>>
>> I'm using GRASS 6.4.2 on Ubuntu 12.10 and I have one location where I use
>> PostgreSQL 9.1.8 database (UTF-8), for some reason all vector layers are not
>> queryable, when I click in the layer features this message error appears:
>>
>> Traceback (most recent call last):
>>   File "/usr/lib/grass64/etc/wxpython/gui_modules/mapdisp_wi
>> ndow.py", line 1017, in MouseActions
>> self.OnLeftUp(event)
>>   File "/usr/lib/grass64/etc/wxpython/gui_modules/mapdisp_wi
>> ndow.py", line 1207, in OnLeftUp
>> self.parent.QueryVector(self.mouse['begin'][0],
>> self.mouse['begin'][1])
>>   File
>> "/usr/lib/grass64/etc/wxpython/gui_modules/mapdisp.py", line
>> 1383, in QueryVector
>> action = mode)
>>   File
>> "/usr/lib/grass64/etc/wxpython/gui_modules/dbm_dialogs.py",
>> line 102, in __init__
>> self.UpdateDialog(query = query, cats = cats)
>>   File
>> "/usr/lib/grass64/etc/wxpython/gui_modules/dbm_dialogs.py",
>> line 362, in UpdateDialog
>> query[1])
>>   File
>> "/usr/lib/grass64/etc/wxpython/gui_modules/dbm_base.py",
>> line 109, in SelectByPoint
>> if self.tables[table][key]['ctype'] != types.StringType:
>> KeyError
>> :
>> 'Category'
>>
>> In other locations where I do not use PostgreSQL the problem does not
>> appear. This problem may relate to the fact that there are other PostGIS
>> tables in the database that are not used by GRASS?
>>
>> Thanks in advance
>> --
>> Marcello Benigno B. de Barros Filho
>> Prof. do Curso Superior de Tecnologia em Geoprocessamento - IFPB
>> Mestre em Ciências Geodésicas e Tecnologias da Geoinformação - UFPE
>> Doutorando em Tecnologia Ambiental e Recursos Hídricos - UFPE
>> http://profmarcello.blogspot.com
>> http://about.me/marcello.benigno
>
>
>
>
> --
> Marcello Benigno B. de Barros Filho
> Prof. do Curso Superior de Tecnologia em Geoprocessamento - IFPB
> Mestre em Ciências Geodésicas e Tecnologias da Geoinformação - UFPE
> Doutorando em Tecnologia Ambiental e Recursos Hídricos - UFPE
> http://profmarcello.blogspot.com
> http://about.me/marcello.benigno
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>


More information about the grass-user mailing list