Opened 9 years ago

Closed 9 years ago

#3186 closed defect (fixed)

mixed dimmentionality in ST_AsTWKB gives strange results

Reported by: nicklas Owned by: pramsey
Priority: medium Milestone: PostGIS 2.2.0
Component: postgis Version: master
Keywords: Cc:

Description

ST_AsTWKB version that takes input from array of geometries have no check for mixed dimensionality.

In theory when returning a collection type (7) it would be possible to handle mixed dimensionality. But since all geoemtries is transportet internally as geometry collection it doesn't work.

And the very first byte in the twkb will then be inconsistent with the subgeoemtries

Change History (1)

comment:1 by nicklas, 9 years ago

Resolution: fixed
Status: newclosed

For now I think the right way is to not allow mixed dimensionality.

That is the same behavior as ST_Collect

Done in r13731

Note: See TracTickets for help on using tickets.