[Qgis-user] Error at running Image boundary

Agustin Lobo alobolistas at gmail.com
Tue Oct 12 02:17:45 PDT 2010


Luiz,
I've tried Image boundary (qgis 1.5, ubuntu 9.10 binary) and once I
select the directory and click Process Images I get:

An error has occured while executing Python code:

Traceback (most recent call last):
  File "/home/alobo/.qgis/python/plugins/imgboundary/imgboundary_dlg.py",
line 341, in processImages
    self.__processImage(imgTree.child(id))
  File "/home/alobo/.qgis/python/plugins/imgboundary/imgboundary_dlg.py",
line 132, in __processImage
    boundary.calculate(1)
  File "/home/alobo/.qgis/python/plugins/imgboundary/pointsimgboundary.py",
line 229, in calculate
    self.__calculatePoints(nBand)
  File "/home/alobo/.qgis/python/plugins/imgboundary/pointsimgboundary.py",
line 191, in __calculatePoints
    (line, scan) = matrixImg.getFindFirstNoZero()
  File "/home/alobo/.qgis/python/plugins/imgboundary/pointsimgboundary.py",
line 119, in getFindFirstNoZero
    rangeRead = self.__populateMatrix()
  File "/home/alobo/.qgis/python/plugins/imgboundary/pointsimgboundary.py",
line 95, in __populateMatrix
    self.__Band.XSize, rangeRead, self.__Band.DataType)
  File "/usr/lib/python2.6/dist-packages/osgeo/gdal.py", line 878, in
ReadAsArray
    buf_xsize, buf_ysize, buf_obj )
  File "/usr/lib/python2.6/dist-packages/osgeo/gdal_array.py", line
186, in BandReadAsArray
    if len(buf_obj.shape) == 2:
AttributeError: 'int' object has no attribute 'shape'


Thanks,

Agus



More information about the Qgis-user mailing list