If input is a geom and has attributes other than
fid and gid, a "Simple feature collection", otherwise a
"Geometry set". Several features of the geom are returned as MULTI*
feature, when they have gid and optionally other attributes in
common, otherwise they are returned as a single simple feature.