[GRASS-user] v.overlay not working?
Paolo Cavallini
cavallini at faunalia.it
Sun Sep 1 02:28:41 PDT 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Il 31/08/2013 19:24, Markus Neteler ha scritto:
>> Vector map <liguria_agricola at alessandra> is connected by:
>> layer <1> table <AGRICOLA> in database <cat
>> /home/paolo/Desktop/spezia/grass/spezia/alessandra/dbf/> through driver <dbf> with
>> key <liguria_agricola>
>
> As you see you have the spurious "cat" there.
>
> A proper connection string looks like this:
>
> GRASS 6.4.3svn (nc_spm_08):~/grass70 > v.db.connect -p roadsmajor
> Vector map <roadsmajor at PERMANENT> is connected by:
> layer <1> table <roadsmajor> in database
> </home/neteler/grassdata/nc_spm_08/PERMANENT/dbf/> through driver
> <dbf> with key <cat>
>
> You may reconnect the table with v.db.connect.
Done, it works.
Unclear how the spurious cat crept in, however.
Restarting from scratch:
v.in.ogr "dsn=/home/paolo/liguria agricola-uso suolo.shp" output=liguria_agricola1
snap=-1 min_area=0.0001 -o
v.db.connect -p liguria_agricola1
GRASS_INFO_MESSAGE(15222,1): Vector map <liguria_agricola1 at alessandra> is connected by:
GRASS_INFO_END(15222,1)
layer <1> table <agricola-uso> in database <liguria_agricola1 cat
/home/paolo/Desktop/spezia/grass/spezia/alessandra/dbf/> through driver <dbf> with
key <suolo>
v.in.ogr dsn=/home/paolo/liguria_agricola_test.shp output=liguria_agricola2 snap=-1
min_area=0.0001 -o
v.db.connect -p liguria_agricola2
GRASS_INFO_MESSAGE(15272,1): Vector map <liguria_agricola2 at alessandra> is connected by:
GRASS_INFO_END(15272,1)
layer <1> table <liguria_agricola2> in database
</home/paolo/Desktop/spezia/grass/spezia/alessandra/dbf/> through driver <dbf> with
key <cat>
So, apparently spaces in file name cause the issue.
All the best, and many thanks.
- --
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/
iEYEARECAAYFAlIjCMkACgkQ/NedwLUzIr4mlgCglmjb9cURYjMFUO5sd7pCSNqg
V20An1kbUh7L2mh9DJ6hI26sm6ITOFHA
=+TGL
-----END PGP SIGNATURE-----
More information about the grass-user
mailing list