backport fix for raw terrain upload