[postgis-tickets] [PostGIS] #4130: PostGIS and GDAL: ST_AsGDALRaster doesn't work

PostGIS trac at osgeo.org
Fri Jul 20 08:59:41 PDT 2018


#4130: PostGIS and GDAL: ST_AsGDALRaster doesn't work
----------------------+---------------------------
 Reporter:  lerocchi  |      Owner:  pramsey
     Type:  defect    |     Status:  new
 Priority:  critical  |  Milestone:  PostGIS 2.4.5
Component:  postgis   |    Version:  2.4.x
 Keywords:            |
----------------------+---------------------------
 ST_AsGDALRaster doesn't work when using specific GDAL Format (e.g. WMS or
 RST).
 When I run this query:

 select ST_AsGDALRaster(rast,'WMS') from my_raster

 I will get the error: ERROR: rt_raster_to_gdal: Could not create the
 output GDAL dataset

 The error occurs on Ubuntu 16.04 with Postgresql 10 and Postgis 2.4.
 In order to enable all GDAL drivers I run

 ALTER DATABASE gisdb SET postgis.gdal_datapath = '/usr/share/gdal/2.2';
 ALTER DATABASE gisdb SET postgis.gdal_enabled_drivers TO 'ENABLE_ALL';
 ALTER DATABASE gisdb SET postgis.postgis.enable_outdb_rasters TO true;

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4130>
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-tickets mailing list