define_geoattribute_from_layer function

Define geoattribute from a layer