Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am having a problem opening a shape file using QGIS using 'add vector later'. This is the error message i am getting:

/Users/Conrad/AmerindianLands 2/Amerindian_Land_Karasabai.shp is not a valid or recognized data source

Can anyone help? I have made sure that it is being extracted from a folder containing the other necessary files with the following extensions (.dbf,.prj,.shp, .sbx,.sbn)

Many thanks

Conrad

share|improve this question
1  
Are you able to add other shapefiles that you know are not corrupted? Try downloading a country shapefile from GADM (gadm.org/country) and see if you get the same errors. –  Aaron Apr 1 at 14:53
    
possible duplicate of How do I load a .dbf file into QGIS? –  Get Spatial Apr 1 at 15:01
    
Yes many thanks I haev opened other shapefiles without a problem –  Conrad Feather Apr 1 at 15:04
    
I suspect that @Damian_H is correct--your shapefile needs the associated *.shx. Do you see the .shx file? –  Aaron Apr 1 at 15:10

1 Answer 1

Have you got the *.shx file? It seems to be required to open shapefile.

share|improve this answer
    
I do not have an .shx file and suspected this might be a problem - I changed the .sbx file to an .shx file thinking it might help and it loads up but nothing appears? –  Conrad Feather Apr 1 at 15:05
2  
That's your problem. Only 3 of the shapefile's individual files are actually necessary for it to work: the .SHP, .SHX, and .DBF files. If one of those is missing, it won't work. –  Dan C Apr 1 at 15:21
1  
I think there is a huge difference between this two files, so you cant simple change sbx to shx. –  dmh126 Apr 1 at 15:26
1  
@Vince there is no guarantee the records in the .shp file will correspond correctly to the records in the .dbf file. Often they will, but if the shapefile has undergone extensive edits and deletions--and depending on the software used to do them--there is no way reliably to recover the correspondence. –  whuber Apr 1 at 16:06
1  
@Vince That is not the case according to the ESRI technical description that governs the shapefile standard. I refer you to page 2 (which gives an overview) and page 23 (describing the .shx file). Nowhere does this document guarantee what you say. In fact, such a guarantee would obviate any need for the .shx file at all. Plenty of people have discovered this fact when they attempted to recreate a missing or corrupted .shx file and found that the attributes were mis-matched to the features. –  whuber Apr 1 at 16:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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