Timeline for Works in Console but not in Script Editor
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 17, 2016 at 11:25 | vote | accept | user64823 | ||
Mar 15, 2016 at 15:18 | comment | added | Joseph | @user64823 - You got it working so well done! I would avoid using accents for fields (and generally everything) to avoid non-ASCII related errors. Not sure which is the most popular file sharing server but I have seen quite a few people using Dropbox. And thank you, it certainly helped me learn more =) | |
Mar 15, 2016 at 15:10 | comment | added | user64823 | I did so, (ArcGIS...I am getting used to QGIS) then, exported to Shapefile. Probably, this changed something in the field. I have already added a new field and deleted the previous one, "MUNICIPIOS". It works. (I was thinking about the other fields which have accents, for example, there is one field called "Álamo, El" but it is not a problem By the way, which public server is most recommended to upload data? This is for the next time.. Thank you very much, I hope this could have helped all of us for studies and for professional works. | |
Mar 15, 2016 at 15:00 | comment | added | Joseph |
@user64823 - Glad you found out that the problem is quite likely the field. I would suggest creating a new string field using the Field Calculator and copying over the features using the expression "MUNICIPIOS" . Then deleting the original field.
|
|
Mar 15, 2016 at 14:57 | comment | added | user64823 | It is QGIS Essen (latest),standalone version. Anyway, I was going to write you. I have chosen another field, and it works. Now, I am confused why the other field didn't... both are String type (one is 254 characters long but it is just a 5 letters word (I didn't modify this field) and the other one, which doesn't work, is 50 characters long (I modified it, but it hasn't got any domains or subtypes..)) | |
Mar 15, 2016 at 14:47 | history | edited | Joseph | CC BY-SA 3.0 |
deleted 59 characters in body
|
Mar 15, 2016 at 14:46 | comment | added | Joseph | @user64823 - Interesting, which QGIS version are you using? Could you upload your shapefile to a public server so that it could be tested? | |
Mar 15, 2016 at 14:30 | comment | added | user64823 | well, I am using triple double quotes: """ "MUNICIPIOS" = 'Alcobendas' """ as you posted... It still doesn't work, I am reviewing all the code, it is like yours, and I watched some others, but they give me problems about the class properties. Then, I think the expression syntax is wrong. I have a field called MUNICIPIOS and a attribute called Alcobendas | |
Mar 15, 2016 at 14:19 | comment | added | Joseph |
@user64823 - You have to be careful here with expressions as sometimes it needs to know when to escape the number of quotation marks. I began using triple double quotes on either end of an expression so in your case: """ "MUNICIPIOS" = 'Alcobendas' """ . Or did you already use the triple quotes?
|
|
Mar 15, 2016 at 14:17 | comment | added | user64823 | Thank you, it works but does nothing in my layer... It is a polygon layer, and I select a field, called MUNICIPIOS. Then, the expression is: " ' MUNICIPIOS ' = 'Alcobendas' " | |
Mar 15, 2016 at 13:59 | history | answered | Joseph | CC BY-SA 3.0 |