Made metadata.dstype = "shape" for shapefiles.