4

How can I create a point from two coordinates with the QGIS Modeling tool and add it to an existing layer?

2
  • just put the point anywhere on the map, then use the 'numerical vertex edit' tool to change the coordinates
    – Kartograaf
    Sep 14, 2021 at 19:40
  • 1
    I think OP wants to do that in a model, not manually.
    – Babel
    Sep 14, 2021 at 19:47

1 Answer 1

10

Create a new point using Geometry by expression, than Merge vector layers to merge this newly created point layer with the inital points layer. Here you can download the model for this workflow.

For manual input of x- and y-coordinate values that create the point, create two numbers. In geometry by expression, you can access these numbers (they are available as variables) to create the point: make_point ( @xcoord , @ycoord ).

enter image description here

8
  • 2
    +1. You have many sophisticated answers. Thanks for that. But it would be more useful if your application interface was in English. On an English website, another language (especially in gui) is like a noise for most people here. This is my opinion of course.
    – Noura
    Sep 14, 2021 at 19:54
  • @user156679 thanks for sharing your thoughts. I added an english-language screenshot as well. The differences are not so big and I guess in most cases, it's easy to identify what corresponds to what. I try to write solutions in a way that the explanation from the text should be sufficient to understand how it works. The screenshots are more to illustrate the graphical interface: to see where to click, add an expression or insert some parameters. This should become clear regardless of language, I hope.
    – Babel
    Sep 15, 2021 at 7:40
  • 2
    @user156679 since it is rather lengthy to switch languages, you usually don't want to have that hassle when answering questions on the fly, if you every-day (work) GUI is in your native language. This is especially true, if you're the go-to-person when it comes to GIS-issues in your company, and you have to translate everything first before explaining some rather easy workflow to non-english speakers.
    – Erik
    Sep 15, 2021 at 7:44
  • 1
    In geometry by expression you use a layer called "point" as input, what is that? Do you have another point layer as input to your model outside your screenshot?
    – BERA
    Sep 15, 2021 at 9:05
  • 3
    @BERA thanks for drawing my attention to this. In a first version, using the model just on my machine, I had a point layer with this name as input. However, to share the model and to use it with whatever input, I adapted the screenshot now. See also the link to download the model.
    – Babel
    Sep 15, 2021 at 9:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.