Assembly of a photoreactive coordination polymer containing rectangular grids.