View Single Post
Posts: 4 | Thanked: 0 times | Joined on Feb 2010
#7
Originally Posted by vadp View Post
Hi Tomas. Can you run it with -d switch? BTW do you have gdal binaries installed and they are in the PATH?
yes , i try but same , gdal binaries are installed .

output is here:

../ozi2gdal.py -d 116-ljubljana.map
DEBUG:root:[['OziExplorer Map Data File Version 2.2'], ['116-LJUBLJANA'], ['116-LJUBLJANA.jpg'], ['1', 'Map Code', ''], ['SLOVENIJA', 'WGS 84', '0.0000', '0.0000', 'WGS 84'], ['Reserved 1'], ['Reserved 2'], ['Magnetic Variation', '', '', 'E'], ['Map Projection', 'Transverse Mercator', 'PolyCal', 'No', 'AutoCalOnly', 'No', 'BSBUseWPX', 'No'], ['Point01', 'xy', '0', '0', 'in', 'deg', '46', '7.4997', 'N', '14', '29.9322', 'E', 'grid', '', '', '', ''], ['Point02', 'xy', '4606', '6589', 'in', 'deg', '45', '59.9989', 'N', '14', '37.5532', 'E', 'grid', '', '', '', ''], ['Point03', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point04', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point05', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point06', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point07', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point08', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point09', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point10', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point11', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point12', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point13', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point14', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point15', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point16', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point17', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point18', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point19', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point20', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point21', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point22', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point23', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point24', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point25', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point26', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point27', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point28', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point29', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Point30', 'xy', '', '', 'in', 'deg', '', '', '', '', '', '', 'grid', '', '', '', ''], ['Projection Setup', '0.000000000', '15.000000000', '0.999900000', '500000.00', '-5000000.00', '34.000000000', '40.500000000', '', '', ''], ['Map Feature = MF ; Map Comment = MC These follow if they exist'], ['Track File = TF These follow if they exist'], ['Moving Map Parameters = MM? These follow if they exist'], ['MM0', 'Yes'], ['MMPNUM', '4'], ['MMPXY', '1', '0', '0'], ['MMPXY', '2', '4606', '0'], ['MMPXY', '3', '4606', '6589'], ['MMPXY', '4', '0', '6589'], ['MMPLL', '1', '14.498870', '46.124995'], ['MMPLL', '2', '14.625038', '46.125478'], ['MMPLL', '3', '14.625887', '45.999982'], ['MMPLL', '4', '14.500004', '45.999500'], ['MM1B', '2.116049'], ['MOP', 'Map Open Position', '0', '0'], ['IWH', 'Map Image Width/Height', '4606', '6589']]
DEBUG:root:116-ljubljana.jpg
DEBUG:root:['+proj=tmerc', '+lat_0=0.000000000', '+lon_0=15.000000000', '+k=0.999900000', '+x_0=500000.00', '+y_0=-5000000.00', '+lat_1=34.000000000', '+lat_2=40.500000000', '+datum=WGS84', '+no_defs']
DEBUG:rootroj +proj=tmerc +lat_0=0.000000000 +lon_0=15.000000000 +k=0.999900000 +x_0=500000.00 +y_0=-5000000.00 +lat_1=34.000000000 +lat_2=40.500000000 +datum=WGS84 +no_defs
DEBUG:root:[[['Point01', 'xy', '0', '0', 'in', 'deg', '46', '7.4997', 'N', '14', '29.9322', 'E', 'grid', '', '', '', ''], ['Point02', 'xy', '4606', '6589', 'in', 'deg', '45', '59.9989', 'N', '14', '37.5532', 'E', 'grid', '', '', '', ''], ['', '', '0', '6589']], [['461272.21', '109590.53'], ['471022.84', '95642.33'], ['461272.21', '95642.33']]]
Traceback (most recent call last):
File "../ozi2gdal.py", line 235, in <module>
map2vrt(f)
File "../ozi2gdal.py", line 189, in map2vrt
gcps=flatten([('-gcp', i[0][2],i[0][3],i[1][0],i[1][1]) for i in zip(refs, ref_coord)])
File "../ozi2gdal.py", line 110, in flatten
return list(itertools.chain.from_iterable(listOfLists))
AttributeError: type object 'itertools.chain' has no attribute 'from_iterable'