Opened 17 years ago
Last modified 14 years ago
#470 new bug
adding a column to GRASS vector corrupts it
Reported by: | Owned by: | rugginoso | |
---|---|---|---|
Priority: | minor: annoyance | Milestone: | Version 1.7.0 |
Component: | GRASS | Version: | Trunk |
Keywords: | Cc: | ||
Must Fix for Release: | No | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
QGIS SVN 6277, GRASS 6.3 CVS 18.12.2006 ~3:00 PM
Plugins -> GRASS
- 'Open mapset' "spearfish60/PERMANENT"
- 'Create new Grass vector' "testing"
- digitise one feature (eg. a point) using default 'Next not used' category mode
- switch to 'Table', add one column (any type, any name)
- 'Edit attributes' and click on the point you've digitised in point 3
- you get "WARNING: ATTRIBUTES MISSING" and you can't edit the attribute you set the column for in step 4
Trying to 'Update' the table yields:
DBMI-DBF driver error: SQL parser error in statement: update test set WARNING: ATTRIBUTES MISSING = 'WARNING: ATTRIBUTES MISSING' where cat = 1 Error in db_execute_immediate()
Closing the GRASS Edit and opening it back, as well as removing the GRASS vector from layers list and adding it back doesn't help. If you quit QGIS and start it back, and then add the GRASS vector in question it is added but nothing is rendered.
You can display and query the vector in GRASS tough, but you can't edit the attribute you have added in step 4 (it is not listed), both in v.digit and d.what.vect -e. Strange is that v.info -c reports this column OK and v.db.connect -p says the database link is OK.
IOW, the GRASS vectro in question is corruputed.
Maciek
P.S.
All references to GRASS should be in capital letters. Please get rid of "Grass".
Change History (7)
comment:1 by , 17 years ago
Must Fix for Release: | Yes → No |
---|---|
Priority: | critical → major |
comment:2 by , 17 years ago
Milestone: | Version 0.8 Release → Version 0.9 Release |
---|---|
Platform: | Debian → All |
Platform Version: | Ubuntu Breezy |
Type: | bug → enhancement |
comment:3 by , 16 years ago
Awaiting user input: | unset |
---|---|
Priority: | major: does not work as expected → minor: annoyance or enhancement |
comment:4 by , 16 years ago
Type: | enhancement → defect |
---|
comment:5 by , 15 years ago
Milestone: | Version 1.0.3 → Version 1.2.0 |
---|---|
Owner: | changed from | to
comment:6 by , 14 years ago
Milestone: | Version 1.5.0 → Version 1.6.0 |
---|
comment:7 by , 14 years ago
Type: | defect → bug |
---|
This is not bug but feature. First you create an element with a category but a table does not exist yet so there is no record created in the table. Then when the table exists QGIS cannot find appropriate record in the table so it says "WARNING: ATTRIBUTES MISSING". That is true, the record in the table for the element's category is missing. That may be intended or not.
I agrree that this can be inconvenient and I suggest two mprovements: 1) when the table is created and elemts with categories of that layer exist
2) in the 'GRASS Attributes dialog' it should be more clearly explained that
Both improvements canot be done in 0.8 so I am going to change this ticket to enhancement/0.9.
Radim
PS: Changing this ticket back to 0.8/critical bug will only result in changing owner to nobody by me.