Changes between Version 78 and Version 79 of WKTRaster/SpecificationWorking01


Ignore:
Timestamp:
Dec 18, 2009, 9:46:54 AM (14 years ago)
Author:
pracine
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • WKTRaster/SpecificationWorking01

    v78 v79  
    261261 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.
    262262
    263  Ways for a pg/plSQL function to return many columns:
     263 Ways for a pg/plSQL or SQL function to return many columns:
    264264
    265265 Functions with Output Parameters (PgSQL doc 34.4.3):
    266266
    267  CREATE FUNCTION sum_n_product (x int, y int, OUT sum int, OUT product int)[[BR]]
     267 CREATE FUNCTION sum_n_product(x int, y int, OUT sum int, OUT product int)[[BR]]
    268268 AS 'SELECT $1 + $2, $1 * $2'[[BR]]
    269269 LANGUAGE SQL;
    270270
    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:
    272277
    273278 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.