Database reference - postgis

postgis -  functions -  public.st_geomcollfromtext

Description

none

Function properties

namevalue
namepublic.st_geomcollfromtext
return typepublic.geometry 
languageSQL
deterministicYES

Usage

result = public.st_geomcollfromtext();

Code

CREATE FUNCTION st_geomcollfromtext(text, integer) RETURNS geometry
    AS $_$
    SELECT CASE
    WHEN geometrytype(GeomFromText($1, $2)) = 'GEOMETRYCOLLECTION'
    THEN GeomFromText($1,$2)
    ELSE NULL END
    $_$
    LANGUAGE sql IMMUTABLE STRICT;




Documentation generated by SqlSpec