OCALA, Fla. (AP) — Homeless people in Ocala, Florida, are accumulating thousands of dollars in fines and spending weeks in jail because they have nowhere to lawfully sleep.

The city faces a federal class-action lawsuit designed to end a city crackdown that has sent at least 200 homeless people to jail in the last two years.

The mayor says he wants to keep Ocala from turning into Los Angeles or San Francisco.

But the city has only 315 shelter beds and 2,000 people on waiting lists for housing vouchers. That leaves homeless people with “no choice” but to rest or sleep on the streets, in the woods, in parks and in other outdoor spaces, the suit alleges.