[gdal-dev] Store GDAL Result Raster in PostGIS Directly

2014-05-28 Thread zlzhao1104
Hi I'm a new GDAL/PostGIS user. This question might be simple to you: I need to use gdal_translate to clip a raster, which is already stored in PostGIS. I could do it by using PG to link to my PostGIS database and I could store the result as a tiff file on my disk: gdal_translate -projwin

Re: [gdal-dev] Store GDAL Result Raster in PostGIS Directly

2014-05-28 Thread Chaitanya kumar CH
zlzhao1104, Two things: You need to specify the output data format using the -of option. PostGIS raster driver doesn't support writing yet. It's being implemented now. It is more efficient to do that directly using an SQL command. Refer to PostGIS docs. -- Best regards, Chaitanya Kumar CH On

Re: [gdal-dev] Store GDAL Result Raster in PostGIS Directly

2014-05-28 Thread zlzhao1104
Thanks a lot, chaitanya_ch. I'll use SQL instead. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Store-GDAL-Result-Raster-in-PostGIS-Directly-tp5143022p5143036.html Sent from the GDAL - Dev mailing list archive at Nabble.com.