Skip to content
Permalink
Browse files

move remaining function_help to json and update it's translation hand…

…ling
  • Loading branch information
jef-n committed Sep 20, 2015
1 parent 2affb27 commit 82b34afe03e9c194667c419a2963c9836b18af1b
Showing with 1,186 additions and 839 deletions.
  1. +1 −1 python/plugins/processing/algs/qgis/OrientedMinimumBoundingBox.py
  2. +0 −1 resources/CMakeLists.txt
  3. +0 −32 resources/function_help/CMakeLists.txt
  4. +2 −1 resources/function_help/json/$area
  5. +2 −1 resources/function_help/json/$atlasfeature
  6. +2 −1 resources/function_help/json/$atlasfeatureid
  7. +2 −1 resources/function_help/json/$atlasgeometry
  8. +8 −0 resources/function_help/json/$currentfeature
  9. +7 −0 resources/function_help/json/$feature
  10. +7 −0 resources/function_help/json/$geometry
  11. +7 −0 resources/function_help/json/$id
  12. +5 −2 resources/function_help/json/$length
  13. +9 −0 resources/function_help/json/$map
  14. +8 −0 resources/function_help/json/$numfeatures
  15. +7 −0 resources/function_help/json/$numpages
  16. +7 −0 resources/function_help/json/$page
  17. +7 −0 resources/function_help/json/$perimeter
  18. +7 −0 resources/function_help/json/$rownum
  19. +8 −0 resources/function_help/json/$scale
  20. +7 −0 resources/function_help/json/$x
  21. +2 −1 resources/function_help/json/$x_at
  22. +7 −0 resources/function_help/json/$y
  23. +2 −1 resources/function_help/json/$y_at
  24. +15 −0 resources/function_help/json/AND
  25. +5 −0 resources/function_help/json/CASE
  26. +5 −0 resources/function_help/json/Color
  27. +5 −0 resources/function_help/json/Conditionals
  28. +5 −0 resources/function_help/json/Conditions
  29. +5 −0 resources/function_help/json/Conversions
  30. +5 −0 resources/function_help/json/Custom
  31. +5 −0 resources/function_help/json/Date and Time
  32. +6 −0 resources/function_help/json/Field
  33. +6 −0 resources/function_help/json/Fields and Values
  34. +5 −0 resources/function_help/json/Fuzzy Matching
  35. +5 −0 resources/function_help/json/General
  36. +5 −0 resources/function_help/json/GeometryGroup
  37. +18 −0 resources/function_help/json/ILIKE
  38. +13 −0 resources/function_help/json/IN
  39. +17 −0 resources/function_help/json/IS
  40. +14 −0 resources/function_help/json/IS NOT
  41. +16 −0 resources/function_help/json/LIKE
  42. +5 −0 resources/function_help/json/Math
  43. +12 −0 resources/function_help/json/NOT
  44. +9 −0 resources/function_help/json/NULL
  45. +14 −0 resources/function_help/json/OR
  46. +5 −0 resources/function_help/json/Operators
  47. +5 −0 resources/function_help/json/Recent
  48. +5 −0 resources/function_help/json/Record
  49. +5 −0 resources/function_help/json/String
  50. +5 −0 resources/function_help/json/Variables
  51. +2 −1 resources/function_help/json/abs
  52. +2 −1 resources/function_help/json/acos
  53. +2 −1 resources/function_help/json/age
  54. +2 −1 resources/function_help/json/area
  55. +2 −1 resources/function_help/json/asin
  56. +2 −1 resources/function_help/json/atan
  57. +2 −1 resources/function_help/json/atan2
  58. +2 −1 resources/function_help/json/attribute
  59. +2 −1 resources/function_help/json/bounds
  60. +2 −1 resources/function_help/json/bounds_height
  61. +2 −1 resources/function_help/json/bounds_width
  62. +2 −1 resources/function_help/json/buffer
  63. +2 −1 resources/function_help/json/ceil
  64. +2 −1 resources/function_help/json/centroid
  65. +2 −1 resources/function_help/json/clamp
  66. +2 −1 resources/function_help/json/coalesce
  67. +2 −1 resources/function_help/json/color_cmyk
  68. +2 −1 resources/function_help/json/color_cmyka
  69. +2 −1 resources/function_help/json/color_hsl
  70. +2 −1 resources/function_help/json/color_hsla
  71. +2 −1 resources/function_help/json/color_hsv
  72. +2 −1 resources/function_help/json/color_hsva
  73. +2 −1 resources/function_help/json/color_rgb
  74. +2 −1 resources/function_help/json/color_rgba
  75. +2 −1 resources/function_help/json/combine
  76. +2 −1 resources/function_help/json/concat
  77. +2 −1 resources/function_help/json/contains
  78. +2 −1 resources/function_help/json/convex_hull
  79. +2 −1 resources/function_help/json/cos
  80. +2 −1 resources/function_help/json/crosses
  81. +2 −1 resources/function_help/json/day
  82. +2 −1 resources/function_help/json/difference
  83. +2 −1 resources/function_help/json/disjoint
  84. +2 −1 resources/function_help/json/distance
  85. +2 −1 resources/function_help/json/end_point
  86. +2 −1 resources/function_help/json/exp
  87. +2 −1 resources/function_help/json/floor
  88. +2 −1 resources/function_help/json/format
  89. +6 −3 resources/function_help/json/format_date
  90. +2 −1 resources/function_help/json/format_number
  91. +2 −1 resources/function_help/json/geom_from_gml
  92. +2 −1 resources/function_help/json/geom_from_wkt
  93. +2 −1 resources/function_help/json/geom_to_wkt
  94. +2 −1 resources/function_help/json/geometry
  95. +2 −1 resources/function_help/json/get_feature
  96. +2 −1 resources/function_help/json/hamming_distance
  97. +2 −1 resources/function_help/json/hour
  98. +6 −4 resources/function_help/json/if
  99. +2 −1 resources/function_help/json/intersection
  100. +2 −1 resources/function_help/json/intersects
  101. +9 −5 resources/function_help/json/intersects_bbox
  102. +9 −6 resources/function_help/json/layer_property
  103. +5 −3 resources/function_help/json/left
  104. +2 −1 resources/function_help/json/length
  105. +9 −6 resources/function_help/json/levenshtein
  106. +5 −3 resources/function_help/json/ln
  107. +9 −6 resources/function_help/json/log
  108. +5 −3 resources/function_help/json/log10
  109. +9 −6 resources/function_help/json/longest_common_substring
  110. +2 −1 resources/function_help/json/lower
  111. +6 −4 resources/function_help/json/lpad
  112. +5 −3 resources/function_help/json/make_point
  113. +6 −4 resources/function_help/json/max
  114. +2 −1 resources/function_help/json/min
  115. +2 −1 resources/function_help/json/minute
  116. +2 −1 resources/function_help/json/month
  117. +2 −1 resources/function_help/json/now
  118. +2 −1 resources/function_help/json/num_points
  119. +13 −0 resources/function_help/json/op_asterisk
  120. +15 −0 resources/function_help/json/op_concat
  121. +13 −0 resources/function_help/json/op_div
  122. +15 −0 resources/function_help/json/op_eq
  123. +13 −0 resources/function_help/json/op_exp
  124. +14 −0 resources/function_help/json/op_ge
  125. +14 −0 resources/function_help/json/op_gt
  126. +14 −0 resources/function_help/json/op_le
  127. +14 −0 resources/function_help/json/op_lt
  128. +13 −0 resources/function_help/json/op_minus
  129. +13 −0 resources/function_help/json/op_modulo
  130. +15 −0 resources/function_help/json/op_ne
  131. +13 −0 resources/function_help/json/op_plus
  132. +2 −1 resources/function_help/json/overlaps
  133. +2 −1 resources/function_help/json/perimeter
  134. +2 −1 resources/function_help/json/pi
  135. +2 −1 resources/function_help/json/point_n
  136. +2 −1 resources/function_help/json/project_color
  137. +2 −1 resources/function_help/json/ramp_color
  138. +2 −1 resources/function_help/json/rand
  139. +2 −1 resources/function_help/json/randf
  140. +2 −1 resources/function_help/json/regexp_match
  141. +2 −1 resources/function_help/json/regexp_replace
  142. +2 −1 resources/function_help/json/regexp_substr
  143. +2 −1 resources/function_help/json/replace
  144. +2 −1 resources/function_help/json/right
  145. +10 −5 resources/function_help/json/round
  146. +2 −1 resources/function_help/json/rpad
  147. +13 −9 resources/function_help/json/scale_exp
  148. +13 −9 resources/function_help/json/scale_linear
  149. +2 −1 resources/function_help/json/second
  150. +2 −1 resources/function_help/json/sin
  151. +2 −1 resources/function_help/json/soundex
  152. +2 −1 resources/function_help/json/sqrt
  153. +2 −1 resources/function_help/json/start_point
  154. +2 −1 resources/function_help/json/strpos
  155. +2 −1 resources/function_help/json/substr
  156. +2 −1 resources/function_help/json/sym_difference
  157. +2 −1 resources/function_help/json/tan
  158. +2 −1 resources/function_help/json/title
  159. +2 −1 resources/function_help/json/to_date
  160. +2 −1 resources/function_help/json/to_datetime
  161. +2 −1 resources/function_help/json/to_int
  162. +3 −2 resources/function_help/json/to_interval
  163. +2 −1 resources/function_help/json/to_real
  164. +2 −1 resources/function_help/json/to_string
  165. +2 −1 resources/function_help/json/to_time
  166. +2 −1 resources/function_help/json/touches
  167. +2 −1 resources/function_help/json/transform
  168. +2 −1 resources/function_help/json/trim
  169. +2 −1 resources/function_help/json/union
  170. +2 −1 resources/function_help/json/upper
  171. +2 −1 resources/function_help/json/uuid
  172. +3 −2 resources/function_help/json/var
  173. +2 −1 resources/function_help/json/week
  174. +2 −1 resources/function_help/json/within
  175. +2 −1 resources/function_help/json/wordwrap
  176. +2 −1 resources/function_help/json/x
  177. +2 −1 resources/function_help/json/x_max
  178. +2 −1 resources/function_help/json/x_min
  179. +2 −1 resources/function_help/json/y
  180. +2 −1 resources/function_help/json/y_max
  181. +2 −1 resources/function_help/json/y_min
  182. +2 −1 resources/function_help/json/year
  183. +0 −13 resources/function_help/text/$currentfeature
  184. +0 −12 resources/function_help/text/$feature
  185. +0 −12 resources/function_help/text/$geometry
  186. +0 −12 resources/function_help/text/$id
  187. +0 −11 resources/function_help/text/$length
  188. +0 −16 resources/function_help/text/$map
  189. +0 −12 resources/function_help/text/$numfeatures
  190. +0 −12 resources/function_help/text/$numpages
  191. +0 −12 resources/function_help/text/$page
  192. +0 −12 resources/function_help/text/$perimeter
  193. +0 −12 resources/function_help/text/$rownum
  194. +0 −12 resources/function_help/text/$scale
  195. +0 −12 resources/function_help/text/$x
  196. +0 −12 resources/function_help/text/$y
  197. +0 −13 resources/function_help/text/*
  198. +0 −13 resources/function_help/text/+
  199. +0 −13 resources/function_help/text/-
  200. +0 −13 resources/function_help/text/<
  201. +0 −13 resources/function_help/text/<=
  202. +0 −14 resources/function_help/text/<>
  203. +0 −13 resources/function_help/text/>
  204. +0 −13 resources/function_help/text/>=
  205. +0 −15 resources/function_help/text/AND
  206. +0 −27 resources/function_help/text/CASE
  207. +0 −28 resources/function_help/text/CASE ELSE
  208. +0 −3 resources/function_help/text/Color
  209. +0 −2 resources/function_help/text/Conditionals
  210. +0 −2 resources/function_help/text/Conditions
  211. +0 −2 resources/function_help/text/Conversions
  212. +0 −3 resources/function_help/text/Custom
  213. +0 −2 resources/function_help/text/Date and Time
  214. +0 −9 resources/function_help/text/Field
  215. +0 −9 resources/function_help/text/Fields and Values
  216. +0 −3 resources/function_help/text/Fuzzy Matching
  217. +0 −2 resources/function_help/text/General
  218. +0 −2 resources/function_help/text/GeometryGroup
  219. +0 −17 resources/function_help/text/ILIKE
  220. +0 −13 resources/function_help/text/IN
  221. +0 −17 resources/function_help/text/IS
  222. +0 −15 resources/function_help/text/LIKE
  223. +0 −2 resources/function_help/text/Math
  224. +0 −14 resources/function_help/text/NOT
  225. +0 −14 resources/function_help/text/NULL
  226. +0 −13 resources/function_help/text/OR
  227. +0 −2 resources/function_help/text/Operators
  228. +0 −3 resources/function_help/text/Recent (Selection)
  229. +0 −2 resources/function_help/text/Record
  230. +0 −2 resources/function_help/text/String
  231. +0 −3 resources/function_help/text/Variables
  232. +0 −15 resources/function_help/text/||
  233. +109 −59 resources/process_function_template.py
  234. +10 −0 src/core/CMakeLists.txt
  235. +145 −29 src/core/qgsexpression.cpp
  236. +72 −1 src/core/qgsexpression.h
  237. +4 −6 src/gui/qgsexpressionbuilderwidget.cpp
@@ -129,7 +129,7 @@ def featureOmbb(self, layer, writer, progress):
height])
writer.addFeature(outFeat)
else:
progress.setInfo(self.tr("Can't calculate an OMBB for features n°") + str(inFeat.id()) + ".")
progress.setInfo(self.tr("Can't calculate an OMBB for feature {0}.").format(inFeat.id()))
current += 1
progress.setPercentage(int(current * total))

@@ -4,4 +4,3 @@ INSTALL(DIRECTORY cpt-city-qgis-min DESTINATION ${QGIS_DATA_DIR}/resources)
INSTALL(DIRECTORY themes DESTINATION ${QGIS_DATA_DIR}/resources)

ADD_SUBDIRECTORY(context_help)
ADD_SUBDIRECTORY(function_help)

This file was deleted.

@@ -1,5 +1,6 @@
{
"function": "$area",
"name": "$area",
"type": "function",
"description": "Returns the area of the current feature.",
"examples": [ { "expression":"$area", "returns":"42"}]
}
@@ -1,5 +1,6 @@
{
"function": "$atlasfeature",
"name": "$atlasfeature",
"type": "function",
"description": "In atlas generation, returns the current feature that is iterated over on the coverage layer. This can be used with the 'attribute' function to return attribute values from the current atlas feature.",
"examples": [ { "expression":"attribute( $atlasfeature, 'name' )", "returns":"value stored in 'name' attribute for the current atlas feature"}]
}
@@ -1,5 +1,6 @@
{
"function": "$atlasfeatureid",
"name": "$atlasfeatureid",
"type": "function",
"description": "Returns the feature id of the current row while using atlas. This enables you to use features of atlas in rules and for example show or hide features based on their id.",
"examples": [ { "expression":"$atlasfeatureid = $id", "returns":"true"}]
}
@@ -1,5 +1,6 @@
{
"function": "$atlasgeometry",
"name": "$atlasgeometry",
"type": "function",
"description": "Returns the geometry of the current feature iterated in atlas. Can be used for rule based display of geometry when using atlas. For example to only show geometries of other layers when their geometry intersects the iterated geometry of features using atlas.",
"examples": [ { "expression":"intersects( $atlasgeometry, $geometry )", "returns":"true"}]
}
@@ -0,0 +1,8 @@
{
"name": "$currentfeature",
"type": "function",
"description": "Returns the current feature being evaluated. This can be used with the 'attribute' function to evaluate attribute values from the current feature.",
"examples": [
{ "expression":"attribute( $currentfeature, 'name' )", "returns":"value stored in 'name' attribute for the current feature"}
]
}
@@ -0,0 +1,7 @@
{
"name": "$feature",
"type": "function",
"description": "In atlas generation, returns the current feature number that is iterated over on the coverage layer.",
"examples": [ { "expression":"$feature", "returns":"2"}
]
}
@@ -0,0 +1,7 @@
{
"name": "$geometry",
"type": "function",
"description": "Returns the geometry of the current feature. Can be used for processing with other functions.",
"examples": [ { "expression":"geomToWKT( $geometry )", "returns":"POINT(6 50)"}
]
}
@@ -0,0 +1,7 @@
{
"name": "$id",
"type": "function",
"description": "Returns the feature id of the current row.",
"examples": [ { "expression":"$id", "returns":"42"}
]
}
@@ -1,5 +1,8 @@
{
"function": "$length",
"name": "$length",
"type": "function",
"description": "Returns the length of a linestring. If you need the length of a border of a polygon, use $perimeter instead.",
"examples": [ { "expression":"$length", "returns":"42"}]
"examples": [
{ "expression":"$length", "returns":"42.4711"}
]
}
@@ -0,0 +1,9 @@
{
"name": "$map",
"type": "function",
"description": "Returns the id of the current map item if the map is being drawn in a composition, or \"canvas\" if the map is being drawn within the main QGIS window.",
"examples": [
{ "expression": "$map", "returns": "\"overview_map\"", "description": "within a composer item"},
{ "expression": "$map", "returns": "\"canvas\"", "description": "within the main QGIS main canvas"}
]
}
@@ -0,0 +1,8 @@
{
"name": "$numfeatures",
"type": "function",
"description": "In atlas generation, returns the total number of features within the coverage layer.",
"examples": [
{ "expression":"$numfeatures", "returns":"42"}
]
}
@@ -0,0 +1,7 @@
{
"name": "$numpages",
"type": "function",
"description": "Returns the total number of pages in the composition.",
"examples": [ { "expression":"$numpages", "returns":"42"}
]
}
@@ -0,0 +1,7 @@
{
"name": "$page",
"type": "function",
"description": "Returns the current page number within a composition.",
"examples": [ { "expression":"$page", "returns":"2"}
]
}
@@ -0,0 +1,7 @@
{
"name": "$perimeter",
"type": "function",
"description": "Returns the perimeter length of the current feature.",
"examples": [ { "expression":"$perimeter", "returns":"42"}
]
}
@@ -0,0 +1,7 @@
{
"name": "$rownum",
"type": "function",
"description": "Returns the number of the current row.",
"examples": [ { "expression":"$rownum", "returns":"4711"}
]
}
@@ -0,0 +1,8 @@
{
"name": "$scale",
"type": "function",
"description": "Returns the current scale of the map canvas.\\n\\nNote: This function is only available in some contexts and will be 0 otherwise.",
"examples": [
{ "expression":"$scale", "returns":"10000"}
]
}
@@ -0,0 +1,7 @@
{
"name": "$x",
"type": "function",
"description": "Returns the x coordinate of the current feature.",
"examples": [ { "expression":"$x", "returns":"42"}
]
}
@@ -1,5 +1,6 @@
{
"function": "$x_at",
"name": "$x_at",
"type": "function",
"description": "Retrieves a x coordinate of the current feature's geometry.",
"arguments": [ {"arg":"i","description":"index of point of a line (indices start at 0; negative values apply from the last index)"}],
"examples": [ { "expression":"$x_at(1)", "returns":"5"}
@@ -0,0 +1,7 @@
{
"name": "$y",
"type": "function",
"description": "Returns the y coordinate of the current feature.",
"examples": [ { "expression":"$y", "returns":"42"}
]
}
@@ -1,5 +1,6 @@
{
"function": "$y_at",
"name": "$y_at",
"type": "function",
"description": "Retrieves a y coordinate of the current feature's geometry.",
"arguments": [ {"arg":"i","description":"index of point of a line (indices start at 0; negative values apply from the last index)"}],
"examples": [ { "expression":"$y_at(1)", "returns":"2"}
@@ -0,0 +1,15 @@
{
"name": "AND",
"type": "operator",
"description": "Returns 1 when condition a and b are true.",
"arguments": [
{ "arg": "a", "description": "condition" },
{ "arg": "b", "description": "condition" }
],
"examples": [
{ "expression":"TRUE AND TRUE", "returns":"1"},
{ "expression":"TRUE AND FALSE", "returns":"0"},
{ "expression":"4 = 2+2 AND 1 = 1", "returns":"1"},
{ "expression":"4 = 2+2 AND 1 = 2", "returns":"0"}
]
}
@@ -0,0 +1,5 @@
{
"name": "CASE",
"type": "expression",
"description": "<pre>\\nCASE\\nWHEN <i>condition</i> THEN <i>result</i>\\n[ ...n ]\\n[ ELSE <i>result</i> ]\\nEND\\n</pre>\\n[ ] marks optional components\\n\\n<h4>Arguments</h4>\\n <i> WHEN condition</i> - The condition expression to evaluate. <br>\\n<i> THEN result</i> - If <i>condition</i> evaluates to True then <i>result</i> is evaluated and returned. <br>\\n<i> ELSE result</i> - If none of the above conditions evaluated to True then <i>result</i> is evaluated and returned. <br>\\n\\n<h4>Example</h4>\\n<pre>\\nCASE\\nWHEN <i>\"column\" IS NULL</i> THEN <i>'None'</i>\\n END\\n</pre>\\n"
}
@@ -0,0 +1,5 @@
{
"name": "Color",
"type": "group",
"description": "This group contains functions for manipulating colors"
}
@@ -0,0 +1,5 @@
{
"name": "Conditionals",
"type": "group",
"description": "This group contains functions to handle conditional checks in expressions."
}
@@ -0,0 +1,5 @@
{
"name": "Conditions",
"type": "group",
"description": "This group contains functions that operate on condition."
}
@@ -0,0 +1,5 @@
{
"name": "Conversions",
"type": "group",
"description": "This group contains functions to convert on data type to another e.g string to integer, integer to string."
}
@@ -0,0 +1,5 @@
{
"name": "Custom",
"type": "group",
"description": "This group contains custom user-created Python functions."
}
@@ -0,0 +1,5 @@
{
"name": "Date and Time",
"type": "group",
"description": "This group contains functions for handling date and time data."
}
@@ -0,0 +1,6 @@
{
"name": "Field",
"type": "group",
"description": "Double click to add field name to expression string.\\nRight-Click on field name to open context menu sample value loading options.",
"notes": "Loading field values from WFS layers isn't supported, before the layer is actually inserted, ie. when building queries."
}
@@ -0,0 +1,6 @@
{
"name": "Fields and Values",
"type": "group",
"description": "Contains a list of fields from the layer. Sample values can also be accessed via right-click.\\nSelect the field name from the list then right-click to access context menu with options to load sample values from the selected field.\\n",
"notes": "Loading field values from WFS layers isn't supported, before the layer is actually inserted, ie. when building queries."
}
@@ -0,0 +1,5 @@
{
"name": "Fuzzy Matching",
"type": "group",
"description": "This group contains functions for fuzzy comparisons between values."
}
@@ -0,0 +1,5 @@
{
"name": "General",
"type": "group",
"description": "This group contains general assorted functions."
}
@@ -0,0 +1,5 @@
{
"name": "GeometryGroup",
"type": "group",
"description": "This group contains functions that operate on geometry objects e.g length, area."
}
@@ -0,0 +1,18 @@
{
"name": "ILIKE",
"type": "operator",
"description": "Returns 1 if the first parameter matches case-insensitive the supplied pattern. LIKE can be used instead of ILIKE to make the match case-sensitive. Works with numbers also.",
"arguments": [
{"arg":"string/number","description":"string to search"},
{"arg":"pattern","description":"pattern to find"}
],
"examples": [
{ "expression":"'A' ILIKE 'A'", "returns":"1"},
{ "expression":"'A' ILIKE 'a'", "returns":"1"},
{ "expression":"'A' ILIKE 'B'", "returns":"0"},
{ "expression":"'ABC' ILIKE 'b'", "returns":"0"},
{ "expression":"'ABC' ILIKE 'B'", "returns":"0"},
{ "expression":"'ABC' ILIKE '%b%'", "returns":"1"},
{ "expression":"'ABC' ILIKE '%B%'", "returns":"1"}
]
}
@@ -0,0 +1,13 @@
{
"name": "IN",
"type": "operator",
"description": "Returns 1 if value is found within a list of values.",
"arguments": [
{"arg":"a","description":"value"},
{"arg":"b","description":"list of values"}
],
"examples": [
{ "expression":"'A' IN ('A','B')", "returns":"1"},
{ "expression":"'A' IN ('C','B')", "returns":"0"}
]
}
@@ -0,0 +1,17 @@
{
"name": "IS",
"type": "operator",
"description": "Returns 1 if a is the same as b.",
"arguments": [
{"arg":"a","description":"any value"},
{"arg":"b","description":"any value"}
],
"examples": [
{ "expression":"'A' IS 'A'", "returns":"1"},
{ "expression":"'A' IS 'a'", "returns":"0"},
{ "expression":"4 IS 4", "returns":"1"},
{ "expression":"4 IS 2+2", "returns":"1"},
{ "expression":"4 IS 2", "returns":"0"},
{ "expression":"$geometry IS NULL", "returns":"0, if your geometry is not NULL"}
]
}
@@ -0,0 +1,14 @@
{
"name": "IS NOT",
"type": "operator",
"description": "Returns 1 if a is not the same as b.",
"arguments": [
{"arg":"a","description":"value"},
{"arg":"b","description":"value"}
],
"examples": [
{ "expression":"'a' IS NOT 'b'", "returns":"1"},
{ "expression":"'a' IS NOT 'a'", "returns":"0"},
{ "expression":"4 IS NOT 2+2", "returns":"0"}
]
}
@@ -0,0 +1,16 @@
{
"name": "LIKE",
"type": "operator",
"description": "Returns 1 if the first parameter matches the supplied pattern. Works with numbers also.",
"arguments": [
{"arg":"string/number","description":"value"},
{"arg":"pattern","description":"pattern to compare value with"}
],
"examples": [
{ "expression":"'A' LIKE 'A'", "returns":"1"},
{ "expression":"'A' LIKE 'a'", "returns":"0"},
{ "expression":"'A' LIKE 'B'", "returns":"0"},
{ "expression":"'ABC' LIKE 'B'", "returns":"0"},
{ "expression":"'ABC' LIKE '%B%'", "returns":"1"}
]
}
@@ -0,0 +1,5 @@
{
"name": "Math",
"type": "group",
"description": "This group contains math functions e.g square root, sin and cos"
}

1 comment on commit 82b34af

@m-kuhn

This comment has been minimized.

Copy link
Member

@m-kuhn m-kuhn commented on 82b34af Sep 20, 2015

Good job 👍

Please sign in to comment.
You can’t perform that action at this time.