Add code for polyFeatures

It could be vectorized, somehow, I just don't know how :S