[GRASS5] trouble with vector layers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

Don't know if this is a bug or if I just don't understand the use of
layers:

GRASS 6.1.cvs (BELGIQUE):~ > v.db.connect -p molenbeek
Vector map <molenbeek> is connected by:
layer <1> table <molenbeek> in database <grass> through driver <pg>
with key <cat>
layer <2> table <molpoptot> in database <grass> through driver <pg>
with key <cat>

the cat column is identical in the two tables. However:

GRASS 6.1.cvs (BELGIQUE):~ > d.vect molenbeek where='cat>8000'

displays the right areas, but

GRASS 6.1.cvs (BELGIQUE):~ > d.vect molenbeek layer=2 where='cat>8000'

does not display anything. At the same time

v.db.select molenbeek layer=2 where='cat>8000'

correctly lists the corresponding lines in the table molpoptot.

Moritz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDKTUarIrMbm76jD8RAucEAJ9LTNlJWobyEg98Kc2xl0wZlWkbTACdG483
v0POBQi73maZ713WpBlB16s=
=FVva
-----END PGP SIGNATURE-----

Can you send output from:

v.category input=molenbeek option=report

Radim

On 9/15/05, Moritz Lennert <mlennert@club.worldonline.be> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

Don't know if this is a bug or if I just don't understand the use of
layers:

GRASS 6.1.cvs (BELGIQUE):~ > v.db.connect -p molenbeek
Vector map <molenbeek> is connected by:
layer <1> table <molenbeek> in database <grass> through driver <pg>
with key <cat>
layer <2> table <molpoptot> in database <grass> through driver <pg>
with key <cat>

the cat column is identical in the two tables. However:

GRASS 6.1.cvs (BELGIQUE):~ > d.vect molenbeek where='cat>8000'

displays the right areas, but

GRASS 6.1.cvs (BELGIQUE):~ > d.vect molenbeek layer=2 where='cat>8000'

does not display anything. At the same time

v.db.select molenbeek layer=2 where='cat>8000'

correctly lists the corresponding lines in the table molpoptot.

Moritz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDKTUarIrMbm76jD8RAucEAJ9LTNlJWobyEg98Kc2xl0wZlWkbTACdG483
v0POBQi73maZ713WpBlB16s=
=FVva
-----END PGP SIGNATURE-----

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Radim Blazek wrote:

Can you send output from:

v.category input=molenbeek option=report

GRASS 6.1.cvs (BELGIQUE):~ > v.category input=molenbeek option=report
LAYER/TABLE 1/molenbeek:
type count min max
point 0 0 0
line 0 0 0
boundary 0 0 0
centroid 46 7596 8192
area 0 0 0
all 46 7596 8192

GRASS 6.1.cvs (BELGIQUE):~ > v.category input=molenbeek
option=report layer=2
LAYER/TABLE 1/molenbeek:
type count min max
point 0 0 0
line 0 0 0
boundary 0 0 0
centroid 46 7596 8192
area 0 0 0
all 46 7596 8192

Doesn't seem to take into account layer 2...

The same goes for

GRASS 6.1.cvs (BELGIQUE):~ > v.category input=molenbeek option=print
layer=2

whereas

GRASS 6.1.cvs (BELGIQUE):~ > v.category input=molenbeek option=print
layer=1

prints out the category values.

Moritz

Radim

On 9/15/05, Moritz Lennert <mlennert@club.worldonline.be> wrote:

Hello,

Don't know if this is a bug or if I just don't understand the use of
layers:

GRASS 6.1.cvs (BELGIQUE):~ > v.db.connect -p molenbeek
Vector map <molenbeek> is connected by:
layer <1> table <molenbeek> in database <grass> through driver <pg>
with key <cat>
layer <2> table <molpoptot> in database <grass> through driver <pg>
with key <cat>

the cat column is identical in the two tables. However:

GRASS 6.1.cvs (BELGIQUE):~ > d.vect molenbeek where='cat>8000'

displays the right areas, but

GRASS 6.1.cvs (BELGIQUE):~ > d.vect molenbeek layer=2 where='cat>8000'

does not display anything. At the same time

v.db.select molenbeek layer=2 where='cat>8000'

correctly lists the corresponding lines in the table molpoptot.

Moritz

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDKZDCrIrMbm76jD8RAp6pAJ0YqpltVG7fwJ9kiPgAX76h2g/yggCeNHjz
jNgiwYVdA0amj1iptMgsayo=
=Qh7C
-----END PGP SIGNATURE-----

On 9/15/05, Moritz Lennert <mlennert@club.worldonline.be> wrote:

GRASS 6.1.cvs (BELGIQUE):~ > v.category input=molenbeek option=report
LAYER/TABLE 1/molenbeek:
type count min max
point 0 0 0
line 0 0 0
boundary 0 0 0
centroid 46 7596 8192
area 0 0 0
all 46 7596 8192

GRASS 6.1.cvs (BELGIQUE):~ > v.category input=molenbeek
option=report layer=2
LAYER/TABLE 1/molenbeek:
type count min max
point 0 0 0
line 0 0 0
boundary 0 0 0
centroid 46 7596 8192
area 0 0 0
all 46 7596 8192

Doesn't seem to take into account layer 2...

No, option=report prints all layers. There are no features in layer 2
in your map.

Radim

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Radim Blazek wrote:

On 9/15/05, Moritz Lennert <mlennert@club.worldonline.be> wrote:

GRASS 6.1.cvs (BELGIQUE):~ > v.category input=molenbeek option=report
LAYER/TABLE 1/molenbeek:
type count min max
point 0 0 0
line 0 0 0
boundary 0 0 0
centroid 46 7596 8192
area 0 0 0
all 46 7596 8192

GRASS 6.1.cvs (BELGIQUE):~ > v.category input=molenbeek
option=report layer=2
LAYER/TABLE 1/molenbeek:
type count min max
point 0 0 0
line 0 0 0
boundary 0 0 0
centroid 46 7596 8192
area 0 0 0
all 46 7596 8192

Doesn't seem to take into account layer 2...

No, option=report prints all layers. There are no features in layer 2
in your map.

Ok, so it was a problem of me not understanding layers correctly.
Sorry...
Do I then understand correctly that you cannot link one layer to
different tables simultaneously ?

Thanks,

Moritz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDKno4rIrMbm76jD8RAqwlAKCA+RoX0i9uqO5hRstdpZS7RjyTlgCfUSVp
WlUxGjE0gK0tgVRt2EJyaaY=
=yCe8
-----END PGP SIGNATURE-----

On 9/16/05, Moritz Lennert <mlennert@club.worldonline.be> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Radim Blazek wrote:
Ok, so it was a problem of me not understanding layers correctly.
Sorry...
Do I then understand correctly that you cannot link one layer to
different tables simultaneously ?

Yes, you cannot.

Radim