[postgis-devel] [PostGIS] #1839: [raster] raster2pgsql is unable to handle TIFF subdatasets

PostGIS trac at osgeo.org
Wed May 30 12:52:23 PDT 2012


#1839: [raster] raster2pgsql is unable to handle TIFF subdatasets
-----------------------------------------------------+----------------------
 Reporter:  turbothomas                              |       Owner:  dustymugs    
     Type:  defect                                   |      Status:  assigned     
 Priority:  medium                                   |   Milestone:  PostGIS 2.0.1
Component:  raster                                   |     Version:  2.0.x        
 Keywords:  raster2pgsql, TIFF, subdataset, history  |  
-----------------------------------------------------+----------------------

Comment(by turbothomas):

 ok,

 {{{
 gdalinfo GTIFF_DIR:2:myfile.tif

 Driver GTIFF/GeoTIFF
 Files: myfile.tif
 Size is 349, 77520
 Coordinate System is `ยด
 Metadata:
   TIFFTAG_DOCUMENTNAME=MICROTEC3DFAST
   TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
   TIFFTAG_XRESOLUTION=100
   TIFFTAG_YRESOLUTION=100
 Image Structure Metadata:
   COMPRESSION=LZW
   INTERLEAVE=BAND
 Corner Coordinates:
 Upper Left (   0.0,    0.0)
 Lower Left (   0.0,77520.0)
 Upper Right( 340.0.    0.0)
 Lower Right( 340.0,77520.0)
 Center     ( 170.0,38760.0)
 Band 1 Block=340x8 Type=Int16, ColorInterp=Gray
 }}}

 That works :)

 Than


 {{{
 raster2pgsql GTIFF:2:myfile.tif test > test.sql

 Processing 1/1: GTIFF_DIR:2:myfile.tif
 INFO: Using default geotransform matrix (0, 1, 0, 0, 0, -1) for raster:
 GTIFF_DIR:2:myfile.tif
 ERROR: rt_band_set_pixel_line: Coordinates out of range
 ERROR: rt_band_set_pixel_line: Coordinates out of range
 ERROR: rt_band_set_pixel_line: Coordinates out of range
 ...
 }}}

 That doesn't work :(

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