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

Function: st_transform

 

 

Schema

public

 

Owner

postgres

 

Descriptions

args: geom, to_proj - Return a new geometry with its coordinates transformed to a different spatial reference.

 

Options

Option

Value

Returns

public.geometry

Language

sql

Parameters

geom public.geometry

to_proj text

 

Definition

CREATE OR REPLACE FUNCTION public.st_transform (
 geom public.geometry,
 to_proj text
)
RETURNS public.geometry AS
$span$
SELECT
postgis_transform_geometry($1, proj4text, $2, 0)
FROM spatial_ref_sys WHERE srid=public.ST_SRID($1);
$span$
LANGUAGE
'sql'
IMMUTABLE
RETURNS NULL ON NULL INPUT
SECURITY INVOKER
COST
100;

COMMENT ON FUNCTION public.st_transform(geom public.geometry, to_proj text)
IS 'args: geom, to_proj - Return a new geometry with its coordinates transformed to a different spatial reference.';

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