[postgis-devel] Should geomunion() compress output geometry type ?

strk strk at keybit.net
Fri Mar 19 09:35:34 PST 2004


Current geomunion() implementation issues a compressType() 
call as the final step. The compressType() function will
make Multi*-typed geometries with one element become
Single*-typed.

This might not be what you need.
The bad thing is that you end up fighting against table constraints.
(you need a multipolygon, no matter how many resulting polygons are
 in the risult geometry)

What about making the compressType() function available
as a compress(GEOMETRY) function ?
Or - maybe - introduce a function to make Single-typed geoms Multi-typed ?

--strk;



More information about the postgis-devel mailing list