ST_CollectionHomogenize
Name
ST_CollectionHomogenize — Given a geometry collection, return the "simplest" representation of the contents.
Synopsis
    
     geometry
     
      ST_CollectionHomogenize
     
     (
    
    geometry
    
     collection
    
    
     )
    
    ;
   
Description
Given a geometry collection, returns the "simplest" representation of the contents. Singletons will be returned as singletons. Collections that are homogeneous will be returned as the appropriate multi-type.
       
      | 
     |
| 
       When specifying 3 == POLYGON a multipolygon is returned even when the edges are shared. This results in an invalid multipolygon for many cases such as applying this function on an ST_Split result.  | 
    
Availability: 2.0.0