0007-context-help-expand-log-to-logarithm.patch

Alister Hood, 2011-10-19 12:11 AM

Download (3.86 KB)

View differences:

resources/context_help/QgsFieldCalculator-en_US
19 19
<tr><td><i>number</i></td><td>number</td></tr>
20 20
<tr><td>NULL</td><td>null value</td></tr>
21 21
<tr><td>exp(<tt>a</tt>)</td><td>Euler's number e to the power of <tt>a</tt></td></tr>
22
<tr><td>ln(<tt>a</tt>)</td><td>natural log (i.e. base e) of <tt>a</tt></td></tr>
23
<tr><td>log10(<tt>a</tt>)</td><td>log base 10 of <tt>a</tt></td></tr>
22
<tr><td>ln(<tt>a</tt>)</td><td>natural logarithm (i.e. log base e) of <tt>a</tt></td></tr>
23
<tr><td>log10(<tt>a</tt>)</td><td>common logarithm (i.e. log base 10) of <tt>a</tt></td></tr>
24 24
<tr><td>log(<tt>a</tt>,<tt>b</tt>)</td><td>log base <tt>b</tt> of <tt>a</tt></td></tr>
25 25
<tr><td>sqrt(<tt>a</tt>)</td><td>square root</td></tr>
26 26
<tr><td>sin(<tt>a</tt>)</td><td>sine of <tt>a</tt></td></tr>
......
35 35
<tr><td>lower(<tt>a</tt>)</td><td>convert string <tt>a</tt> to lower case</td></tr>
36 36
<tr><td>upper(<tt>a</tt>)</td><td>convert string <tt>a</tt> to upper case</td></tr>
37 37
<tr><td>length(<tt>a</tt>)</td><td>length of string <tt>a</tt></td></tr>
38
<tr><td>atan2(y,x)</td><td>arctangent of y/x using the signs of the two arguments to determine the quadrant of the result.</td></tr>
38
<tr><td>atan2(<tt>y</tt>,<tt>x</tt>)</td><td>arctangent of <tt>y</tt>/<tt>x</tt> using the signs of the two arguments to determine the quadrant of the result.</td></tr>
39 39
<tr><td>replace(<tt>a</tt>,<i>replacethis</i>,<i>withthat</i>)</td><td>replace <i>replacethis</i> with <i>withthat</i> in string <tt>a</tt></td></td>
40 40
<tr><td>regexp_replace(<tt>a</tt>,<i>replacethis</i>,<i>withthat</i>)</td><td>replace the regular expression <i>replacethis</i> with <i>withthat</i> in string <tt>a</tt></td></td>
41
<tr><td>substr(<tt>a</tt>,from,len)</td><td>len characters of string <tt>a</tt> starting from from (first character index is 1)</td></td>
41
<tr><td>substr(<tt>a</tt>,<i>from</i>,<i>len</i>)</td><td><i>len</i> characters of string <tt>a</tt> starting from <i>from</i> (first character index is 1)</td></td>
42 42
<tr><td><tt>a</tt> || <tt>b</tt></td><td>concatenate strings <tt>a</tt> and <tt>b</tt></td></tr>
43 43
<tr><td>$rownum</td><td>number current row</td></tr>
44 44
<tr><td>$area</td><td>area of polygon</td></tr>
......
47 47
<tr><td>$id</td><td>feature id</td></tr>
48 48
<tr><td>$x</td><td>x coordinate of point</td></tr>
49 49
<tr><td>$y</td><td>y coordinate of point</td></tr>
50
<tr><td>xat(n)</td><td>x coordinate of nth point of a line (indices start at 0; negative values apply to the last index)</td></tr>
51
<tr><td>yat(n)</td><td>y coordinate of nth point of a line (indices start at 0; negative values apply to the last index)</td></tr>
50
<tr><td>xat(<tt>n</tt>)</td><td>x coordinate of <tt>n</tt>th point of a line (indices start at 0; negative values apply to the last index)</td></tr>
51
<tr><td>yat(<tt>n</tt>)</td><td>y coordinate of <tt>n</tt>th point of a line (indices start at 0; negative values apply to the last index)</td></tr>
52 52
<tr><td><tt>a</tt> ^ <tt>b</tt></td><td><tt>a</tt> raised to the power of <tt>b</tt></td></tr>
53 53
<tr><td><tt>a</tt> * <tt>b</tt></td><td><tt>a</tt> multiplied by <tt>b</tt></td></tr>
54 54
<tr><td><tt>a</tt> / <tt>b</tt></td><td><tt>a</tt> divided by <tt>b</tt></td></tr>
55
-