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

Function: st_rotate

 

 

Schema

public

 

Owner

albenard

 

Descriptions

args: geomA, rotRadians, pointOrigin - Rotate a geometry rotRadians counter-clockwise about an origin.

 

Options

Option

Value

Returns

public.geometry

Language

sql

Parameters

public.geometry

double precision

public.geometry

 

Definition

CREATE OR REPLACE FUNCTION public.st_rotate (
 public.geometry,
 double precision,
 public.geometry
)
RETURNS public.geometry AS
$span$
SELECT public
.ST_Affine($1,  cos($2), -sin($2), 0,  sin($2),  cos($2), 0, 0, 0, 1, public.ST_X($3) - cos($2) * public.ST_X($3) + sin($2) * public.ST_Y($3), public.ST_Y($3) - sin($2) * public.ST_X($3) - cos($2) * public.ST_Y($3), 0)
$span$
LANGUAGE
'sql'
IMMUTABLE
RETURNS NULL ON NULL INPUT
SECURITY INVOKER
COST
100;

COMMENT ON FUNCTION public.st_rotate(public.geometry, double precision, public.geometry)
IS 'args: geomA, rotRadians, pointOrigin - Rotate a geometry rotRadians counter-clockwise about an origin.';

This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 26/02/2014 11:51
Previous topic Chapter index Next topic