I have a point vector layer with approximately 2.5 million points, many of which share the same or a very similar geometry (within 1 m of each other).

I would like to know if I can bulk amend the geometry of these points so they are exactly the same if they are within that 1 meter threshold in the X-Y plane?

The majority of 'overlapping' points do share the exact same geometry so ideally I would want to amend those points that fall outside the majority to have the same geometry.

I am familiar with PyQGIS but not confident in it's use.


The tool "Snap geometries" in the processing toolbox can help you.

Give two times your layer (input and reference layer), set the tolerance to 1 meter and select the best snapping behavior for your case (i.e. align nodes, don't add new).

  • thanks, unfortunately I receive a crash report whenever I run this which seems to be because of the size of my data set which I will have to raise. – AWGIS Jan 7 '19 at 11:04
  • Monitor your system while running it, if it runs out of RAM it should be visible. – bugmenot123 Jan 7 '19 at 12:54
  • 1
    Thanks @bugmenot123, it would appear that RAM is the issue. I will have to segment my data set – AWGIS Jan 8 '19 at 10:27

this might be of help - try using the calculator and referencing the field and updating the X & Y to specific locations

geom_from_wkt('POINT('||'31.797788'||' '||'30.729471'||')')

further info at -

QGIS update feature geometry from attribute fields

Your Answer

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

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