GLHI Database HTML Dump
Previous topic Chapter index Next topic

Function: geomcollfromwkb

 

 

Schema

public

 

Owner

wetlands

 

Descriptions

There is no description for function geomcollfromwkb

 

Options

Option

Value

Returns

public.geometry

Language

sql

Parameters

bytea

integer

 

Definition


CREATE OR REPLACE FUNCTION "public"."geomcollfromwkb" (bytea, integer) RETURNS "public"."geometry" AS
$body$
SELECT CASE
	WHEN geometrytype(GeomFromWKB($1, $2)) = 'GEOMETRYCOLLECTION'
	THEN GeomFromWKB($1, $2)
	ELSE NULL END
$body$
LANGUAGE 'sql' IMMUTABLE RETURNS NULL ON NULL INPUT SECURITY INVOKER;

Pete Giencke
pgiencke@glc.org
Previous topic Chapter index Next topic