﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
21646	[PATCH][RFC] Round new points in org.openstreetmap.josm.data.imagery.Shape or modify equals	taylor.smock	Don-vip	"This is one of those ""fun"" double things.

The double representation of `0.2575799 * 1e7` is `2575798.9999999995`. Directly casting to int will round down to `2575798`. This particular number can be found in the boundaries.osm file used for Territories.
See (9.42696, 0.2575799) (this is on the border between Ghana and Togo).

Right now, neither Togo nor Ghana has any national imagery layers. However, if they existed, they would always be reset/updated, as the comparison between the ""default"" and the ""changed"" ImageryInfo would always fail.

Solutions:
1) When checking equality using `equalsPref`, when comparing bounds/bound shapes, use `Utils.equalsEpsilon`
2) Correct for double issues by rounding then casting to int"	defect	closed	normal	21.12	Core imagery		fixed		
