I was talking about the latter. Installing naval guns on land will not make military sense as they will be on static installations due to power requirements as well they will need to sit on the building for the 'below deck' magazine and like.
The only case where naval arty has been deployed...