[postgis-users] WKT Raster Error
Andreas Forø Tollefsen
andreasft at gmail.com
Mon Oct 25 05:03:55 PDT 2010
Anyone familiar with the below error?
I have never experienced it before when importing rasters:
C:\Python25>c:\Python25\python c:\wktraster_pg84\bin\gdal2wktraster.py -r
c:\pri
o_grid\source\forest\fcworld.img -t forest -s 4326 -I >
C:\prio_grid\source\gpw\
forest.sql
c:\wktraster_pg84\bin\gdal2wktraster.py:645: DeprecationWarning: integer
argumen
t expected, got float
hexstr = binascii.hexlify(struct.pack(fmt_little, data)).upper()
Traceback (most recent call last):
File "c:\wktraster_pg84\bin\gdal2wktraster.py", line 1014, in <module>
main()
File "c:\wktraster_pg84\bin\gdal2wktraster.py", line 977, in main
wkblify_raster(opts, filename, i)
File "c:\wktraster_pg84\bin\gdal2wktraster.py", line 922, in
wkblify_raster
summary = wkblify_raster_level(options, ds, options.overview_level,
band_ran
ge, infile, i)
File "c:\wktraster_pg84\bin\gdal2wktraster.py", line 889, in
wkblify_raster_le
vel
hexwkb += wkblify_band(options, band, level, xoff, yoff,
read_block_size, bl
ock_size, infile, b)
File "c:\wktraster_pg84\bin\gdal2wktraster.py", line 778, in wkblify_band
target_block_size[0], target_block_size[1])
File "C:\Python25\Lib\site-packages\osgeo\gdal.py", line 835, in
ReadAsArray
buf_xsize, buf_ysize, buf_obj )
File "C:\Python25\Lib\site-packages\osgeo\gdal_array.py", line 138, in
BandRea
dAsArray
buf_xsize, buf_ysize, datatype )
File "C:\Python25\Lib\site-packages\osgeo\gdal.py", line 760, in
ReadRaster
return _gdal.Band_ReadRaster(*args, **kwargs)
MemoryError
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20101025/0922c1cc/attachment.html>
More information about the postgis-users
mailing list