init gdalwrap extrated from gladys