building data shape merging code