[QGIS-trac] Re: [Quantum GIS] #243: Add a feature to calculate field values in attribut tables

Quantum GIS qgis at qgis.org
Fri Jul 10 13:33:22 EDT 2009


#243: Add a feature to calculate field values in attribut tables
----------------------------------------------------+-----------------------
        Reporter:  horst.duester at bd.so.ch           |         Owner:  gsherman     
            Type:  enhancement                      |        Status:  new          
        Priority:  minor: annoyance or enhancement  |     Milestone:  Version 1.2.0
       Component:  Data Provider                    |       Version:  1.0.0        
      Resolution:                                   |      Keywords:               
Platform_version:                                   |      Platform:  All          
        Must_fix:  No                               |   Status_info:  0            
----------------------------------------------------+-----------------------
Comment (by lutra):

 Replying to [comment:16 wonder]:
 > What operations and functions should such field calculator support?

 I know that make comparisons it is always bad, but (if you want to stay
 out of the arc* playground) I would suggest to have a look at the "field
 calculator" of gvSIG. It has many commands, every one has his own short
 description, so you may want to have a look to the program (I cannot find
 references of all the commands, not even in the manual, pag. 220
 [ftp://downloads.gvsig.org/gva/descargas/manuales/gvSIG-1_1-man-v1-en.pdf
 here]).

 See the attached image.

 Among the others you can calculate areas, perimeters and lenghts without
 having to create a new shapefile like ftools requires.

 Command list:

 {{{
 ABS
 ACOS
 AREA
 ASIN
 ATAN
 CEIL
 COS
 < >
 /
 E
 ==
 EXP
 <=
 <
 LOG
 MAX
 MIN
 -
 >=
 >
 PERIMETER
 PI
 +
 POW
 RANDOM
 ROUND
 SIN
 SSQRT
 TAN
 *
 TODEGREES
 TONUMBER
 TORADIANS
 TOSTRING

 }}}

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/243#comment:17>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list