Earlier quoted context omitted.
I don't think STV presents any function that would really prevent gerrymandering. The only thing it might do is allow entry of third parties, but even that's not guaranteed. But a party could still design districts that they'd always have a shot at the second round in every district while other parties don't. What could potentially help is to have a legislative body not determined by geography, possibly some kind of…
"STV" actually refers to at least two related systems. You seem to be commenting on the single-winner form (also called "Instant Runoff Voting" in the United States). The multi-winner form is a form of proportional representation and as such would provide substantial protection from gerrymandering. The Australian terms "majority-preferential" and "quota-preferential" help make the difference (and the connection) clea…
PR is no panacea. To avoid gerrymandering, you need an adequately high district magnitude. After all, majority-preferential is just quota-preferential with a magnitude of 1. And FPTP is just List PR with a magnitude of 1.