[postgis-users] Topology: error creating aggregated topogeom (at city level) from a neighborhoods topogeom
Sandro Santilli
strk at keybit.net
Fri Jan 29 00:05:42 PST 2016
On Wed, Jan 27, 2016 at 11:08:55AM -0200, Lucas Ferreira Mation wrote:
> Then, following the example at http://postgis.net/docs/CreateTopoGeom.html
...
> But I'm getting this error message: "ERROR: A TopoGeometry of type 3
> cannot contain topology elements of type 1". I imagine the problem is with
> the 2nd and 3rd arguments of "CreateTopogeom".
> The role of the 2nd argument is pretty clear in the documentation, and I
> think it should be "3" = colletion of areas. However I don't really
> understand what is the 3rd argument, the integer layer_id.
Each "TopoGeometry" object belongs to exactly 1 "topology layer".
The corresponding layer completes the semantic of the TopoGeometry
value, so you _need_ to clearly define it.
See http://postgis.net/docs/AddTopoGeometryColumn.html for creating
the layer.
--strk;
More information about the postgis-users
mailing list