[postgis-tickets] [PostGIS] #3441: [raster] Create out-db file using ST_AddBand
PostGIS
trac at osgeo.org
Tue Jan 26 09:29:13 PST 2016
#3441: [raster] Create out-db file using ST_AddBand
--------------------------------+---------------------------
Reporter: gdrolet | Owner: dustymugs
Type: enhancement | Status: new
Priority: medium | Milestone: PostGIS 2.3.0
Component: raster | Version: trunk
Keywords: ST_AddBand, out-db |
--------------------------------+---------------------------
Following the examples in the manual, I wanted to create a new out-db file
using ST_AddBand:
{{{
SELECT ST_AddBand(
ST_MakeEmptyRaster(10, 10, 0, 0, 50), 1,
'E:\Temp\mytestraster.tif'::text, ARRAY[]::integer[]);
}}}
Which returns with this error:
{{{
ERROR: RASTER_addBandOutDB: Could not open out-db file with GDAL
********** Error **********
}}}
After checking that the permissions on the path are ok, I realized that
the out-db file must already exist somewhere in the system for the query
to work (or am I wrong?).
I think it would be nice if we had the possibility to create a new raster
file (registered as an out-db file in the database) using the query above
or something similar.
PostGIS version:
{{{
POSTGIS="2.3.0dev r14604" GEOS="3.5.0-CAPI-1.9.0 r4090" PROJ="Rel. 4.9.1,
04 March 2015" GDAL="GDAL 2.0.1, released 2015/09/15" LIBXML="2.7.8"
LIBJSON="0.12" RASTER
}}}
PostgreSQL 9.4 on Windows 7 Enterprise 64-bit (SP1)
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3441>
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