james-willis commented on code in PR #1028: URL: https://github.com/apache/sedona-db/pull/1028#discussion_r3590261525
########## docs/reference/sql/rs_asgeotiff.qmd: ########## @@ -0,0 +1,99 @@ +--- +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +title: RS_AsGeoTiff +description: > + Encodes a raster as a GeoTIFF and returns the bytes as binary, with optional + compression and tiling. +kernels: + - returns: binary + args: + - raster + - returns: binary + args: + - raster + - {name: tile_size, type: integer} + - returns: binary + args: + - raster + - {name: compression, type: string} + - {name: quality, type: double} + - returns: binary + args: + - raster + - {name: compression, type: string} + - {name: quality, type: double} + - {name: tile_size, type: integer} + - returns: binary + args: + - raster + - name: compression + type: string + description: > + GeoTIFF compression codec (case-insensitive): None, PackBits, Deflate, + Huffman, LZW, or JPEG. Deflate and LZW additionally enable a predictor + to improve the compression ratio (horizontal differencing for integer + bands, floating-point prediction for float bands). Huffman maps to + CCITT RLE, which GDAL only accepts for 1-bit single-band data — it is + kept for Apache Sedona parity but errors on ordinary rasters. + - name: quality + type: double + description: > + Quality factor for lossy JPEG compression as a fraction between 0.0 + and 1.0 (e.g. 0.75 for JPEG quality 75, matching Apache Sedona); + values outside that range raise an error. Ignored by the other codecs. + - name: tile_width + type: integer + description: > + Tile width in pixels. When given together with tile_height, the + GeoTIFF is written tiled rather than stripped. TIFF tile dimensions + must be multiples of 16. + - name: tile_height + type: integer + description: Tile height in pixels; must be a multiple of 16. +--- + +## Description + +`RS_AsGeoTiff` encodes a raster as a GeoTIFF (via GDAL) and returns the file Review Comment: done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
