You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A new expression function feature_id() would be useful in order to get the internal id of a certain feature in another (related) layer.
As parameters, there could be different variations, e.g.:
feature_id(layer,pkey_value)
assuming that the other layer knows which column contains the pkey.
or
feature_id(layer,pkey_column,pkey_value)
if the layer doesn't know the pkey column name.
or
feature_id(feature)
not sure if it is possible? A feature might not be unique, even if it contains a geometry?
Additional context
This is useful when working on expressions with multiple related layers. There are some expressions that require the "internal feature id" as an input parameter.
The text was updated successfully, but these errors were encountered:
Allows for retrieving the feature ID of a feature object. Accepts
one argument which must be a feature object. Accordingly this
function can be used with the results of any other function
which returns feature objects, such as "get_feature", "overlay_*",
etc.
Fixesqgis#51116
Allows for retrieving the feature ID of a feature object. Accepts
one argument which must be a feature object. Accordingly this
function can be used with the results of any other function
which returns feature objects, such as "get_feature", "overlay_*",
etc.
Fixes#51116
Feature description
A new expression function feature_id() would be useful in order to get the internal id of a certain feature in another (related) layer.
As parameters, there could be different variations, e.g.:
assuming that the other layer knows which column contains the pkey.
or
if the layer doesn't know the pkey column name.
or
not sure if it is possible? A feature might not be unique, even if it contains a geometry?
Additional context
This is useful when working on expressions with multiple related layers. There are some expressions that require the "internal feature id" as an input parameter.
The text was updated successfully, but these errors were encountered: