mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-15 00:07:25 -05:00
missing functs and improvements
This commit is contained in:
parent
fed4c74928
commit
70ab8651a0
@ -19,5 +19,5 @@
|
||||
"expression": "array_cat(array(1,2),array(2,3))",
|
||||
"returns": "[ 1, 2, 2, 3 ]"
|
||||
}],
|
||||
"tags": ["array", "concatenated", "arrays", "containing"]
|
||||
"tags": ["concatenated", "arrays", "containing"]
|
||||
}
|
||||
|
||||
@ -7,8 +7,15 @@
|
||||
{"arg":"array", "description":"the input array"},
|
||||
{"arg":"delimiter","optional":true,"default":"','","description":"the string delimiter used to separate concatenated array elements"},
|
||||
{"arg":"empty_value","optional":true,"default":"''","description":"the optional string to use as replacement for empty (zero length) matches"}],
|
||||
"examples": [ { "expression":"array_to_string(array('1','2','3'))", "returns":"'1,2,3'"},
|
||||
{ "expression":"array_to_string(array(1,2,3),'-')", "returns":"'1-2-3'"},
|
||||
{ "expression":"array_to_string(array('1','','3'),',','0')", "returns":"'1,0,3'"}
|
||||
]
|
||||
"examples": [{
|
||||
"expression":"array_to_string(array('1','2','3'))",
|
||||
"returns":"'1,2,3'"
|
||||
}, {
|
||||
"expression":"array_to_string(array(1,2,3),'-')",
|
||||
"returns":"'1-2-3'"
|
||||
}, {
|
||||
"expression":"array_to_string(array('1','','3'),',','0')",
|
||||
"returns":"'1,0,3'"
|
||||
}],
|
||||
"tags": ["concatenates", "delimiter", "join", "aggregate"]
|
||||
}
|
||||
|
||||
@ -14,5 +14,5 @@
|
||||
"expression": "geom_to_wkt(line_interpolate_point(geometry:=geom_from_wkt('LineString(0 0, 10 0)'),distance:=5))",
|
||||
"returns": "'Point (5 0)'"
|
||||
}],
|
||||
"tags": ["distance", "interpolated", "linestring", "point", "specified"]
|
||||
"tags": ["distance", "interpolated", "linestring", "point", "specified", "along"]
|
||||
}
|
||||
|
||||
@ -14,5 +14,5 @@
|
||||
"expression": "line_locate_point(geometry:=geom_from_wkt('LineString(0 0, 10 0)'),point:=geom_from_wkt('Point(5 0)'))",
|
||||
"returns": "5.0"
|
||||
}],
|
||||
"tags": ["distance", "point", "specified", "closest", "linestring", "position", "corresponding"]
|
||||
"tags": ["distance", "point", "specified", "closest", "linestring", "position", "corresponding", "along"]
|
||||
}
|
||||
|
||||
@ -11,5 +11,5 @@
|
||||
"expression": "point_on_surface($geometry)",
|
||||
"returns": "a point geometry"
|
||||
}],
|
||||
"tags": ["point", "surface", "lie", "centroid"]
|
||||
"tags": ["point", "surface", "lie", "centroid", "overlay"]
|
||||
}
|
||||
|
||||
@ -35,5 +35,5 @@
|
||||
"expression": "relation_aggregate('my_relation','array_agg', \"id\")",
|
||||
"returns": "array of the id field from all matching child features using the 'my_relation' relation"
|
||||
}],
|
||||
"tags": ["child", "matching", "aggregate", "features", "relation", "calculated"]
|
||||
"tags": ["child", "matching", "aggregate", "features", "relation"]
|
||||
}
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
{"arg":"string", "description":"the input string"},
|
||||
{"arg":"delimiter","optional":true,"default":"','","description":"the string delimiter used to split the input string"},
|
||||
{"arg":"empty_value","optional":true,"default":"''","description":"the optional string to use as replacement for empty (zero length) matches"}],
|
||||
"examples": [ { "expression":"string_to_array('1,2,3',',')", "returns":"[ '1', '2', '3' ]"},
|
||||
"examples": [{ "expression":"string_to_array('1,2,3',',')", "returns":"[ '1', '2', '3' ]"},
|
||||
{ "expression":"string_to_array('1,,3',',','0')", "returns":"[ '1', '0', '3' ]"}],
|
||||
"tags": [ "split", "convert", "separate" ]
|
||||
"tags": [ "split", "convert", "separate", "delimiter", "divides" ]
|
||||
}
|
||||
|
||||
@ -17,5 +17,5 @@
|
||||
"expression": "geom_to_wkt( transform( make_point(488995.53240249, 7104473.38600835), 'EPSG:2154', 'EPSG:4326' ) )",
|
||||
"returns": "'POINT(0 51)'"
|
||||
}],
|
||||
"tags": ["crs", "source", "transformed", "destination"]
|
||||
"tags": ["crs", "source", "transformed", "destination", "reprojection"]
|
||||
}
|
||||
|
||||
@ -17,5 +17,5 @@
|
||||
"expression": "translate($geometry, 5, 10)",
|
||||
"returns": "a geometry of the same type like the original one"
|
||||
}],
|
||||
"tags": ["version", "spatial", "reference", "calculations", "system", "translated"]
|
||||
"tags": ["spatial", "reference", "calculations", "system", "translated", "displace", "move"]
|
||||
}
|
||||
|
||||
@ -21,5 +21,5 @@
|
||||
"expression": "try( to_date( 'invalid_date' ) )",
|
||||
"returns": "NULL"
|
||||
}],
|
||||
"tags": ["return", "tries", "error", "alternative", "provided", "free"]
|
||||
"tags": ["return", "tries", "error", "alternative", "provided", "exception"]
|
||||
}
|
||||
|
||||
@ -8,5 +8,9 @@
|
||||
{"arg":"value","description":"the value to set"},
|
||||
{"arg":"expression","description":"the expression for which the variable will be available"}
|
||||
],
|
||||
"examples": [ { "expression":"with_variable('my_sum', 1 + 2 + 3, @my_sum * 2 + @my_sum * 5)", "returns":"42"}]
|
||||
"examples": [{
|
||||
"expression":"with_variable('my_sum', 1 + 2 + 3, @my_sum * 2 + @my_sum * 5)",
|
||||
"returns":"42"
|
||||
}],
|
||||
"tags": ["variable", "argument", "value", "evaluation"]
|
||||
}
|
||||
|
||||
@ -17,5 +17,5 @@
|
||||
"expression": "within( geom_from_wkt( 'POINT( 5 5 )' ), geom_from_wkt( 'POLYGON((0 0, 0 1, 1 1, 1 0, 0 0 ))' ) )",
|
||||
"returns": "false"
|
||||
}],
|
||||
"tags": ["tests", "contains"]
|
||||
"tags": ["tests", "contains", "completely"]
|
||||
}
|
||||
|
||||
@ -21,5 +21,5 @@
|
||||
"expression": "wordwrap('UNIVERSITY OF QGIS',-3)",
|
||||
"returns": "'UNIVERSITY<br>OF QGIS'"
|
||||
}],
|
||||
"tags": ["maximum", "minimum", "wrapped", "characters"]
|
||||
"tags": ["maximum", "minimum", "wrapped", "characters", "multiline"]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user