Transfered the changes implemented for regular locality data to also work with GBIF input data