PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
def rtreader.RasterReader.copy_to | ( | self, | |
file, | |||
raster_format = 'TIFF' , |
|||
output_format = 'HEX' , |
|||
sep = '\t' |
|||
) |
Proxy for SQL command COPY TO, Converts selected rasters to specified raster_format with output sent either to single hex-based plain text file or one or more binary files in raster_format, one raster binary file per tuple from the raster table. The BIN output uses HEX output as intermediate stage. raster_format - TIFF|JPEG|PNG output_format - HEX|BIN; BIN is a binary file in raster_format sep - if output_format=HEX, separates rid value from hex-encoded binary.
Definition at line 76 of file rtreader.py.
References rtreader.RasterReader._column, rtreader.RasterReader._conn, rtreader.RasterReader._connect(), rtreader.RasterReader._connstr, rtreader.RasterReader._log(), rtreader.RasterReader._logging, rtreader.RasterReader._query_pixel_types(), rtreader.RasterReader._query_raster_size(), rtreader.RasterReader._query_single_row(), rtreader.RasterReader._sizes, rtreader.RasterReader._table, rtreader.RasterReader._where, and rtreader.RasterReader.num_bands.