Opened 7 years ago
Last modified 6 years ago
#3436 new defect
Renaming a vector map doesn't rename the layer name in the dbln metadata file
Reported by: | hcho | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.6.2 |
Component: | Vector | Version: | svn-trunk |
Keywords: | Cc: | ||
CPU: | Unspecified | Platform: | Unspecified |
Description
The layer name in dbln is not renamed when renaming a vector map. For example, after renaming old to new:
g.rename vect=old,new
cat location/mapset/vector/new/dbln
prints
1/old|new|cat|database|pg
Expected output:
1/new|new|cat|database|pg
Attachments (1)
Change History (5)
comment:1 by , 7 years ago
by , 7 years ago
Attachment: | vect_rename_layer_names.diff added |
---|
comment:2 by , 7 years ago
Milestone: | → 7.2.4 |
---|
comment:4 by , 6 years ago
Replying to martinl:
Any chance to apply diff in trunk?
As I said; since you are the author of the layer name mechanism, I was leaving this to you for checking. ;-)
Note:
See TracTickets
for help on using tickets.
Replying to hcho:
Does the layer name necessarily have to correspond to the map name ? AFAIU, layer names are mostly used for direct OGR access. Internally in GRASS vector format, it's the layer number that is used. So I'm not sure I would call this a bug, but potentially an enhancement request for aesthetic reasons.
The same actually happens when you copy a map:
I'll add a diff that seems to do the trick for me, but I'm not sure that this is really needed, nor if it is desirable. Martin introduced the layers names so he should probably have a look at it.