Re: [GRASS-dev] attribute table manager; SQL Builder; SQL statement is not valid.

2013-01-22 Thread Margherita Di Leo
And .. I'd have another wish (pls don't kill me)
It would be nice if the features selected from the attribute table were
highlighted (for example using a different color, i.e. yellow) in the Map
Display.

Thanks
madi

On Tue, Jan 22, 2013 at 9:39 AM, Margherita Di Leo 
dileomargher...@gmail.com wrote:

 Hi,

 thank you Maris.
 Would it be possible to grey out the verify and apply buttons before
 the comparison operator has been selected? This would be more intuitive.

 Thanks
 madi


 On Tue, Jan 22, 2013 at 7:55 AM, Maris Nartiss maris@gmail.comwrote:

 Hi,
 before pressing Verify, You must enter comparison operator. = or LIKE

 Maris.

 2013/1/21 Margherita Di Leo dileomargher...@gmail.com:
  Hi,
 
  I'm using GRASS 6.4.3svn on Red Hat. Trying to use the SQL Builder, I
 always
  obtain Syntax Error on queries which are self built by the builder...
  Example on NC dataset:
  map: census_wake2000
  I open the attribute table manager from the GUI
  I select: SQL Query: Advanced
  Columns: TRT2000 - Get sample - Value: 050100 (the first on the top)
 -
  Verify
  I get:
 
  SQL statement is not valid.
 
  DBMI-DBF driver error:
  SQL parser error: syntax error, unexpected STRING processing ''050100' '
  in statement:
  SELECT * FROM census_wake2000 WHERE TRT2000 '050100'
  Error in db_open_select_cursor()
 
  ?
 
  Thanks,
  madi
 
  --
  Margherita DI LEO
  Postdoctoral Researcher
 
  European Commission - DG JRC
  Institute for Environment and Sustainability (IES). Unit H03 – FRC
  Via Fermi, 2749
  I-21027 Ispra (VA) - Italy - TP 261
 
  Tel. +39 0332 78 3600
  margherita.di-...@jrc.ec.europa.eu
 
  Disclaimer: The views expressed are purely those of the writer and may
 not
  in any circumstance be regarded as stating an official position of the
  European Commission.
 
  ___
  grass-dev mailing list
  grass-dev@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/grass-dev




 --
 Margherita DI LEO
 Postdoctoral Researcher

 European Commission - DG JRC
 Institute for Environment and Sustainability (IES). Unit H03 – FRC
 Via Fermi, 2749
 I-21027 Ispra (VA) - Italy - TP 261

 Tel. +39 0332 78 3600
 margherita.di-...@jrc.ec.europa.eu

 Disclaimer: The views expressed are purely those of the writer and may not
 in any circumstance be regarded as stating an official position of the
 European Commission.




-- 
Margherita DI LEO
Postdoctoral Researcher

European Commission - DG JRC
Institute for Environment and Sustainability (IES). Unit H03 – FRC
Via Fermi, 2749
I-21027 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-...@jrc.ec.europa.eu

Disclaimer: The views expressed are purely those of the writer and may not
in any circumstance be regarded as stating an official position of the
European Commission.
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] attribute table manager; SQL Builder; SQL statement is not valid.

2013-01-22 Thread Martin Landa
Ciao,

2013/1/22 Margherita Di Leo dileomargher...@gmail.com:
 And .. I'd have another wish (pls don't kill me)
 It would be nice if the features selected from the attribute table were
 highlighted (for example using a different color, i.e. yellow) in the Map
 Display.

possible, but so straightforward

* right click - Select all
* right click - Highlight selected features

Martin

-- 
Martin Landa landa.martin gmail.com * http://geo.fsv.cvut.cz/~landa
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev


Re: [GRASS-dev] attribute table manager; SQL Builder; SQL statement is not valid.

2013-01-22 Thread Martin Landa
2013/1/22 Martin Landa landa.mar...@gmail.com:
 possible, but so straightforward

*not* so ;-)

Martin

-- 
Martin Landa landa.martin gmail.com * http://geo.fsv.cvut.cz/~landa
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev


Re: [GRASS-dev] attribute table manager; SQL Builder; SQL statement is not valid.

2013-01-22 Thread Margherita Di Leo
Thanks! Yes, not so intuitive I would say. Perhaps the highlight could be
automatic when features are selected.. at least, as a user I would expect
so.. but maybe other users can have different opinions..

