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

Function: st_numpatches

 

 

Schema

public

 

Owner

albenard

 

Descriptions

args: g1 - Return the number of faces on a Polyhedral Surface. Will return null for non-polyhedral geometries.

 

Options

Option

Value

Returns

integer

Language

sql

Parameters

public.geometry

 

Definition

CREATE OR REPLACE FUNCTION public.st_numpatches (
 public.geometry
)
RETURNS integer AS
$span$
SELECT CASE WHEN public
.ST_GeometryType($1) = 'ST_PolyhedralSurface'
THEN public.ST_NumGeometries($1)
ELSE NULL END
$span$
LANGUAGE
'sql'
IMMUTABLE
RETURNS NULL ON NULL INPUT
SECURITY INVOKER
COST
100;

COMMENT ON FUNCTION public.st_numpatches(public.geometry)
IS 'args: g1 - Return the number of faces on a Polyhedral Surface. Will return null for non-polyhedral geometries.';

This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 26/02/2014 11:51
Previous topic Chapter index Next topic