pggeodb.nancy.inra.fr/db_cefs - db_cefs on pggeodb.nancy.inra.fr
Previous topic Chapter index Next topic

Function: st_resize

 

 

Schema

public

 

Owner

postgres

 

Descriptions

args: rast, width, height, algorithm=NearestNeighbor, maxerr=0.125 - Resize a raster to a new width/height

 

Options

Option

Value

Returns

public.raster

Language

sql

Parameters

rast public.raster

width integer

height integer

algorithm text = 'NearestNeighbour'::text

maxerr double precision = 0.125

 

Definition

CREATE OR REPLACE FUNCTION public.st_resize (
 rast public.raster,
 width integer,
 height integer,
 algorithm text = 'NearestNeighbour'::text,
 maxerr double precision = 0.125
)
RETURNS public.raster AS
$span$
SELECT
_st_gdalwarp($1, $4, $5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, abs($2), abs($3))
$span$
LANGUAGE
'sql'
STABLE
RETURNS NULL ON NULL INPUT
SECURITY INVOKER
COST
100;

COMMENT ON FUNCTION public.st_resize(rast public.raster, width integer, height integer, algorithm text, maxerr double precision)
IS 'args: rast, width, height, algorithm=NearestNeighbor, maxerr=0.125 - Resize a raster to a new width/height';

This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 13/03/2014 13:23
Previous topic Chapter index Next topic