<meta http-equiv="content-type" content="text/html; charset=utf-8"><div></div><div>Hi,</div><div><br></div><div>Perhaps you moved or copied the shape files and forgot to move the accompanied files (3 to 8 files with different extensions like .shx .dbf .shp .prj)?  If you just move the .shp and not the others, this is will create errors.  The .shx contains the geometries.  You may get this kind of message if you try to drag and drop the .shx and not the .shp in QGiS.  </div><div><br></div><div>.tiff will not crash because it's a lone file.  </div><div><br></div><div>Nicolas</div><div><br>Le 25 nov. 2016 à 11:36, Mira Kattwinkel [via <a href="http://OSGeo.org" target="_top" rel="nofollow" link="external">OSGeo.org</a>] <<a href="/user/SendEmail.jtp?type=node&node=5297448&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> a écrit :<br><br></div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' type="cite"><div>

        Dear list
<br><br>I have been working with QGIS 2.14 and now 2.18 for a while on Linux 
<br>Mint 17. Suddenly, I cannot open shape files any more. When trying to 
<br>load them I get the message: "Layer is not valid: The layer XX.shp is 
<br>not a valid layer and can not be added to the map."  In the log message 
<br>panel under ogr it says: "Data source is invalid (Unable to open XX.shx 
<br>or XX.SHX.Try --config SHAPE_RESTORE_SHX true to restore or create it)"
<br><br>Additionally, I cannot open GRASS files any more (which also used to 
<br>work fine) and get the error:" Error reading database file from: 
<br>/usr/share/qgis/resources/srs.db Because of this the projection selector 
<br>will not work..." and then QGIS crashes.
<br><br>Interestingly, I can open shape files from my file browser (it starts 
<br>QGIS and loads the file) but then I cannot add another one. Raster 
<br>(GeoTif) data are also fine.
<br><br>I have no idea what's causing this. I have tried removing and 
<br>reinstalling QGIS (version 2.18 and 2.14) without any success.
<br><br>Can anybody give me any hint what might have corrupted my system?
<br><br>Thanks a lot,
<br>Mira
<br><br>_______________________________________________
<br>Qgis-user mailing list
<br><a href="/user/SendEmail.jtp?type=node&node=5297446&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br>List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_top" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_top" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>

        
        
        
        <br>
        <br>
        <hr noshade="noshade" size="1" color="#cccccc">
        <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://osgeo-org.1560.x6.nabble.com/suddenly-unable-to-open-shape-files-tp5297446.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/suddenly-unable-to-open-shape-files-tp5297446.html</a>
        </div>
        <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                To start a new topic under Quantum GIS - User, email <a href="/user/SendEmail.jtp?type=node&node=5297448&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>
                To unsubscribe from Quantum GIS - User, <a href="" target="_top" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_top" link="external">NAML</a>
        </div></div></blockquote>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/suddenly-unable-to-open-shape-files-tp5297446p5297448.html">Re: suddenly unable to open shape files</a><br/>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/Quantum-GIS-User-f4125267.html">Quantum GIS - User mailing list archive</a> at Nabble.com.<br/>