Database reference - postgis

postgis -  functions -  public.st_mpointfromtext

Description

none

Function properties

namevalue
namepublic.st_mpointfromtext
return typepublic.geometry 
languageSQL
deterministicYES

Usage

result = public.st_mpointfromtext();

Code

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




Documentation generated by SqlSpec