// Already checked for +-360 deg. above.
if ((azimuth > -1.5*PI && azimuth < -0.5*PI) ||
(azimuth > 0.5*PI && azimuth < 1.5*PI))
{
final String name = Provider.AZIMUTH.getName().getCode();
final Angle value = new Angle(toDegrees(azimuth));
throw new InvalidParameterValueException(Errors.format(
ErrorKeys.ILLEGAL_ARGUMENT_$2, name, value), name, value);
}
temp = doubleValue(expected, Provider.RECTIFIED_GRID_ANGLE, parameters);
if (Double.isNaN(temp)) {