Re: [Qgis-user] Can not use an attribute called LENGTH in calculations

2011-12-02 Thread Yves Jacolin
Hello, Le vendredi 02 décembre 2011 11:22:01, magerlin a écrit : > http://osgeo-org.1803224.n2.nabble.com/file/n7054195/calc_error.zip > calc_error.zip I get an error with this shapefile: "not a correct data source" (well the message is in french actualy). Y. -- Yves Jacolin http://yjacolin.g

Re: [Qgis-user] Can not use an attribute called LENGTH in calculations

2011-12-02 Thread Giovanni Manghi
> I fear the field calculator is messing up my attribute LENGTH with its own > $length function to calculate the length? maybe it is a dbf reserved word? it is in pgsql http://www.petefreitag.com/tools/sql_reserved_words_checker/?word=length cheers -- Giovanni -- _

[Qgis-user] Can not use an attribute called LENGTH in calculations

2011-12-02 Thread magerlin
I've got a shapefile with an attribute called Length. If I try to use this attribute in calculations in the Field Calculator for instance like: LENGTH / SOMETHING I then get the error "Invalid expression syntax. The error message of the parser is: 'syntax error, unexpected '/', expecting '(" I