TransWikia.com

"Select by location" fails for points touching/intersecting on lines

Geographic Information Systems Asked by Ploum on August 7, 2021

I try to use the "Select by Location" tool in QGIS 3.10 to:

  • Select points in one layer located on lines of another layer (I am using "intersect" option but I have also tried the other options)
  • Select the lines whose end points are located on the lines of another layer (Touch option) and I get no results.

Does the tool work or is it only usable with polygon layers?
What are the other solutions to get what I want?

Layers in GeoPackage available on https://drop.infini.fr/

One Answer

Your data looks as following

input

After testing it with "Select by location" with disjoin-method, see image below. I may say that there is a micro distance exists between those points and line.

disjoin

So, there are several suggestions that may lead you to the desired output

#1 using a small buffer around the line layer, like on the image below

solution_2

#2 by means of "Snap geometries to layer" or SAGA's module "Snap points to lines". This will improve the topological relation between two layers' geometries.

#3 Double checking the correctness of CRS on stages of saving/sharing data.


References:

Answered by Taras on August 7, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP