~ubuntu-branches/debian/sid/gdal/sid

« back to all changes in this revision

Viewing changes to swig/python/samples/gdal_vrtmerge.py

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2012-05-07 15:04:42 UTC
  • mfrom: (5.5.16 experimental)
  • Revision ID: package-import@ubuntu.com-20120507150442-2eks97loeh6rq005
Tags: 1.9.0-1
* Ready for sid, starting transition.
* All symfiles updated to latest builds.
* Added dh_numpy call in debian/rules to depend on numpy ABI.
* Policy bumped to 3.9.3, no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
        fi = file_info()
46
46
        if fi.init_from_name(name):
47
47
            file_infos.append(fi)
 
48
        else:
 
49
            print ('Can not open dataset "%s", skipped' % name)
48
50
 
49
51
    return file_infos
50
52
 
222
224
 
223
225
    # Collect information on all the source files.
224
226
    file_infos = names_to_fileinfos( names )
 
227
    if len(file_infos) == 0:
 
228
        print ('Nothing to process, exiting.')
 
229
        sys.exit(1)
225
230
 
226
231
    if ulx is None:
227
232
        ulx = file_infos[0].ulx