I think you're right that people are against these things, but wrong about the reasons.

Taking homeless people to jail because they're homeless just seems stupid and pointless, not to mention harmful to the person going to jail.

Shelters have the issue where people don't want them near where they live (for often justifiable reasons) but obviously they have to go somewhere.