[postgis-devel] [PostGIS] #628: gdal2raster -F switch broken?

PostGIS trac at osgeo.org
Fri Oct 15 11:25:08 PDT 2010


#628: gdal2raster -F switch broken?
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------
 Is the -F switch that inserts the file name to raster table broken or am I
 doing it wrong.

 I did this


 {{{
 python gdal2raster.py -r Vietnam\dted\*\*.dt0 -t ch13.vietelev  -s 4326 -k
 50x50 -F -I -o vietelev.sql
 }}}

 and to my dissatisfaction it created an invalid sql file with stuff like


 {{{
 INSERT INTO "ch13"."vietnam_elev" ( filename, rast ) VALUES ( ('<type
 'file'>')::text, ('0....
 }}}

 Seemed to work fine without the -F switch, but I want the file name too :(

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/628>
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