planetiler icon indicating copy to clipboard operation
planetiler copied to clipboard

Deterministic ordering of points with same sort order

Open msbarry opened this issue 2 years ago • 2 comments

When 2 points have the same sort key, include the bytes when comparing them so that the ordering is deterministic.

Originally posted by @nyurik in https://github.com/onthegomap/planetiler/discussions/214#discussioncomment-2697226

msbarry avatar May 06 '22 01:05 msbarry

Technically this might not fully solve the issue. Osm allows two points to have identical coordinates (or they could get the same x,y during simplification). You might want to add tag sorting as the last fallback.

nyurik avatar May 07 '22 06:05 nyurik

Would you have some pointer for me where this sorting is happening currently? Then I'll take a look into this.

bbilger avatar Jun 10 '22 21:06 bbilger