I forgot to put in a distance for the segmentize, here it is with 100m: select transform(segmentize(transform(makeline(a,b),9804)),100),4326)