Schema
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 13/03/2014 13:23 |