Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm working in QGIS 2.0.1 Dufour. I started by cretaing a shape file form an AutoCad file. The problem is that in the AutoCad, my layers had symbols like: "~; ç; ^". As the QGIS does not support this symbols, my attibute table is really confusing, so I want to rewrite those attributes. What I mean is, in one column, I want to change more than one line. My problem is that I have more than 100 of each I want to rewrite. I thought it could be a way of chaging more than one at the same time. Is it possible? Thank you!

share|improve this question
1  
You should really try to figure out the correct encoding of the Shapefile. QGIS is really good in handling all kinds of encodings but you have to know which encoding was used by AutoCad. –  underdark Mar 19 at 18:01

3 Answers 3

I agree with underdark. If you want to change more than one line into the same new attribute, use the QuickMultiAttributeEdit Plugin. But you really should check why you have problems with importing your data.

share|improve this answer
    
The problem in importing the data is because of the symbols isn't? QGIS does not accept these kind of symbols I think, at least for now I already have issues with that more than one time. –  Inês Forte Mar 20 at 14:00

How about exporting the shape-table to an txt or XML, find and replace those symbols with others. Then link the edited table with the shape-files table by an unique attribute? Then delete the "old" columns and replace with the new ones. That should work.

share|improve this answer

If you're up for using PostGRESQL, you could use regexp_replace(string text, pattern text, replacement text [, flags text]). This will allow you to identify all of the text you want to change, as well as give it a new character that you would rather see. You can do all of your lines without ever having to see a single one (as long as you are confident in your results). Documentation here: http://www.postgresql.org/docs/9.1/static/functions-string.html

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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