Generalizing a vector layer