Ticket #1328 (closed defect: fixed)
v.in.ogr: bogus table connection created when input Shapefile has spaces in it's name
| Reported by: | msieczka | Owned by: | grass-dev@… |
|---|---|---|---|
| Priority: | major | Milestone: | 6.4.4 |
| Component: | Vector | Version: | svn-releasebranch64 |
| Keywords: | Cc: | ||
| Platform: | All | CPU: | All |
Description
Debian, releasebranch_6_4 r45717.
Import the attached "a a.shp":
$ v.in.ogr dsn=a\ a.shp output=b
Try some operation on it - e.g:
$ v.info -c b
Displaying column types/names for database connection of layer 1:
DBMI-DBF driver error:
Cannot create dbf database: cat /home/grassdata/spearfish60/PERMANENT/dbf/
ERROR: Unable to open database <cat
/home/grassdata/spearfish60/PERMANENT/dbf/> by driver <d
That's because the table link is bogus:
$ v.db.connect -p b Vector map <b@PERMANENT> is connected by: layer <1> table <a> in database <cat /home/grassdata/spearfish60/PERMANENT/dbf/> through driver <dbf> with key <b>
which should rather be:
layer <1> table <b> in database </home/grassdata/spearfish60/PERMANENT/dbf/> through driver <dbf> with key <cat>
The respective dbln file contains:
1/a a b cat $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/ dbf
(Mind the "a a" above, derived from input Shapefile layer name.)
Does GRASS allow spaces in layer names? If so, maybe use a different separator in dbln's?
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

