My goal is to select a specific polygon in which the user clicked and make a new vector map that contains only the selected polygon. I see two ways:
- Convert XY coordinate from literal input to a vector point map and use v.select. But I can not find a command (or a workaround) for the first part?
- Use v.what (XY from literal input) to see which polygon is located at this point and use ID information in v.extract command as binded variable with SQL where query. But how to store/use for example, "ID" data (printed in shell script style output from v.what) as global variable?
Also, the idea is first to use standard GRASS modules with cmd.