One such case was the Okayama Castle, which was built on a small hill nearby the Asahi river. At the time of its construction, the builders altered the river's course, making it flow along the eastern side of the castle walls.
EXIF info:
Nikon D90
Lens: VR 18-55mm F/3.5-5.6G
Focal Length: 20mm
Aperture: F/5.6
Shutter Speed: 1/2000s
ISO Sensitivity: ISO 200