3

I am just trying to follow anita graser's examples in https://anitagraser.com/2017/04/08/a-guide-to-geometry-generator-symbol-layers/ - where the "Creating a line between features in different layers" part cought my attention.

Is there a way to select more then one feature based on an adaequate function using wildcards or expressions for numerical fielsds ... like ReturnAnyFeatrue('from_layer', 'with_field', >= 200) ?

get_feature just returns the first element that matches the "attribute"/"value" settings - thus the following expression returns a set of lines from any object of the current layer to a specific STATION - i.e. 'Millennium Tower':

make_line(
centroid( $geometry ),
geometry( get_feature( 'Citybike', 'STATION', 'Millennium Tower' ) )
)

i am interestet in a way to draw geometry-generator-lines from current layers' points to any station starting with - for instance - "Mi" based on an expression like 'Mi*'
is there a way that just makes use of geometry generator and simple expression ?

(unfortunately there is still a lack of ducumentation and examples concerning geometry generator ... )

  • ... just an additional note: i didn't find a documentaion of the geometry-related functions which are listed in the "Geometry"section of the "Expression string builder"-window. in particular i am looking for a comprehensive parameter desciption ... any ideas where to find it ?? – robert tuw Jun 29 '17 at 9:36
  • 1
    Did u see the integrated help in the right part of this panel ? Could surely be more detailed but ... there's something ... – snaileater Jun 29 '17 at 10:46
  • in know - there used to ba an integrated help. was desperately searching for that, but any of the "expression editor - windows" do not show that part of the window. and i have no idea where i have lost that part ... painful it is ! – robert tuw Jun 29 '17 at 12:06
  • @roberttuw I think you can get only one feature per time using the built-in expressions. Instead, you may recur to a custom function for getting whatever you want. I can try to help you if you are add more information and context to your issue. – mgri Jun 29 '17 at 12:21
  • 1
    For the help, see Help in field calculator expression editor hidden – underdark Jun 29 '17 at 19:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.