Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select by location #57349

Closed
1 of 2 tasks
Octansf opened this issue May 6, 2024 · 7 comments
Closed
1 of 2 tasks

Select by location #57349

Octansf opened this issue May 6, 2024 · 7 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers

Comments

@Octansf
Copy link

Octansf commented May 6, 2024

What is the bug or the crash?

I have two layers in qgis with geographic reference, and when try to use select by locaion the result of select always is empty

Steps to reproduce the issue

Load layers CRS is 4686 i have two layers in project
Go to the icon Select by Location
Select layer from
Select layer by comparing features from
and run process
Always is empty select . Don,t matter if reproject or not layers

Versions

QGIS version

3.34.0-Prizren

QGIS code revision

ffbdd67

Qt version

5.15.3

Python version

3.9.5

Compiled against GDAL/OGR

3.7.2

Running against GDAL/OGR

3.7.3

PROJ version

9.3.0

EPSG Registry database version

v10.094 (2023-08-08)

GEOS version

3.12.0-CAPI-1.18.0

SQLite version

3.41.1

PDAL version

2.5.5

PostgreSQL client version

15.2

SpatiaLite version

5.1.0

QWT version

6.1.6

QScintilla2 version

2.13.4

OS version

Windows 10 Version 2009

Active Python plugins

becagis

23.7.19

censo_edificaciones

0.1

genera_mbtiles_v5

5

genera_mbtiles_vx1

x1

genera_mbtiles_vx1a

x1a

HCMGIS

24.1.12

loadthemall

3.4

mapswipetool_plugin

1.2

mmqgis

2021.9.10

multiple_layers_tools

1.2

pluginbuilder3

3.2.1

plugin_reloader

0.9.4

preea_processing

1.7.0

QMetaTiles

1.5

qrbarcodeitem

0.2.0

qr_code_v1b

1.0

scales_v1a

1a

SpreadsheetLayers

2.1.2

Submission

0.10

tile_index_generator

1.0

union_mbtiles 1a

1a

union_mbtiles 1b

1b

union_mbtiles 1c

1b

zoom_level

0.1

processing

2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

@Octansf Octansf added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label May 6, 2024
@agiudiceandrea
Copy link
Contributor

@Octansf, thanks for reporting. Have you already read the documentation about the tool at https://docs.qgis.org/3.34/en/docs/user_manual/processing_algs/qgis/vectorselection.html#qgisselectbylocation? May you provide the layers and the exact parameters set for the tool?

@agiudiceandrea agiudiceandrea added the Feedback Waiting on the submitter for answers label May 6, 2024
Copy link

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label May 21, 2024
@Octansf
Copy link
Author

Octansf commented May 22, 2024

Hello, good morning. I apologise for the delay in replying but I had to resolve this issue in order to deliver the processed information. Please find attached the 2 sample layers I am working with. In context, in Arcgis Pro when I use the selection by location tool it works perfectly, in Qgis it does not select anything, for that I had to use the selection within distance tool.
Attach a file zip with two layers. Both are in geopackage. I made test with other types of layers like shapes files and Esri GDB and does not work either.
Thanks in Advanced for your kind attention
layers.zip

@github-actions github-actions bot removed the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label May 22, 2024
Copy link

github-actions bot commented Jun 6, 2024

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Jun 6, 2024
@agiudiceandrea
Copy link
Contributor

agiudiceandrea commented Jun 6, 2024

@Octansf, I cannot replicate the reported issue on my Windows 10 system using QGIS 3.34.7: the algorithm selects a different number of features depending on the parameters used.
For example, given the provided layers lineas_test and ptos_test, using the following parameters:
image
329 features are selected in the layer ptos_test.

For info about spatial relationship issues between points and lines please see, for example: https://gis.stackexchange.com/questions/373198/select-by-location-fails-for-points-touching-intersecting-on-lines, https://stackoverflow.com/questions/52274984/qgis-find-points-that-are-on-or-near-a-line, https://gis.stackexchange.com/questions/397721/point-on-a-line-in-arcgis-pro.

@github-actions github-actions bot removed the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Jun 6, 2024
@Octansf
Copy link
Author

Octansf commented Jun 14, 2024

@agiudiceandrea, if you use both layers in ArcGIS PRO and ArcMAP when use the tool select by Location, the result of select have more points, 7210 features are selected. For obtain the same result in QGIS I need to use the tool select within distance and distance I used is 0,0000001

This is it the result in ArcMap
Screenshot 2024-06-14 at 9 24 11 AM

This is the result in ArcGIS PRO
Screenshot 2024-06-14 at 9 10 25 AM

When the tool is used in Qgis it should be the same result. But no like you said only 329 Features are selected. It happens with any layer. I think that is not normal. With previous versions of QGIS the behavior was as expected and for that reason they were trying to migrate to QGIS.

I remain attentive to any observation. Thanks a lot for all your kind attention

@agiudiceandrea
Copy link
Contributor

agiudiceandrea commented Jun 14, 2024

@Octansf, in your issue report you reported that "when try to use select by locaion the result of select always is empty" and "Select layer by comparing features from and run process Always is empty select" and "in Qgis it does not select anything".
It seems to me such issue doesn't occur.

Regarding the spatial relationship between points and lines please see, for example: https://gis.stackexchange.com/questions/373198/select-by-location-fails-for-points-touching-intersecting-on-lines, https://stackoverflow.com/questions/52274984/qgis-find-points-that-are-on-or-near-a-line, https://gis.stackexchange.com/questions/397721/point-on-a-line-in-arcgis-pro.

Please create a new issue report if you think the behaviour described in your latest comment is a bug, so it can be properly addressed.

@agiudiceandrea agiudiceandrea closed this as not planned Won't fix, can't repro, duplicate, stale Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers
Projects
None yet
Development

No branches or pull requests

2 participants