It's entirely local law. Around here, cyclists have strong rights to park written into the law -- we have the right to park at anything sticking out of the sidewalk other than a fire hydrant or a tree less then 10" in diameter (for fear the tree would get cut to steal the bike). We also have the right to park against any building that abuts the sidewalk.