Thank you!

madi

On Tue, Jan 22, 2013 at 2:29 PM, Martin Landa landa.mar...@gmail.comwrote:

 2013/1/22 Martin Landa landa.mar...@gmail.com:
  possible, but so straightforward

 *not* so ;-)

 Martin

 --
 Martin Landa landa.martin gmail.com * http://geo.fsv.cvut.cz/~landa




-- 
Margherita DI LEO
Postdoctoral Researcher

European Commission - DG JRC
Institute for Environment and Sustainability (IES). Unit H03 – FRC
Via Fermi, 2749
I-21027 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-...@jrc.ec.europa.eu

Disclaimer: The views expressed are purely those of the writer and may not
in any circumstance be regarded as stating an official position of the
European Commission.
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] attribute table manager; SQL Builder; SQL statement is not valid.

2013-01-22 Thread Moritz Lennert

On 22/01/13 14:35, Margherita Di Leo wrote:

Thanks! Yes, not so intuitive I would say. Perhaps the highlight could
be automatic when features are selected.. at least, as a user I would
expect so.. but maybe other users can have different opinions..


I actually like the fact that I can query the table without automatic 
highlighting, but I agree that it would be nice to be able to highlight 
the selected features with one click instead of two. Maybe a solution à 
la QGIS could be an option: in the table, instead of showing only the 
tuples that result from the query, show all tuples, but with the query 
result tuples selected. Then right click - Highlight selected 
features would be enough to see them in the map.


Moritz

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] attribute table manager; SQL Builder; SQL statement is not valid.

2013-01-21 Thread Margherita Di Leo
Hi,

I'm using GRASS 6.4.3svn on Red Hat. Trying to use the SQL Builder, I
always obtain Syntax Error on queries which are self built by the builder...
Example on NC dataset:
map: census_wake2000
I open the attribute table manager from the GUI
I select: SQL Query: Advanced
Columns: TRT2000 - Get sample - Value: 050100 (the first on the top) -
Verify
I get:

SQL statement is not valid.

DBMI-DBF driver error:
SQL parser error: syntax error, unexpected STRING processing ''050100' '
in statement:
SELECT * FROM census_wake2000 WHERE TRT2000 '050100'
Error in db_open_select_cursor()

?

Thanks,
madi

-- 
Margherita DI LEO
Postdoctoral Researcher

European Commission - DG JRC
Institute for Environment and Sustainability (IES). Unit H03 – FRC
Via Fermi, 2749
I-21027 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-...@jrc.ec.europa.eu

Disclaimer: The views expressed are purely those of the writer and may not
in any circumstance be regarded as stating an official position of the
European Commission.
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] attribute table manager; SQL Builder; SQL statement is not valid.

2013-01-21 Thread Maris Nartiss
Hi,
before pressing Verify, You must enter comparison operator. = or LIKE

Maris.

2013/1/21 Margherita Di Leo dileomargher...@gmail.com:
 Hi,

 I'm using GRASS 6.4.3svn on Red Hat. Trying to use the SQL Builder, I always
 obtain Syntax Error on queries which are self built by the builder...
 Example on NC dataset:
 map: census_wake2000
 I open the attribute table manager from the GUI
 I select: SQL Query: Advanced
 Columns: TRT2000 - Get sample - Value: 050100 (the first on the top) -
 Verify
 I get:

 SQL statement is not valid.

 DBMI-DBF driver error:
 SQL parser error: syntax error, unexpected STRING processing ''050100' '
 in statement:
 SELECT * FROM census_wake2000 WHERE TRT2000 '050100'
 Error in db_open_select_cursor()

 ?

 Thanks,
 madi

 --
 Margherita DI LEO
 Postdoctoral Researcher

 European Commission - DG JRC
 Institute for Environment and Sustainability (IES). Unit H03 – FRC
 Via Fermi, 2749
 I-21027 Ispra (VA) - Italy - TP 261

 Tel. +39 0332 78 3600
 margherita.di-...@jrc.ec.europa.eu

 Disclaimer: The views expressed are purely those of the writer and may not
 in any circumstance be regarded as stating an official position of the
 European Commission.

 ___
 grass-dev mailing list
 grass-dev@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/grass-dev
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev