Bug report #21865

Can't add 538 redistricting shapefile as vector layer

Added by Hank Tucker about 5 years ago. Updated about 5 years ago.

Status:Closed
Priority:High
Assignee:-
Category:Vectors
Affected QGIS version:3.4.3 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data:No Copied to github as #:29680

Description

I'm trying to add shapefiles from the Atlas of Redistricting on FiveThirtyEight as vector layers to QGIS for a class project. For example, one I want is the NC-Compact shapefile, and I'm also downloading the corresponding shx, prj and dbf files into the same folder. But when I try to add the shapefile to my QGIS project, it says "Invalid Data Source: /Users/hanktucker/Desktop/NC Compact/NC-Compact.shp is not a valid or recognized data source." Why is this?

NC-Compact (1).prj (57.9 KB) Hank Tucker, 2019-04-17 02:31 AM

NC-Compact (1).dbf (55.6 KB) Hank Tucker, 2019-04-17 02:31 AM

NC-Compact (1).shx (55.6 KB) Hank Tucker, 2019-04-17 02:31 AM

NC-Compact (1).shp (55.6 KB) Hank Tucker, 2019-04-17 02:31 AM

NC-Compact (2).cpg (57.5 KB) Hank Tucker, 2019-04-17 02:31 AM

NC-Compact.drf (1.33 MB) Hank Tucker, 2019-04-17 02:31 AM

History

#1 Updated by Giovanni Manghi about 5 years ago

  • Resolution set to invalid
  • Status changed from Open to Closed

ogrinfo reports that it cannot read/open the shapefile, so it is normal it won't open in QGIS. The vector has issues of its own, not a QGIS issue.

Try:

ogrinfo -so NC-Compact.shp NC-Compact

Also available in: Atom PDF