Use the first geometry on SHPWRITE in order to find geometry type with or without Z