Topology Components as global TopoElements access

Sandro Santilli strk at kbt.io
Tue Nov 12 23:40:07 PST 2024


On Tue, Nov 12, 2024 at 08:46:16PM +0000, Felipe Matas wrote:
> Hi, latot here, I was thinking in TopoElements, they are nice and well
> organized in the relation's table, but to me makes noise in the actual
> SQL use, because the TopoElement do not store any information about the
> to which layer belongs, so can be hard to use it safely.

A TopoElement can represent *either* a primitive *or* a TopoGeometry.
In the latter case (TopoGeometry) you have the layer information in
the "type" attribute of the TopoElement.

See https://postgis.net/docs/topoelement.html

--strk;

  Libre GIS consultant/developer
  https://strk.kbt.io/services.html


More information about the postgis-devel mailing list