Improve validation accuracy

Đang mở
#296 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
37/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
go
Lĩnh vực
backend, databases

Hướng nghiên cứu

Start by reading the geometry validation code and its tests, then compare how the supplied polygon is classified against the issue's GEOS 3.8 and GEOS 3.7 results. The goal is to make validation agree with exact arithmetic for this case while retaining the intended behavior for other geometries; the issue does not name specific files or tests.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

algorithm bug improve

There are some cases where simplefeatures validation doesn't match GEOS v3.8 validation. For example:

POLYGON((-0.80952380952381 0.19047619047619,-0.5 0.5,0 1,-0.80952380952381 0.19047619047619))

Simplefeatures treats this as invalid, but GEOS v3.8 treats it as valid. Note that GEOS v3.7 (and PostGIS) treat it as invalid (the same behaviour as simplefeatures).

It seems as though this was a bug in GEOS 3.7 that has been fixed. If the geometry is considered using exact arithmetic, then it is indeed valid.

Ngôn ngữ chính
Go
Star
176
Fork
27
Merge trung bình
1 ngày 14 giờ
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của peterstace/simplefeatures

Tất cả issue của peterstace/simplefeatures

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.