The local spin polarisation (LSP) of electrons in two typical semiconductor nanowires under the modulation of Rashba spin-orbit interaction (SOI) is investigated theoretically. The influence of both the SOI- and structure-induced bound states on the LSP is taken into account via the spin-resolved lattice Green function method. It is discovered that high spin-density islands with alternative signs of polarisation are formed inside the nanowires due to the interaction between the bound states and the Rashba effective magnetic field. Further study shows that the spin-density islands caused by the structure-induced bound state exhibit a strong robustness against disorder. These findings may provide an efficient way to create local magnetic moments and store information in semiconductors.