if vector file is given then use it else generate one automatically