I think there is a case working its way up to the Supreme Court on just that issue. That is, if a city has shelter space, can it make livivg on the sidewalk illegal. The case is from Boise but L A just voted to file a friend of the court brief.
Its not jail. They could leave a shelter at any time. Just no more illegal camping in parks or on sidewalks.