Added new logic to manage shape and tif publication