Diesen Artikel gibt es noch nicht auf Deutsch — Sie lesen ihn auf Englisch.

A Catalog Shapefile Would Not Open in QGIS: "Invalid Data Source"

2026-11-235 min read
ShapefileQGISZIP

This is a walk through one real review. There is no author name here, only what went wrong, whose mistake it was, and what we fixed. If QGIS answered "Invalid Data Source" to a shapefile you downloaded, this story is about you.

What was ordered

In October 2026 a user opened a city page in the site catalog and downloaded the map in the Shapefile format, to work with it in QGIS. Shapefiles were nothing new to them: files from city open data portals usually open on their machine without any trouble.

The pictures in this article are made on another city, the Old Town of Dresden, so that the original page is not shown.

The osm2cdr.com catalog: the Dresden page, Shapefile format

Step 1. QGIS would not open the file, and the mistake was ours

QGIS answered the downloaded file with a single line: "Invalid Data Source". The user left a review: the file does not open, what should I do?

We looked into it the same day. A shapefile is not one file but several files sharing one name: the geometry (.shp), the index (.shx), the attribute table (.dbf), the coordinate system (.prj) and the encoding (.cpg). That is why the site packs them into a ZIP archive. The archive itself was fine. The mistake was in its name: the archive was served with a name ending in .shp, without .zip.

QGIS trusts the file name ending. It saw ".shp", tried to read the archive as shapefile geometry, did not find the expected content inside and honestly reported that the source was invalid. The mistake was ours, not the program's and not the user's.

What we fixed on the site

The fix went live the same day. Every format that the site delivers as an archive is now named honestly, with a .zip ending: Shapefile (ending in .shp.zip), MapInfo MIF and TAB, File Geodatabase, Zarr and the other archive exports. We checked the live site: the city file from the catalog now arrives with a name ending in .shp.zip and with the ZIP archive type. Formats that are archives by nature and are always named that way (KMZ, for example) were left as they were.

A test that covers every format on the site now makes sure that an archive format never again leaves under someone else's ending.

Step 2. How to open a file you already downloaded

If you still have a file downloaded before the fix, there is no need to download it again. This is what we wrote to the user:

  1. Rename the file: replace the .shp ending with .zip.
  2. Unpack the archive into a separate folder.
  3. In QGIS, open the .shp file from that folder, through "Layer → Add Layer → Add Vector Layer" or simply by dragging it into the window.

The .shp, .shx, .dbf, .prj and .cpg files must sit next to each other in one folder; otherwise QGIS will not find the attributes of the features or the coordinate system.

A shapefile after unpacking the archive: the Old Town of Dresden, road (roads.shp) and building (buildings.shp) layers

The picture is a rendering of the road and building shapefiles for a piece of the Old Town of Dresden, November 2026: road lines, building outlines and water, each layer a separate set of .shp files, as in a site export.

Step 3. The demo and the full map

In the same letter we explained one more thing that is easy to miss. The catalog lets you download a demo of a place map at no charge: the file name carries the word "DEMO", and large "DEMO" letters are cut out of the map itself. The demo is there so you can check how the file opens in your program and which layers it holds. The full map, without the cut-out letters, is built after payment.

If the demo opens and the layers suit you, the full map will open the same way: the format and the set of files are identical.

Questions people ask

Can QGIS open the archive without unpacking it? Yes, QGIS can read a shapefile straight from a .zip archive: drag the archive into the program window. For that, though, the archive must have a .zip ending. The unpacked version is more reliable if you plan to edit the data.

Which encoding are the labels in? The set includes a .cpg file with the encoding, and QGIS reads it on its own, so non-Latin street names do not turn into question marks.

I need the same map in another format. Exporting the same frame again in another format is free (a smaller or shifted frame is a new purchase). If a shapefile is awkward, see the comparison of Shapefile and GeoPackage: GeoPackage is a single file with no archive.

Why not one file in the first place? The Shapefile format was designed decades ago as a set of files, and most GIS programs still expect it that way. Packing the set into one archive is the only way to deliver it as a single download without losing a part of it on the way.

See the Shapefile format for details and how to load a map into QGIS for a step-by-step guide.

Make the same map Order a custom map

← All articles