Schema
public
Owner
postgres
Descriptions
args: geom, from_proj, to_srid - 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 from_proj text to_srid integer |
Definition
CREATE OR REPLACE FUNCTION public.st_transform (
geom public.geometry,
from_proj text,
to_srid integer
)
RETURNS public.geometry AS
$span$
SELECT postgis_transform_geometry($1, $2, proj4text, $3)
FROM spatial_ref_sys WHERE srid=$3;
$span$
LANGUAGE 'sql'
IMMUTABLE
RETURNS NULL ON NULL INPUT
SECURITY INVOKER
COST 100;
COMMENT ON FUNCTION public.st_transform(geom public.geometry, from_proj text, to_srid integer)
IS 'args: geom, from_proj, to_srid - 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 |