[postgis-devel] [PostGIS] #540: [wktraster] gdal2wktraster.py -l

John Thakkar thakkar at nexgenwireless.com
Mon Jul 25 16:01:31 PDT 2011


 

I am having same problem as described by this ticket.  Although, this ticket
is nowhere to be found.

When creating rasters with -l option,I get python errors as described below.

 

Any help would be appreciated.

 

#540: [wktraster] gdal2wktraster.py -l option is broken

-----------------------+----------------------------------------------------

Reporter:  pracine    |       Owner:  mloskot        

     Type:  defect     |      Status:  new            

 Priority:  high       |   Milestone:  WKTRaster 0.1.6

Component:  wktraster  |     Version:  trunk          

 Keywords:             |  

-----------------------+----------------------------------------------------

If I try:

 

gdal2wktraster.py -r C:\Temp\test01.bmp -t testmultiimage -s 9102707 -k

200x200 -l 2 > C:\Temp\testmulti5.sql

 

I get:

 

Traceback (most recent call last):

   File "c:\postgres\bin\gdal2wktraster.py", line 1015, in <module>

     main()

   File "c:\postgres\bin\gdal2wktraster.py", line 976, in main

     wkblify_raster(opts, filename, i)

   File "c:\postgres\bin\gdal2wktraster.py", line 921, in wkblify_raster

     summary = wkblify_raster_level(options, ds, options.overview_level,

band_range, infile, i)

   File "c:\postgres\bin\gdal2wktraster.py", line 888, in

wkblify_raster_level

     hexwkb += wkblify_band(options, band, level, xoff, yoff,

read_block_size, block_size, infile, b)

   File "c:\postgres\bin\gdal2wktraster.py", line 796, in wkblify_band

     out_pixels[row] = out_line

ValueError: shape mismatch: objects cannot be broadcast to a single shape

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20110725/470a95ad/attachment.html>


More information about the postgis-devel mailing list