572 Commits

Author SHA1 Message Date
Alessandro Pasotti
f040c260bd Raster maptips 2022-11-09 09:48:02 +01:00
Alessandro Pasotti
b37f5f4b03 Raster attributes and raster maptips 2022-11-09 09:48:02 +01:00
Salvatore Fiandaca
502a539a24 print error example concave hull
function correction in the example in the help from `concavehull` to `concave_hull`
2022-10-03 07:14:50 +10:00
Harrissou Sant-anna
8de9cd4548 Fix array_get argument name
Fixes https://github.com/qgis/QGIS-Documentation/issues/7814
2022-09-30 09:30:07 +10:00
Harrissou Sant-anna
264221442c Format between and not between functions syntax to match other operators' 2022-09-26 11:25:35 +10:00
Nyall Dawson
bf9325d679 Generalize a warning 2022-09-19 09:17:30 +02:00
Harrissou Sant-anna
c3b1fd43b9 make_valid - Add an example of unclosed polygon and reedit empty geometry example 2022-09-16 06:59:18 +10:00
Nyall Dawson
341add8cb9 Add new variable form of current feature expression functions
This adds a newer style variable form of referencing the current
feature and its attributes in expressions.

The newly introduced variables are:

- @feature: a replacement for $currentfeature, contains the
current feature
- @id: a replacement for $id, contains the current feature id
- @geometry: a replacement for $geometry, contains the current
feature geometry

This is intended as a step towards eventually deprecating the
older $ style functions, and providing a more consistent
approach to expressions instead of the older unpredictable mix of @/$.
For now these old functions still work (and likely will ALWAYS
remain working for old project compatibility), AND they are also
still exposed in the UI just to avoid user confusion (eventually
we can hide them).
2022-09-09 11:30:25 +10:00
Harrissou Sant-anna
55319c4485 Add linework based example 2022-09-09 07:13:57 +10:00
Harrissou Sant-anna
5507547d95 Fix make_valid examples 2022-09-09 07:13:57 +10:00
Nyall Dawson
dcdb4cd054 [feature][expressions] Add new shared_paths function
Returns a collection containing paths shared by the two
input geometries. Those going in the same direction are
in the first element of the collection, those going in
the opposite direction are in the second element. The
paths themselves are given in the direction of the first
geometry.

(Exposes the GEOS shared paths functionality for use
in expressions.)
2022-09-05 13:02:40 +10:00
Nyall Dawson
b9413ed7b9 [expressions] Add 'method' and 'keep_collapsed' parameters to make_valid function 2022-09-05 12:35:53 +10:00
Harrissou Sant-anna
af22f2cf01 Fix and add examples of geometries_to_array function 2022-09-04 07:02:10 +10:00
Alex
09c8a19627
[expressions] Add make_valid and geometries_to_array functions 2022-09-03 09:35:54 +10:00
Loïc Bartoletti
ada9fc6d45
Merge pull request #50052 from DelazJ/makerectangles3points
Remove excess parentheses
2022-09-01 13:39:09 +02:00
Harrissou Sant-anna
744203324f
Remove excess parentheses 2022-09-01 11:07:37 +02:00
Loïc Bartoletti
80e7ba354a
Add Concave hull API and expression function
Exposes the GEOS concave hull operation to QgsGeometry API and a via a new concave_hull expression function.

