Officials declared an emergency Wednesday afternoon in San Joaquin County