Support TMS-flipped Y coordinate with {ty} replacement.