[postgis-devel] [PostGIS] #1151: [raster] raster2pgsql.py -l option is broken
PostGIS
trac at osgeo.org
Mon Aug 1 13:12:10 PDT 2011
#1151: [raster] raster2pgsql.py -l option is broken
----------------------------+-----------------------------------------------
Reporter: pracine | Owner: pracine
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.0
Component: postgis raster | Version: trunk
Keywords: |
----------------------------+-----------------------------------------------
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...
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1151>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list