peterstace / simplefeatures

Simple Features is a pure Go Implementation of the OpenGIS Simple Feature Access Specification
MIT License
125 stars 19 forks source link

Use `XY.Less` comparison func #585

Closed peterstace closed 6 months ago

peterstace commented 6 months ago

Description

XY has Less method to compare two XY values. This logic was duplicated in two other places. This change removes the duplication, instead relying on the Less method.

Check List

Have you:

Related Issue

peterstace commented 6 months ago

Thanks for reviewing @albertteoh! 😁