Pouillet's law, $R = \rho \frac{\ell}{A}$, is useful when dealing with a "column" (cylinder) of a conducting material, with cross section $A$ and height $\ell$. Using this equation has an underlying assumption: the contribution to the conductance from the surrounding environment of the cylinder is zero.
But how do I calculate the resistance (or conductance) between two given points (electrodes) that are embedded into a general shape object (for example submerged in water), assuming the surrounding environment is infinite in all directions?