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

Function: gettopogeomelements

 

 

Schema

topology

 

Owner

postgres

 

Descriptions

args: tg - Returns a set of topoelement objects containing the topological element_id,element_type of the given TopoGeometry (primitive elements)

 

Options

Option

Value

Returns

Set of topology.topoelement

Language

plpgsql

Parameters

tg topology.topogeometry

 

Definition

CREATE OR REPLACE FUNCTION topology.gettopogeomelements (
 tg topology.topogeometry
)
RETURNS SETOF topology.topoelement AS
$span$
DECLARE

 toponame varchar;
 rec RECORD;
BEGIN
 toponame = topology.GetTopologyName(tg.topology_id);
 FOR rec IN SELECT * FROM topology.GetTopoGeomElements(toponame,
   tg.layer_id,tg.id) as ret
 LOOP
   RETURN NEXT rec.ret;
 END LOOP;
 RETURN;
END;
$span$
LANGUAGE
'plpgsql'
STABLE
RETURNS NULL ON NULL INPUT
SECURITY INVOKER
COST
100 ROWS 1000;

COMMENT ON FUNCTION topology.gettopogeomelements(tg topology.topogeometry)
IS 'args: tg - Returns a set of topoelement objects containing the topological element_id,element_type of the given TopoGeometry (primitive elements)';

This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 07/12/2018 13:23
Previous topic Chapter index Next topic