Creating method to get start and ending coordinates of each patch