add utility function for shapefiles