Interestingly the book and the film were developed together by Kubrick and Clarke as a collaborative process.
Usually the book comes before the film, but occasionally it comes after.
I can't think of other examples where the novel was developed alongside the film but I expect there are!