I have a layer of vectors located around, say, (100, 100), and I want to move them to new coordinate like (1000, 1000).
How should I do it using QGIS?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this communityI have a layer of vectors located around, say, (100, 100), and I want to move them to new coordinate like (1000, 1000).
How should I do it using QGIS?
Yep sure can. Like alexgleith said you can use the qgsaffine plugin (from the plugin installer)
The top of the first line is at 0,0 and the top of the second line is at 5,5. At the start the points are along 0 on the X.
Using the Affine plugin we can add 5 to all the X coordinates:
Then after they are all on the second line at X 5, Y 5:
In QGIS 3.x there is no need for plugin to move vector shapes any more as there is routine called "Translate" in Toolbox -> Vector Geometry. You simply put offset distance for x and y axis and run it or, - as said above, if you prefer manual positioning, start edit layer, select all entities and move them with "Move feature" tool.
The plugin in the accepted answer is not available anymore. The Affine Transformations is available and is very useful.
With this plugin you can create a formula. In the screenshot I shifted all cells with 17.396 (meters) to the north.
x'
and y'
means the derived x
and y
from the original vector layer. You have to read it like this: derived x= (1.0 * original x) + (0.0 * original y) + 0.0
This means that there is no change in the x direction, hence 1.0 times x. I wanted to shift all cells up (to the north) by 17.396 meters. So I only added 17.396 to (1 * y). When you don't want to have a change at all, you just use: x' = (1 * x) + (0 * y) + 0
and y' = (0 * x) + (1 * y) + 0
If you want to move them manually, simply start editing, select the features you want to move and then select the move tool and shift them.
To move them by a particular x,y offset, you might be able to use the python plugin "qgsaffine".
I am not up to date with using the python console, but there is probably a solution there too.
I find the "Numerical vertex edit" plugin very useful for specifying new coordinates for a point.
On an editable layer, use the tool to select a point, then you will be prompted to enter the new coordinates.
There is a plugin called move
on the code repository.
It moves shapes from point A and B and does that without complications.
It Move all selected objects from point to point with snap.