Opened 13 years ago
Closed 13 years ago
#1151 closed defect (wontfix)
[raster] raster2pgsql.py -l option is broken
Reported by: | pracine | Owned by: | pracine |
---|---|---|---|
Priority: | blocker | Milestone: | PostGIS 2.0.0 |
Component: | raster | Version: | master |
Keywords: | Cc: |
Description
When trying:
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
See http://postgis.refractions.net/pipermail/postgis-devel/2011-July/014538.html
Strangely there was a ticket #540 describing this problem but it disappeared from the database...
Change History (2)
comment:1 by , 13 years ago
Priority: | medium → blocker |
---|
comment:2 by , 13 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
raster2pgsql.py is now unsupported. If the same issue exists in the new C-based raster2pgsql, please reopen this ticket.