Schema
Owner
postgres
Descriptions
args: WKT, srid - Construct a MultiPolygon given an arbitrary collection of closed linestrings as a MultiLineString text representation Well-Known text representation.
Options
Option | Value |
---|---|
Returns |
public.geometry |
Language |
|
Parameters |
text integer |
Definition
CREATE OR REPLACE FUNCTION public.st_bdmpolyfromtext (
text,
integer
)
RETURNS public.geometry AS
$span$
DECLARE
geomtext alias for $1;
srid alias for $2;
mline geometry;
geom geometry;
BEGIN
mline := ST_MultiLineStringFromText(geomtext, srid);
IF mline IS NULL
THEN
RAISE EXCEPTION 'Input is not a MultiLinestring';
END IF;
geom := ST_Multi(ST_BuildArea(mline));
RETURN geom;
END;
$span$
LANGUAGE 'plpgsql'
IMMUTABLE
RETURNS NULL ON NULL INPUT
SECURITY INVOKER
COST 100;
COMMENT ON FUNCTION public.st_bdmpolyfromtext(text, integer)
IS 'args: WKT, srid - Construct a MultiPolygon given an arbitrary collection of closed linestrings as a MultiLineString text representation Well-Known text representation.';
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 13/03/2014 13:23 |