Dear all,

maybe that's of interest for someone else: I solved the problem by completely removing QGIS and all its configuration files (using 'synaptic' on Linux and some manually) and reinstalling it. I guess the problem emerged from a very large Grass mapset (about 2000 raster and vector files). Could it be that this messed up something internally that it even affected shape files outside of this folder?


Cheers,
Mira

On 25/11/16 18:17, Nicolas Cadieux wrote:
Zip me the file if it's not confidential.  I can test it.

Le 25 nov. 2016 à 12:07, Mira Kattwinkel [via OSGeo.org <http://OSGeo.org>] <[hidden email] </user/SendEmail.jtp?type=node&node=5297452&i=0>> a écrit :

Hello Nicola

Thanks for the suggestion but this is not the problem. I did not move
any files and it happens with whatever shape file I try.

Mira


On 25/11/16 17:58, Nicolas Cadieux wrote:

> Hi,
>
> 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.
>
> .tiff will not crash because it's a lone file.
>
> Nicolas
>
> Le 25 nov. 2016 à 11:36, Mira Kattwinkel [via OSGeo.org <http://OSGeo.org>
> <http://OSGeo.org>] <[hidden email]
> </user/SendEmail.jtp?type=node&node=5297448&i=0>> a écrit :
>
>> Dear list
>>
>> I have been working with QGIS 2.14 and now 2.18 for a while on Linux
>> Mint 17. Suddenly, I cannot open shape files any more. When trying to
>> load them I get the message: "Layer is not valid: The layer XX.shp is
>> not a valid layer and can not be added to the map." In the log message >> panel under ogr it says: "Data source is invalid (Unable to open XX.shx >> or XX.SHX.Try --config SHAPE_RESTORE_SHX true to restore or create it)"
>>
>> Additionally, I cannot open GRASS files any more (which also used to
>> work fine) and get the error:" Error reading database file from:
>> /usr/share/qgis/resources/srs.db Because of this the projection selector
>> will not work..." and then QGIS crashes.
>>
>> Interestingly, I can open shape files from my file browser (it starts
>> QGIS and loads the file) but then I cannot add another one. Raster
>> (GeoTif) data are also fine.
>>
>> I have no idea what's causing this. I have tried removing and
>> reinstalling QGIS (version 2.18 and 2.14) without any success.
>>
>> Can anybody give me any hint what might have corrupted my system?
>>
>> Thanks a lot,
>> Mira
>>
>> _______________________________________________
>> Qgis-user mailing list
>> [hidden email] </user/SendEmail.jtp?type=node&node=5297446&i=0>
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>> ------------------------------------------------------------------------
>> If you reply to this email, your message will be added to the
>> discussion below:
>> http://osgeo-org.1560.x6.nabble.com/suddenly-unable-to-open-shape-files-tp5297446.html
>>
>> To start a new topic under Quantum GIS - User, email [hidden email]
>> </user/SendEmail.jtp?type=node&node=5297448&i=1>
>> To unsubscribe from Quantum GIS - User, click here.
>> NAML
>> <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>
>>
>
> ------------------------------------------------------------------------
> View this message in context: Re: suddenly unable to open shape files
> <http://osgeo-org.1560.x6.nabble.com/suddenly-unable-to-open-shape-files-tp5297446p5297448.html>
> Sent from the Quantum GIS - User mailing list archive
> <http://osgeo-org.1560.x6.nabble.com/Quantum-GIS-User-f4125267.html>
> at Nabble.com <http://Nabble.com>.
>
>
> _______________________________________________
> Qgis-user mailing list
> [hidden email] </user/SendEmail.jtp?type=node&node=5297449&i=0>
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
--
Dr. Mira Kattwinkel
Quantitative Landscape Ecology
Institute for Environmental Sciences
University of Koblenz-Landau
Fortstraße 7
76829 Landau
Germany
Phone: + 49 6341 280-31553
Office: Building I, Room 2.02

_______________________________________________
Qgis-user mailing list
[hidden email] </user/SendEmail.jtp?type=node&node=5297449&i=1>
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

------------------------------------------------------------------------
If you reply to this email, your message will be added to the discussion below: http://osgeo-org.1560.x6.nabble.com/suddenly-unable-to-open-shape-files-tp5297446p5297449.html To start a new topic under Quantum GIS - User, email [hidden email] </user/SendEmail.jtp?type=node&node=5297452&i=1>
To unsubscribe from Quantum GIS - User, click here.
NAML <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>

------------------------------------------------------------------------
View this message in context: Re: suddenly unable to open shape files <http://osgeo-org.1560.x6.nabble.com/suddenly-unable-to-open-shape-files-tp5297446p5297452.html> Sent from the Quantum GIS - User mailing list archive <http://osgeo-org.1560.x6.nabble.com/Quantum-GIS-User-f4125267.html> at Nabble.com.


_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

--
Dr. Mira Kattwinkel
Quantitative Landscape Ecology
Institute for Environmental Sciences
University of Koblenz-Landau
Fortstraße 7
76829 Landau
Germany
Phone: + 49 6341 280-31553
Office: Building I, Room 2.02

_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to