define_geoattribute_from_layer function

Define an attribute from a layer