Schema
Owner
postgres
Descriptions
args: geomA, rotRadians, x0, y0 - Rotate a geometry rotRadians counter-clockwise about an origin.
Options
Option | Value |
---|---|
Returns |
public.geometry |
Language |
sql |
Parameters |
public.geometry double precision double precision double precision |
Definition
CREATE OR REPLACE FUNCTION public.st_rotate (
public.geometry,
double precision,
double precision,
double precision
)
RETURNS public.geometry AS
$span$
SELECT ST_Affine($1, cos($2), -sin($2), 0, sin($2), cos($2), 0, 0, 0, 1, $3 - cos($2) * $3 + sin($2) * $4, $4 - sin($2) * $3 - cos($2) * $4, 0)
$span$
LANGUAGE 'sql'
IMMUTABLE
RETURNS NULL ON NULL INPUT
SECURITY INVOKER
COST 100;
COMMENT ON FUNCTION public.st_rotate(public.geometry, double precision, double precision, double precision)
IS 'args: geomA, rotRadians, x0, y0 - Rotate a geometry rotRadians counter-clockwise about an origin.';
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 13/03/2014 13:23 |