ST_AsTIFF — 将栅格选定波段作为单个TIFF图像(字节数组)返回。如果未指定标注栏或栅格中不存在任何指定标注栏,则将尝试使用所有标注栏。
bytea ST_AsTIFF(
raster rast, text[] options='', integer srid=sameassource)
;
bytea ST_AsTIFF(
raster rast, text compression='', integer srid=sameassource)
;
bytea ST_AsTIFF(
raster rast, integer[] nbands, text compression='', integer srid=sameassource)
;
bytea ST_AsTIFF(
raster rast, integer[] nbands, text[] options, integer srid=sameassource)
;
以单标记图像文件格式(TIFF)返回栅格的选定标注栏。如果未指定波段,将尝试使用所有波段。这是一种包装 ST_AsGDALRaster 。使用 ST_AsGDALRaster 如果需要作为不太常见的栅格类型导出。该函数有许多变体,具有许多选项。如果不存在空间参考SRS文字,则使用栅格的空间参考。现将这些建议逐项列出:
nbands
是要导出的频段数组(请注意,对于PNG,最大值为3),频段的顺序为RGB。例如,数组[3,2,1]表示将波段3映射为红色,将波段2映射为绿色,将波段1映射为蓝色
compression
压缩表达式--JPEG90(或其他百分比)、LZW、JPEG、DEFLATE9。
options
为GTiff定义的GDAL创建选项的文本数组(请参阅GTiff的CREATE_OPTIONS ST_GDALDrivers )。或参阅 GDAL栅格格式选项 了解更多详细信息。
srid
删除栅格的space_ref_sys。这用于填充地理配准信息
可用性:2.0.0-需要GDAL > =1.6.0。