[postgis-devel] [PostGIS] #989: [raster] gdal2wktraster.py has trouble with GRD files

PostGIS trac at osgeo.org
Fri Jun 10 05:56:58 PDT 2011


#989: [raster] gdal2wktraster.py has trouble with GRD files
----------------------------+-----------------------------------------------
 Reporter:  dondrake        |       Owner:  pracine      
     Type:  defect          |      Status:  new          
 Priority:  medium          |   Milestone:  PostGIS 2.0.0
Component:  postgis raster  |     Version:  trunk        
 Keywords:                  |  
----------------------------+-----------------------------------------------

Comment(by etiennebr):

 You're right, I got a warning with your file(I missed it on first time
 because I was in verbose mode):
 DeprecationWarning: integer argument expected, got float hexstr =
 binascii.hexlify(struct.pack(fmt_little, data)).upper()

 But I doubt it is linked to grd as
 >gdal_translate test.grd test.tif
 Input file size is 2334, 2467
 Warning 1: Unable to export GeoTIFF file with different datatypes per
 different bands. All bands should have the same types in TIFF.
 0...10...20...30...40...50...60...70...80...90...100 - done.

 and then same warning with raster2pgsql.py --raster=test.tif (even if it
 switched band 4 type to byte)

 Hope it can help you Pierre...

 --
 Etienne

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/989#comment:8>
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