> SF "protects" its single family neighborhoods by herding all the heroin, hookers, and new housing into a few containment zone neighborhoods.
I don't see as much of them lately, but several years ago there was a rather large contingent of SF police on dirt bikes wielding billy clubs whose job was to roust the homeless in nice neighborhoods and tourist areas and quite literally herd them downtown. Presumably their disappearance has something to do with homeless visibility--although not sure if its cause or effect (i.e. simply too many homeless to prevent spillover).
Also, to further the redevelopment of southeast SF, the city built alot of new public housing not only downtown but also near Fisherman's Wharf. I'm certain the increase in crime around Fisherman's Wharf is related. AFAIU, they chose Fisherman's Warf because 1) the port authority owned alot of land there and 2) rules regarding port authority-owned land made it relatively easier to push through low-income housing projects. Previously public housing in the NE of the city was predominately for seniors, who don't generally attract trouble.