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

Function: st_bdmpolyfromtext

 

 

Schema

public

 

Owner

albenard

 

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

plpgsql

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 := public.ST_MultiLineStringFromText(geomtext, srid);

IF mline IS NULL
THEN
RAISE EXCEPTION
'Input is not a MultiLinestring';
END IF;

geom := public.ST_Multi(public.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 26/02/2014 11:51
Previous topic Chapter index Next topic