I did some further research. I have appended a .map file at which gcps2wld.py prints out a worldfile. With this however gdalinfo and gdal_translate do NOT do a geotransform. When I SET OZI_APPROX_GEOTRANSFORM=YES they do, but then gcps2wld.py finds no gcps. So its just the other way around as one would expect.
I checked a few other files and my guess is that gcps2wld.py prints out a worldfile when there is no proper geotransform and when there is a geotransform then it claims it doesn't find gcps. Thanks Wolfgang ------------------------------------------- OziExplorer Map Data File Version 2.2 K-37-024-B.png C:\maps\50000\K-37-024-B.png 1 ,Map Code, WGS 84,, 0.0000, 0.0000,WGS 84 Reserved 1 Reserved 2 Magnetic Variation,,,E Map Projection,Mercator,PolyCal,No,AutoCalOnly,No,BSBUseWPX,No Point01,xy, 0, 0,in, deg, 43, 39.9941,N, 41, 44.9240,E, grid, , , ,N Point02,xy, 5827, 5361,in, deg, 43, 29.9947,N, 41, 59.9281,E, grid, , , ,N Point03,xy, 0, 5361,in, deg, 43, 29.9947,N, 41, 44.9240,E, grid, , , ,N Point04,xy, 5827, 0,in, deg, 43, 39.9941,N, 41, 59.9281,E, grid, , , ,N Point05,xy, 2913, 2680,in, deg, 43, 34.9969,N, 41, 52.4273,E, grid, , , ,N Point06,xy, 2913, 0,in, deg, 43, 39.9941,N, 41, 52.4273,E, grid, , , ,N Point07,xy, 0, 2680,in, deg, 43, 34.9969,N, 41, 44.9240,E, grid, , , ,N Point08,xy, 5827, 2680,in, deg, 43, 34.9969,N, 41, 59.9281,E, grid, , , ,N Point09,xy, 2913, 5361,in, deg, 43, 29.9947,N, 41, 52.4273,E, grid, , , ,N Point10,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N Point11,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N Point12,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N Point13,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N Point14,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N Point15,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N Point16,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N Point17,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N Point18,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N Point19,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N Point20,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N Point21,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N Point22,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N Point23,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N Point24,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N Point25,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N Point26,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N Point27,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N Point28,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N Point29,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N Point30,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N Projection Setup,,,,,,,,,, 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,5827,0 MMPXY,3,5827,5361 MMPXY,4,0,5361 MMPLL,1, 41.748747, 43.666558 MMPLL,2, 41.998816, 43.666558 MMPLL,3, 41.998816, 43.499901 MMPLL,4, 41.748747, 43.499901 MM1B,3.464919 LL Grid Setup LLGRID,No,No Grid,Yes,255,16711680,0,No Labels,0,16777215,7,1,Yes,x Other Grid Setup GRGRID,No,No Grid,Yes,255,16711680,No Labels,0,16777215,8,1,Yes,No,No,x MOP,Map Open Position,0,0 IWH,Map Image Width/Height,5827,5361 -- View this message in context: http://osgeo-org.1560.x6.nabble.com/gcps2wld-not-finding-GCPs-tp5061752p5062168.html Sent from the GDAL - Dev mailing list archive at Nabble.com. _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
