-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove deprecated methods from QgsExpression
Now all evaluate/prepare/etc methods must be called using QgsExpressionContexts Also remove most remaining traces of special variables. This brings some user facing changes, such that existing expressions may need to be updated if they used these old special variables (eg $scale, $feature). These changes are noted in doc/qgis3_user_changes.dox so that we can include them in the release notes.
- Loading branch information
1 parent
56400b1
commit 7da8110
Showing
21 changed files
with
112 additions
and
929 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/*! \page qgis3_user_changes QGIS 3.0 User Changes | ||
|
||
\tableofcontents | ||
|
||
Notes regarding user related changes for QGIS 3.0 which should be included in the release notes. | ||
|
||
\subsection qgis3_user_changes_expressions Expressions | ||
|
||
QGIS 3.0 brings some changes to the expression engine, which may require existing projects to | ||
be updated so that any expressions in use have the following changes: | ||
<ul> | ||
<li>$rownum has been replaced by @row_number</li> | ||
<li>$scale has been replaced by @map_scale</li> | ||
<li>$map has been replaced by @map_id</li> | ||
<li>$numpages has been replaced by @layout_numpages</li> | ||
<li>$page has been replaced by @layout_page</li> | ||
<li>$feature has been replaced by @atlas_featurenumber</li> | ||
<li>$atlasfeatureid has been replaced by @atlas_featureid</li> | ||
<li>$atlasfeature has been replaced by @atlas_feature</li> | ||
<li>$atlasgeometry has been replaced by @atlas_geometry</li> | ||
<li>$numfeatures has been replaced by @atlas_totalfeatures</li> | ||
</ul> | ||
|
||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.