Requires GEOS 3.11+
2022-09-01 02:58:35 +00:00
Hannes
d8d850c2ed Improvements to line_interpolate_point() docs
- Make it more obvious that the distance is in CRS units, not a percentage, on the first example
- Add example that ends up with floating point coordinates
- Add example that returns NULL
2022-08-22 09:09:09 +10:00
Harrissou Sant-anna
42181ab68b
Add examples to NOT BETWEEN function
showcasing equality with bounds value as well as case-sensitivity
2022-06-27 13:15:00 +02:00
Harrissou Sant-anna
5319bd3ebe
Add tag 2022-06-27 13:14:43 +02:00
Harrissou Sant-anna
00613efb61
Add examples to the between function
showcasing equality with bounds value as well as case-sensitivity
2022-06-27 13:08:00 +02:00
Nyall Dawson
9d6a6a2233 Update resources/function_help/json/LIKE
Co-authored-by: Andrea Giudiceandrea <andreaerdna@libero.it>
2022-04-22 15:49:26 +10:00
Etienne Trimaille
a43cb5ea33 Expressions - Add some tags for search with "start", "begin", "end" 2022-04-22 15:49:26 +10:00
Harrissou Sant-anna
269b895aa3 Update AND 2022-04-08 08:56:23 +10:00
Harrissou Sant-anna
b45ebcc0ce Add missing quotes 2022-04-04 09:47:19 +10:00
Harrissou Sant-anna
87147e14cb Also fix TRUE in sentences outputs 2022-04-04 09:47:19 +10:00
Harrissou Sant-anna
1b38619279 More harmonization of expression output TRUE 2022-04-04 09:47:19 +10:00
Alessandro Pasotti
995c2905ca
Merge pull request #47866 from elpaso/true-false-function-docs
Replace 1/0 with TRUE/FALSE in function help
2022-03-31 10:31:21 +02:00
Alessandro Pasotti
b82e83624d
Update array_intersect 2022-03-30 19:31:12 +02:00
Alessandro Pasotti
612e8fa1fd
Update resources/function_help/json/within 2022-03-30 18:48:02 +02:00
Alessandro Pasotti
f1ae82c7f7
Apply suggestions from code review 2022-03-30 14:49:30 +02:00
Mathieu Pellerin
37abd1b5c4 Improve description of num_geometries() expression function to explicitly state support for multi-part geometries 2022-03-23 14:05:33 +10:00
Alessandro Pasotti
1201690790 Some more TRUE/FALSE homogenization 2022-03-21 09:20:52 +01:00
Alessandro Pasotti
db37ec5530
Apply suggestions from code review
Co-authored-by: Harrissou Sant-anna <delazj@gmail.com>
2022-03-21 09:17:02 +01:00
Alessandro Pasotti
14fdc19e88 Replace 1/0 with TRUE/FALSE in function help 2022-03-19 09:00:56 +01:00
Alessandro Pasotti
34f0e59735 Address PR review comments and handle NULLS
Refactor the evaluation code, handle NULLs to
return a boolean when it is possible.
2022-03-15 12:13:42 +01:00
Alessandro Pasotti
0f6d38b186 Fix function help 2022-03-14 14:19:53 +01:00
Alessandro Pasotti
abb99faa36 NOT BETWEEN help 2022-03-14 14:19:53 +01:00
Alessandro Pasotti
7601250a54 SQL expression compiler and more tests for BETWEEN 2022-03-14 14:19:52 +01:00
Nyall Dawson
555d966ebf Fix attribute name in get_feature docs 2022-02-23 11:17:41 +10:00
Harrissou Sant-anna
2a4c2bdf3c
Attempt to aerate overlay_intersects help and shorten sentences 2022-02-16 17:34:32 +01:00
Juergen E. Fischer
15a77662d4 fix expression translation string 2022-02-09 20:47:27 +01:00
Nyall Dawson
2bd18332aa [expressions] Make file function (such as base_file_name) gracefully
handle map layer values

These are treated as the file path to the layer.

E.g.

    base_file_name(@some_variable_which_is_a_layer)

will return the base file name of the layer's source
2022-02-07 16:02:37 +10:00
Alex
d0f2cd0ec9
Merge branch 'master' into exp_tagger 2022-01-31 07:46:22 -05:00
Alex
2175337568 Update resources/function_help/json/array_remove_at
Co-authored-by: Harrissou Sant-anna <delazj@gmail.com>
2022-01-31 13:31:02 +10:00
roya0045
6b6427069e address comments 2022-01-31 13:31:02 +10:00
roya0045
3105c5e01d improvement & bugfix 2022-01-31 13:31:02 +10:00
Alex
68a7f46c1b
Merge branch 'master' into exp_tagger 2022-01-13 18:49:53 -05:00
Alessandro Pasotti
18979e579c
Merge pull request #46683 from elpaso/overlay_intersects_sort_by_intersection_size
Overlay intersects sort by intersection size
2022-01-13 23:51:50 +01:00
roya0045
13502bc613 add missing functs 2022-01-13 08:56:17 -05:00