Add Normalize
@peterstace đang làm issue này rồi.
Từ ngày 3/2/2023.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
See https://postgis.net/docs/ST_Normalize.html
- Add a new method
Normalize() Tto each geometry type. - It should return a new version of the geometry that has been put into a normalized form.
- The normalized forms of two geometry that are
ExactEqualusing theIgnoreOrdershould beExactEqualwithout using theIgnoreOrder. - Normalize should only affect the ordering within a geometry.
- We shouldn't document the ordering rules, in case we need to change them.
The rules could be something like this:
- An ordering can be put on coordinates. Leftmost-then-lowest for XY, then Z and M (in that order) used as tie breakers.
- Points are unaltered.
- MultiPoints are ordered internally by the coordinates of their points.
- LineStrings are reverse depending on their endpoints ordering. If the endpoints are the same consider the points next to the endpoints etc.
- MultiLineStrings: re-order linestrings first. The put children in order of their first points. Use second (etc) points as tie breakers.
- Polygons: each ring needs to get a new start endpoint. It should be smallest point on the ring (by coordinate ordering). If there happen to be duplicate points on the ring that are smallest, then duplicates should come immediately next in the ring order. Polygons should then we wound consistently (e.g. outer rings are CCW as per http://opengeospatial.org/standards/sfa). Inner rings should be sorted as well in some way.
- MultiPolygons: sort out child internally first. Then sort the children between each other.
- GeometryCollection: GeometryCollection, MultiPoly, Poly, MultiLS, LS, MultiPt, Pt. Then among each category, sort as well.
We should also remove the ExactEqual option to ignore order. Users can use Normalize instead. So this would be a breaking change.
- 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
- Đọ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 peterstace/simplefeatures
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
peterstace/simplefeatures#726 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
peterstace/simplefeatures#725 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
peterstace/simplefeatures#724 ·
-
cleanup
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
peterstace/simplefeatures#722 ·
-
bug
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 45/100
peterstace/simplefeatures#721 ·
Tất cả issue của peterstace/simplefeatures
Issue tương tự
-
area: import bug go good first issue priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
fukubie/StockLlama#69 ·
-
Add `rumpty firewall create|rm`Đang mởenhancement help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
cloverworks-hq/rumpty-cli#95 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
pulseaiclub/phi#615 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày