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

« back to all changes in this revision

Viewing changes to swig/python/samples/tolatlong.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:
1
1
#!/usr/bin/env python
2
2
###############################################################################
3
 
# $Id: tolatlong.py 18195 2009-12-06 20:24:39Z rouault $
 
3
# $Id: tolatlong.py 19386 2010-04-11 19:20:36Z rouault $
4
4
#
5
5
# Project:  GDAL Python samples
6
6
# Purpose:  Script to read coordinate system and geotransformation matrix
109
109
# Report results
110
110
print('pixel: %g\t\t\tline: %g' % (pixel, line))
111
111
print('latitude: %fd\t\tlongitude: %fd' % (lat, int))
112
 
print('latitude: ', gdal.DecToDMS(lat, 'Lat', 2), \
113
 
    '\tlongitude: ', gdal.DecToDMS(int, 'Long', 2))
 
112
print('latitude: %s\t\tlongitude: %s' % (gdal.DecToDMS(lat, 'Lat', 2), gdal.DecToDMS(int, 'Long', 2)))
114
113