Bug #6166

pymorph functions fail to excute: memory error

Added by richard burcher 10 months ago. Updated 6 months ago.

Status:Closed Start Date:08/07/2012
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:Backend/Pymorph
Target version:-
Patch supplied:No

Description

issue:
pymorph fails to execute. loaded binary raster results in MemoryError when tested against the following (have only tested these. function names as listed in sextante algorithm dialog):
-areaclose
-erode
-center
-skelm

setup:
r337
win 7
qgis 1.8 installed through osgeo4w installer (all python libs taken from versions provided with installer)

command issued:
-command for areaclose
Sextante.runalg("pymorph::areaclose","C:/1_WorkStation_Folders/Work/NRCAN_GEMS/OBIA/landsat7_NrcanMosaic_clipped_epsg3347/saga_superVisedClassificationTesting/saga_promising_august/aug4_postClassification/class_dh_clump.tif",None)

error output:
- this is same for all algorithms listed above
Traceback (most recent call last):
File "C:/Users/richard/.qgis//python/plugins\sextante\core\GeoAlgorithm.py", line 116, in execute
self.processAlgorithm(progress)
File "C:/Users/richard/.qgis//python/plugins\sextante\script\ScriptAlgorithm.py", line 159, in processAlgorithm
exec(script)
File "<string>", line 14, in <module>
File "C:\OSGeo4W\apps\Python27\Lib\site-packages\osgeo\gdal.py", line 765, in ReadAsArray
return gdalnumeric.DatasetReadAsArray( self, xoff, yoff, xsize, ysize, buf_obj )
File "C:\OSGeo4W\apps\Python27\Lib\site-packages\osgeo\gdal_array.py", line 162, in DatasetReadAsArray
return BandReadAsArray( ds.GetRasterBand(1), xoff, yoff, xsize, ysize, buf_obj = buf_obj)
File "C:\OSGeo4W\apps\Python27\Lib\site-packages\osgeo\gdal_array.py", line 228, in BandReadAsArray
ar = numpy.empty([buf_ysize,buf_xsize], dtype = typecode)
MemoryError

History

Updated by richard burcher 10 months ago

  • Assigned to deleted (Victor Olaya)

Updated by Filipe Dias 6 months ago

  • Status changed from New to Closed

Pymorph was removed from Sextante.

Also available in: Atom PDF