Opened 9 years ago
Closed 9 years ago
#3187 closed defect (fixed)
Bounding box for collection types in twkb is corrupt
Reported by: | nicklas | Owned by: | pramsey |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.1.8 |
Component: | postgis | Version: | 2.1.x |
Keywords: | Cc: | pramsey |
Description
In ST_AsTWKB bounding box calculation doesn't work on collections.
It is seen when running this query:
select st_astwkb(st_collect('point(1 1)'::geometry,'linestring(1 1, 1 2)'::geometry),0,0,0,true,true)
it returns st_astwkb
\x07032cfeffffffffffffffff0102feffffffffffffffff010202010306020002000202020309020002020202020002
This comes from that at the top level the bbox is never calculated. It is calculated in the subgeoemtries and zeroed between subgeoemtries and when moving back to top level.
I don't think we shall put bbox on subgeoemtries at all for collections, just like multigeometries and instead put an envelope bbox on top level. That corresponds to ordinary collections.
If no objections I will fix it later this week.
Note:
See TracTickets
for help on using tickets.
I changed my mind.
I put bbox on all levels when outputting twkb-collections.
Fixed in r13801