3

I have a polygon vector layer with already 529 objects but without any attributes so far and now I get the message that shapefiles without attributes are treated as write protected. What can I do to go on working with my shapefile?

2
  • 1
    Add an attribute maybe ;-) Commented Sep 16, 2012 at 10:08
  • can´t do it anymore. No editing within the attribution table as well.
    – Vanessa
    Commented Sep 16, 2012 at 11:45

2 Answers 2

3

Ok, I just found the solution that I can save the file to a new shapefile that I can edit:)

0
2

As a work-around try adding a temporary, meaningless attribute using a spreadsheet.

Open the DBF file, which is part of the shapefile, in OpenOffice Calc or an older version of Excel (see this link regarding DBFs in Excel). Add a name to the first empty column, making sure the name is short and doesn't include spaces or special characters. Enter the same meaningless value, 1 or A for example, in that new column for every row that already has data. Save the file and exit the spreadsheet.

QGIS should now see an attribute in the shapefile and allow further edits. The temporary attribute can be deleted after you've entered actual attributes using QGIS.

1
  • Make sure you don't delete existing data, sort, or otherwise change the order of any rows or columns in the spreadsheet. This will cause problems with the shapefile.
    – user3461
    Commented Sep 16, 2012 at 12:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.