Strange behaviour in pgr_withPoints
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- postgresql
- Lĩnh vực
- databases
Hướng nghiên cứu
The issue involves the pgr_withPoints function in pgRouting. Start by examining the function's source code in the repository, likely in src/withPoints/. Reproduce the bug using the provided SQL backup to understand the data and query behavior. Compare the two queries to identify why the second returns no results, focusing on how the function handles the points of interest table. Look for existing tests related to pgr_withPoints to see expected behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hello everybody, I'm using the proposed function pgr_withPoints, but it seems there is a bug
Expected behavior and actual behavior
The expected result is the one I obtain if I select all the point of interests "limiting" the results for example in this way:
select * from pgr_withPoints('SELECT gid as id, source, target, length_m as cost, length_m as reverse_cost, x1,y1,x2,y2 FROM ways', 'SELECT j.bid as pid, j.way_id as edge_id, j.fraction from join_building_ways j where bid in (13464281, 13464251, 13464250)', -13464281, -13464250);
seq | path_seq | node | edge | cost | agg_cost
-----+----------+-----------+-------+------------------+------------------
1 | 1 | -13464281 | 85965 | 21.3940627565627 | 0
2 | 2 | 75852 | 85957 | 9.67727907223116 | 21.3940627565627
3 | 3 | 68330 | 85956 | 7.22238171772227 | 31.0713418287938
4 | 4 | 71916 | 85955 | 7.18404585924898 | 38.2937235465161
5 | 5 | -13464250 | -1 | 0 | 45.4777694057651
If I do this:
select * from pgr_withPoints('SELECT gid as id, source, target, length_m as cost, length_m as reverse_cost, x1,y1,x2,y2 FROM ways', 'SELECT j.bid as pid, j.way_id as edge_id, j.fraction from join_building_ways j', -13464281, -13464250);
seq | path_seq | node | edge | cost | agg_cost
-----+----------+------+------+------+----------
(0 rows)
I have no results. Why?
Steps to reproduce the problem
create a db with this backup.
https://www.dropbox.com/s/p9pq9dh2zz1yfir/bug2.sql.zip?dl=0
Specifications like the version of pgRouting/PostGIS and PostgreSQL as well as Operating System
PostgreSQL 9.6.1 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4, 64-bit
POSTGIS="2.3.0 r15146" GEOS="3.5.0-CAPI-1.9.0 r4084" PROJ="Rel. 4.9.2, 08 September 2015" GDAL="GDAL 1.11.3, released 2015/09/16" LIBXML="2.9.1" RASTER
(2.3.2,v2.3.2,1f2af3c52,master,1.54.0)
- Ngôn ngữ chính
- C++
- Star
- 1.4k
- Fork
- 397
- Merge trung bình
- 2 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pgRouting/pgrouting
-
Boost broken linksCó thể đã có người làm @Nandan-Raichura-Dev đã nhận 5 ngày trước. Đang mởEnhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
pgRouting/pgrouting#3176 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Add details to CONTRIBUTING.mdĐang mởAdministrative Enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 2 ngày
-
points_input Developers docCó thể đã có người làm @withaman69 đã nhận 89 ngày trước. Đang mởC/C++ Developers Doc. good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
pgRouting/pgrouting#973 · 10 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
get_check_data developers docCó thể đã có người làm @withaman69 đã nhận 91 ngày trước. Đang mởC/C++ Developers Doc. good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
pgRouting/pgrouting#972 · 7 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
pgRouting/pgrouting#3180 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của pgRouting/pgrouting
Issue tương tự
-
bug core p3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
RunanywhereAI/runanywhere-sdks#1258 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
JdeRobot/RoboticsInfrastructure#843 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
ai-quokka-wannabe/tron-grid-lite#180 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
cython/cython#8110 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
PR bot doesn't recognize hip-tests as a unit test directoryCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ROCm/rocm-systems#14923 ·
Maintainer thường phản hồi trong vòng 2 ngày