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

Function: st_translate

 

 

Schema

public

 

Owner

postgres

 

Descriptions

args: g1, deltax, deltay, deltaz - Translates the geometry to a new location using the numeric parameters as offsets. Ie: ST_Translate(geom, X, Y) or ST_Translate(geom, X, Y,Z).

 

Options

Option

Value

Returns

public.geometry

Language

sql

Parameters

public.geometry

double precision

double precision

double precision

 

Definition

CREATE OR REPLACE FUNCTION public.st_translate (
 public.geometry,
 double precision,
 double precision,
 double precision
)
RETURNS public.geometry AS
$span$
SELECT
ST_Affine($1, 1, 0, 0, 0, 1, 0, 0, 0, 1, $2, $3, $4)
$span$
LANGUAGE
'sql'
IMMUTABLE
RETURNS NULL ON NULL INPUT
SECURITY INVOKER
COST
100;

COMMENT ON FUNCTION public.st_translate(public.geometry, double precision, double precision, double precision)
IS 'args: g1, deltax, deltay, deltaz - Translates the geometry to a new location using the numeric parameters as offsets. Ie: ST_Translate(geom, X, Y) or ST_Translate(geom, X, Y,Z).';

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