Schema
Owner
postgres
Descriptions
args: geomA, n - Return the 1-based Nth geometry (face) if the geometry is a POLYHEDRALSURFACE, POLYHEDRALSURFACEM. Otherwise, return NULL.
Options
Option | Value |
---|---|
Returns |
public.geometry |
Language |
sql |
Parameters |
public.geometry integer |
Definition
CREATE OR REPLACE FUNCTION public.st_patchn (
public.geometry,
integer
)
RETURNS public.geometry AS
$span$
SELECT CASE WHEN public.ST_GeometryType($1) = 'ST_PolyhedralSurface'
THEN public.ST_GeometryN($1, $2)
ELSE NULL END
$span$
LANGUAGE 'sql'
IMMUTABLE
RETURNS NULL ON NULL INPUT
SECURITY INVOKER
COST 100;
COMMENT ON FUNCTION public.st_patchn(public.geometry, integer)
IS 'args: geomA, n - Return the 1-based Nth geometry (face) if the geometry is a POLYHEDRALSURFACE, POLYHEDRALSURFACEM. Otherwise, return NULL.';
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 07/12/2018 13:23 |