added option to build geometrycollection instead of featurecollection if desired