The Tel Aviv District Court has sentenced a man to 17 years in prison for committing rape, sodomy and indecent acts on his granddaughter for about four years, starting when she was eight.