A simple way to make partisan gerrymandering impossible would be to divide each state that is wider than it is high (on a Mercator Projection) into vertical slices having nearly equal populations. States that are higher than wide would be divided horizontally. If adopted nationwide, it would make it impossible to rig the voting districts. However, a big downside is that it -- and almost any other solution -- would probably require a constitutional amendment. We would also lose the concept of "local districts", but I doubt that they are still relevant.
On the other hand, we'll also have to consider the Law of Unintended Consequences.
------------------------------
Emil M Friedman, PhD
emilfriedman@gmail.comhttp://www.statisticalconsulting.org------------------------------