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

Function: st_transform

 

 

Schema

public

 

Owner

postgres

 

Descriptions

args: rast, alignto, algorithm=NearestNeighbor, maxerr=0.125 - Reprojects a raster in a known spatial reference system to another known spatial reference system using specified resampling algorithm. Options are NearestNeighbor, Bilinear, Cubic, CubicSpline, Lanczos defaulting to NearestNeighbor.

 

Options

Option

Value

Returns

public.raster

Language

plpgsql

Parameters

rast public.raster

alignto public.raster

algorithm text = 'NearestNeighbour'::text

maxerr double precision = 0.125

 

Definition

CREATE OR REPLACE FUNCTION public.st_transform (
 rast public.raster,
 alignto public.raster,
 algorithm text = 'NearestNeighbour'::text,
 maxerr double precision = 0.125
)
RETURNS public.raster AS
$span$
DECLARE

_srid integer;
_scalex double precision;
_scaley double precision;
_gridx double precision;
_gridy double precision;
_skewx double precision;
_skewy double precision;
BEGIN
SELECT
srid, scalex, scaley, upperleftx, upperlefty, skewx, skewy INTO _srid, _scalex, _scaley, _gridx, _gridy, _skewx, _skewy FROM st_metadata($2);

RETURN public._ST_gdalwarp($1, $3, $4, _srid, _scalex, _scaley, _gridx, _gridy, _skewx, _skewy, NULL, NULL);
END;
$span$
LANGUAGE
'plpgsql'
STABLE
RETURNS NULL ON NULL INPUT
SECURITY INVOKER
COST
100;

COMMENT ON FUNCTION public.st_transform(rast public.raster, alignto public.raster, algorithm text, maxerr double precision)
IS 'args: rast, alignto, algorithm=NearestNeighbor, maxerr=0.125 - Reprojects a raster in a known spatial reference system to another known spatial reference system using specified resampling algorithm. Options are NearestNeighbor, Bilinear, Cubic, CubicSpline, Lanczos defaulting to NearestNeighbor.';

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