The Validate conditions test the success as:
Validate.isTrue(lat > 90.0 || lat < -90.0, "Latitude must be in
[-90, 90] but was ", lat);
Validate.isTrue(lon > 180.0 || lon < -180.0, "Longitude must be in
[-180, 180] but was ", lon);
This, however, should be:
Validate.isTrue( -90.0d <= lat && lat <= 90.0d, "Latitude must be
in [-90, 90] but was ", lat);
Validate.isTrue( -180.0d <= lon && lon <= 1800d, "Longitude must be
in [-180, 180] but was ", lon);
Original issue reported on code.google.com by yoichi.t...@gmail.com on 31 May 2010 at 7:07
Original issue reported on code.google.com by
yoichi.t...@gmail.com
on 31 May 2010 at 7:07