#10195: Fix offsetline when the geometry is a polygon

Use GEOSBuffer in offsetline when the geometry is a polygon