1

I want to create an age building map of my home city. I made decision to follow this tutorial: https://www.wired.com/2013/10/how-to-map-building-ages-in-your-home-town/.

Building footprint shapefile for my city was not placed in open sources and I tried to use OpenStreetMap data. Via the OSM Downloader plugin I downloaded the multipolygons, filtered buildings, added required attributes and saved a shapefile.

I uploaded this file to this page to convert it to a Mapbox Studio tileset (a zip archive with files .shp, .shx, .dbf, .prj). I am seeing error Invalid zipfile (and no more information).

I reprojected layer to EPGS:3857, changed type of this layer to tile, converted geometry to the singlepart but this error still showing.

Trying to use other formats (i. e., kml) I get a tileset in Studio but my attributes were deleted.

How to fix this error? I use QGIS 3.8.0 (Zanzibar)

6
  • What plugin allows you to modify OSM data and download it as a Mapbox Studio tileset?
    – csk
    Commented Jul 8, 2019 at 15:21
  • @csk I use plugin OSM Downloader
    – Byulent
    Commented Jul 8, 2019 at 19:41
  • Your workflow doesn't make sense. The OSM Downloader plugin just downloads all OSM data in a given area. You said you first downloaded the data using that plugin, then modified it, then downloaded it (again?) as a Mapbox Studio tileset. Where and how are you downloading it a second time?
    – csk
    Commented Jul 8, 2019 at 20:16
  • @csk, drag and drop on this page: studio.mapbox.com/tilesets
    – Byulent
    Commented Jul 9, 2019 at 9:12
  • 1
    Had a similar problem on Mac. Solved the issue by using WinZip and not the native archiver. Commented Nov 6, 2019 at 8:51

2 Answers 2

2

I fixed it. The trouble was in zipper version, default GUI archiver in Ubuntu uses 2.0 version of zip, but Studio requires >2.0. Rezipping via console was helpful.

1
  • Same here. I had a problem on my macOS Catalina. Default zipper was causing this error. WinZip did the trick. Commented Apr 12, 2020 at 12:19
0

Update 11/2024: I had a problem with "Invalid Zip File" as well. The issue appeared to be with the default Windows 11 built-in Zip utility.

Solution (for me): Winzip.

Info: the file I was attempting to upload as a tileset was a zipped QGIS Esri shapefile with a polygon geometry. I tried exporting the shape using a variety of QGIS options (exporting as line, adding a map extent, projecting, changing encoding, etc.) and I also tried zipping it using other compression utilities (7-zip, PKzip, etc.). As an aside, I've never had trouble uploading zipped Esri shapefiles from QGIS in the past on Windows 10 OS.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.