How zipfile parsing handles multiple shapefiles
gh-pagesWhen parsing a .zip file:
- If the zip contains only one
.shpfile,shp()returns a single GeoJSON object. - If the zip contains multiple
.shpfiles,shp()returns an array of GeoJSON objects.
All returned GeoJSON objects include an extra property fileName, which contains the name of the shapefile minus its extension (e.g., the common part of the filename).