Move gdal_open to models, use it there