0

I want to modify PostGIS geometry type TRIANGLE by adding additional information about its neighbours within TIN.

WKT representation might look as follows: TRIANGLEN ((0 0 0,1 1 1,1 0 2,0 0 0) ID n1 n2 n3), where ID is identifier of the current triangle and n1, n2, n3 are IDs of adjacent triangles.

Is it possible to achieve this?

1 Answer 1

1

Composite types see http://www.postgresql.org/docs/9.2/static/rowtypes.html could be answer or User defined types see http://www.postgresql.org/docs/9.3/static/xtypes.html.

And why not use table like geometry , neighbors(array) + other columns. That solves same problem ( me thinks)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.