Changes between Version 78 and Version 79 of WKTRaster/SpecificationWorking01
- Timestamp:
- 12/18/09 09:46:54 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified WKTRaster/SpecificationWorking01
v78 v79 261 261 This function construct the WKT strings representing the geometries grouping pixels of a raster having the same value. It does not directly construct geometries and therefore prevent WKT Raster from having to link with liblwgeom.a (see "Why avoid to link with PostGIS?" below) It should also return the value associated with this WKT polygon. 262 262 263 Ways for a pg/plSQL function to return many columns:263 Ways for a pg/plSQL or SQL function to return many columns: 264 264 265 265 Functions with Output Parameters (PgSQL doc 34.4.3): 266 266 267 CREATE FUNCTION sum_n_product 267 CREATE FUNCTION sum_n_product(x int, y int, OUT sum int, OUT product int)[[BR]] 268 268 AS 'SELECT $1 + $2, $1 * $2'[[BR]] 269 269 LANGUAGE SQL; 270 270 271 Ways for a pg/plSQL function to return many rows: 271 The function must be called in the FROM clause, otherwise it returns a 272 273 SELECT * FROM sum_n_product(11,42); 274 275 276 Ways for a pg/plSQL or SQL function to return many rows: 272 277 273 278 It should be implemented by passing the raster to GDAL and convert each polygon produced by the [http://www.gdal.org/gdal__alg_8h.html GDALPolygonize function] to a WKT string.