May 2017
Beginner to intermediate
328 pages
7h 17m
English
After creating some topological elements, it's time to link them with a feature table. A function, topology.CreateTopoGeom, is used to instantiate a TopoGeometry. It takes four arguments:
Let's add the first created face as a fictional country, Nulland, to the countries table:
INSERT INTO countries(name,topogeom) VALUES('Nulland',topology.CreateTopoGeom('my_topology',3,1,'{{4258,3}}'::topology.topoelementarray));
A topoelementarray is a special helper type. It's an array of two-dimensional arrays, each composed of a topology element ID and its type (1-node,2-edge,3-face). The element's types must ...
Read now
Unlock full access