Hi Lucas I don't know the plugin, but a look in the code shows the following:
The plugin uses gdalinfo to determine the dimension of the raster(s) you want to georeference. It take the text output and looks for a line that states 'Size is', does some repalacements and then assumes there will be 2 valus, separated by a comma and a blank. If the format of the line isn't exactly right, it will probably fail. You may use now gdalinfo directly to test, if the output is correct. You should find a line that is exactly like this: Size is 35000, 24000 If gdalinfo isn't able to find the two values, the plugin will fail. If gdalinfo outputs some other format than this, it will also fail. In the first case,your raster file(s) aren't 'good enough' and you may try to get them in a form that gdal understands. In the second, the code of the plugin should be changed to understand the text format provided. Regards Cédric Mit freundlichen Grüssen Cédric Möri Leiter SO!GIS Koordination -- Kanton Solothurn Amt für Geoinformation SO!GIS Koordination Rötistrasse 4 4501 Solothurn Telefon +41 32 627 75 92 (Direkt 24 75) Telefax +41 32 627 75 98 mailto://[email protected] http://www.agi.so.ch Von: [email protected] [mailto:[email protected]] Im Auftrag von Lucas Beck Gesendet: Freitag, 23. September 2011 11:20 An: [email protected] Betreff: [Qgis-user] Error when using MapSheetAutoGeoRef Hi, I am just trying to georeference some maps using MapSheetAutoGeoRef but somehow it does not work. See error message below. I'm using qgis on my macbook Mac OS X 10.6.8. Any help to resolve this would be highly appreciated.... :) Best Lucas An error has occured while executing Python code: Traceback (most recent call last): File "/Users/lucas/.qgis/python/plugins/MapSheetAutoGeoRef/mapsheetgeoref.py", line 543, in accepted run(BatchBuildOvrPyraRGB(jobdir,filetype)) File "/Users/lucas/.qgis/python/plugins/MapSheetAutoGeoRef/dmja.py", line 1930, in BatchBuildOvrPyraRGB maxPyrLevel=CalcMaxPyramidLevel(GetRasterSizes(dir,type)) File "/Users/lucas/.qgis/python/plugins/MapSheetAutoGeoRef/dmja.py", line 350, in GetRasterSizes DimTuple=getSize(eachfile) File "/Users/lucas/.qgis/python/plugins/MapSheetAutoGeoRef/dmja.py", line 261, in getSize dimtuple=(str(file),int(dims[0]),int(dims[1])) IndexError: list index out of range Python version: 2.6.1 (r261:67515, Aug 2 2010, 20:10:18) [GCC 4.2.1 (Apple Inc. build 5646)] QGIS version: 1.7.0-Wroclaw Wroclaw, + 0 _______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
