That seems like a pretty egregious bug. Thanks for finding that, Michael.
On Sun, Nov 9, 2014 at 11:06 AM, Michael Michaud <
[email protected]> wrote:
> Hi Martin,
>
> For polygons comparison, Geometry.compareTo() delegates to
> Polygon.compareToSameClass(Object o) which compares exterior rings only.
> Is it an intended design ?
> The second method compareToSameClass(Object o,
> CoordinateSequenceComparator comp)
> seems to compare polygons properly, but it is not used by
> Geometry.compare()
>
> With current implementation, you don't get the same result if you use
> geometries
> as keys in a HashMap (based on equals) or in a TreeMap (based on
> compareTo).
>
> Michaƫl
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Jts-topo-suite-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user
>
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user