Re: [Qgis-user] Assistance with Basic Authentication

2016-11-28 Thread Richard Duivenvoorde

On 29-11-16 00:51, Phil (The Geek) Wyatt wrote:

Hi Folks,

Is there anyone out there that can assist with a QGIS authentication
issue? I am trying to get basic authentication working but it seems to
be failing all the time. If someone has used authentication recently I
can supply the site details for testing.


Hi Devs (moving this to dev list),

I tested the geojson url of Phil, and if I provide username and password 
IN the url like below it works:


https://username:password@server/api/reports/sample/addresses/geojson

But without the username/password in the url, QGIS does not provide any 
authentication dialogs or so.


Is the api missing a header which QGIS needs to know there is 
authentication on it?


Or how is QGIS triggered to show authentication dialogs when provided 
basic authentication on a 'protocol'-vector layer?


Regards,

Richard Duivenvoorde

___
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

Re: [Qgis-user] Count points overlaying a raster layer

2016-11-28 Thread Nicolas Cadieux
Hi,

There are many options.  I sometimes use the point sampling tool (with a rater 
having class data) and then export to excel or libreoffice and do a cross 
tabulation.  Some option are available directly in qgis.  Be aware that most 
plugins that deal with zonal statistics may  will not work if you have multi 
polygons.

Nicolas

http://www.qgistutorials.com/fr/docs/sampling_raster_data.html

https://conservationecology.wordpress.com/tag/zonal-statistics/
https://docs.qgis.org/2.2/en/docs/user_manual/plugins/plugins_zonal_statistics.html
https://anitagraser.com/2013/02/02/group-stats-tutorial/

> Le 28 nov. 2016 à 21:38, K Imran M [via OSGeo.org] 
>  a écrit :
> 
> Dear all,
> 
> I apologize if this has been asnwered before. My question is:
> 
> if I have 2 layers- one is a vector (points in shapefile format) layer and 
> the other one is a raster layer (flood area). And I would like to count the 
> number of points inside the flood area. How can I do that? Should I convert 
> the raster to vector first? Can anyone kindly refer me to any resource if you 
> know any?
> 
> Best regards.
> 
> Kamarul
> 
> -
> 
> Kamarul Imran Musa (MD MCommunityMed)
> Associate Professor (Epidemiology and Biostatistics) &  
> Public Health Physician,
> 
> 
> 
> ___ 
> Qgis-user mailing list 
> [hidden email] 
> 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/Count-points-overlaying-a-raster-layer-tp5297767.html
> To start a new topic under Quantum GIS - User, email 
> ml-node+s1560n4125267...@n6.nabble.com 
> To unsubscribe from Quantum GIS - User, click here.
> NAML




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Count-points-overlaying-a-raster-layer-tp5297767p5297769.html
Sent from the Quantum GIS - User mailing list archive 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

Re: [Qgis-user] Count points overlaying a raster layer

2016-11-28 Thread Randal Hale

I would convert your raster to vector.

Assuming you are on 2.18 (which is what I am currently using) - open 
your processing toolbox. At the top of QGIS click on Processing -> Toolbox.


1. In your toolbox go to GDAL/OGR -> Conversion -> Polygonize raster to 
Vector. Once you change that to a vector file then go to the next step.


2. In your toolbox go to QGIS geoalgorithms -> Vector Analysis Tools -> 
Count points in polygons. That should add a field to your new polygon 
shapefile with the number of points in that polygon.


Good Luck.


On 11/28/2016 09:37 PM, K Imran M wrote:

Dear all,

I apologize if this has been asnwered before. My question is:

if I have 2 layers- one is a vector (points in shapefile format) layer 
and the other one is a raster layer (flood area). And I would like to 
count the number of points inside the flood area. How can I do that? 
Should I convert the raster to vector first? Can anyone kindly refer 
me to any resource if you know any?


Best regards.

Kamarul

-

Kamarul Imran Musa (MD MCommunityMed)
Associate Professor (Epidemiology and Biostatistics) &
Public Health Physician,




___
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


--

Randal Hale
North River Geographic Systems, Inc
http://www.northrivergeographic.com
423.653.3611 rjh...@northrivergeographic.com
twitter:rjhale http://about.me/rjhale
http://www.northrivergeographic.com/introduction-to-quantum-gis
https://www.facebook.com/NRGSInc

___
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

[Qgis-user] Count points overlaying a raster layer

2016-11-28 Thread K Imran M
Dear all,

I apologize if this has been asnwered before. My question is:

if I have 2 layers- one is a vector (points in shapefile format) layer and
the other one is a raster layer (flood area). And I would like to count the
number of points inside the flood area. How can I do that? Should I convert
the raster to vector first? Can anyone kindly refer me to any resource if
you know any?

Best regards.

Kamarul

-

Kamarul Imran Musa (MD MCommunityMed)
Associate Professor (Epidemiology and Biostatistics) &
Public Health Physician,
___
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

[Qgis-user] Assistance with Basic Authentication

2016-11-28 Thread Phil (The Geek) Wyatt
Hi Folks,

 

Is there anyone out there that can assist with a QGIS authentication issue?
I am trying to get basic authentication working but it seems to be failing
all the time. If someone has used authentication recently I can supply the
site details for testing.

 

 

Cheers - Phil

 

  Kiva Lender,
 Thin Green Line Supporter, Volunteer
Mapper (GISMO) -   Red Cross,
 Wildcare Volunteer

 

___
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

Re: [QGIS-it-user] QGIS 2.18 percorsi relativi e atlas

2016-11-28 Thread Totò
alesarrett wrote
> Avevo capito bene Totò :-)
> 
> Hai controllato che non ci sia già qualche issue aperto? Altrimenti 
> potresti aprirne uno...

Ho appena controllato,
ho trovato vari issue (come  questo   )
dove parlano di problemi su file QLR ma non sui percorsi delle immagini come
il mio caso, secondo voi è il caso di aprirne un altro?

saluti



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/QGIS-2-18-percorsi-relativi-e-atlas-tp5297465p5297737.html
Sent from the QGIS Italian User mailing list archive at Nabble.com.
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] WFS 2.18.1 slow with PostGIS layer

2016-11-28 Thread Régis Haubourg
Hi Nicolas,
If you look at the postgres logs, is there anything different?
Cheers,
Régis

2016-11-28 18:29 GMT+01:00 Nicolas Boisteault <
boistea...@observatoire-environnement.org>:

> Hi list,
>
> OS : Ubuntu Server 16.04
> QGIS Server : 2.18.1
> PostgreSQL : 9.6.1
> PostGIS : 2.3
>
> In my project I have a layer with about 2500 rows, 2 columns and no
> geometry.
> If I wget the WFS :
>
> time wget -pq --no-cache --delete-after "http://127.0.0.1/cgi-bin/
> qgis_mapserv.fcgi?SERVICE=WFS=1.0.0=
> GetFeature=especes=nom_scientifique%
> 2Cid=GeoJSON=none=path_to_my_project.qgs"
> 
>
> Result with QGIS 2.14.9 :
>
> real 0m0.379s
> user 0m0.003s
> sys 0m0.002s
>
> Now with QGIS 2.18.1 :
>
> real 0m13.438s
> user 0m0.001s
> sys 0m0.007s
>
> As you can see, it is very very slow. Has someone the same issue?
>
> I opened a ticket here : http://hub.qgis.org/issues/15904
>
> --
> Nicolas BOISTEAULT
> Développeur Web/WebSIG
> Observatoire Régional de l'Environnement
> Téléport 4 Antarès - BP 50163 - 86962 Futuroscope Chasseneuil Cedex
> Tél : 05 49 49 71 18
> *Soyez Eco-responsable, n'imprimez que si nécessaire*
>
> ___
> 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
>
___
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

[Qgis-user] WFS 2.18.1 slow with PostGIS layer

2016-11-28 Thread Nicolas Boisteault

Hi list,

OS : Ubuntu Server 16.04
QGIS Server : 2.18.1
PostgreSQL : 9.6.1
PostGIS : 2.3

In my project I have a layer with about 2500 rows, 2 columns and no 
geometry.

If I wget the WFS :

time wget -pq --no-cache --delete-after 
"http://127.0.0.1/cgi-bin/qgis_mapserv.fcgi?SERVICE=WFS=1.0.0=GetFeature=especes=nom_scientifique%2Cid=GeoJSON=none=path_to_my_project.qgs;


Result with QGIS 2.14.9 :

real 0m0.379s
user 0m0.003s
sys 0m0.002s

Now with QGIS 2.18.1 :

real 0m13.438s
user 0m0.001s
sys 0m0.007s

As you can see, it is very very slow. Has someone the same issue?

I opened a ticket here : http://hub.qgis.org/issues/15904


--
Nicolas BOISTEAULT
Développeur Web/WebSIG
Observatoire Régional de l'Environnement
Téléport 4 Antarès - BP 50163 - 86962 Futuroscope Chasseneuil Cedex
Tél : 05 49 49 71 18
*Soyez Eco-responsable, n'imprimez que si nécessaire*
___
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

Re: [QGIS-it-user] QGIS 2.18 percorsi relativi e atlas

2016-11-28 Thread Alessandro Sarretta

Avevo capito bene Totò :-)

Hai controllato che non ci sia già qualche issue aperto? Altrimenti 
potresti aprirne uno...


Ale


On 28/11/2016 17:29, Totò wrote:

Salve a tutti,
secondo me nessuno mi ha ben capito o meglio NON sono stato in grado di
spiegarmi a parole quindi allego un video dimostrativo:

https://youtu.be/GzVTMErOIo8

saluti



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/QGIS-2-18-percorsi-relativi-e-atlas-tp5297465p5297698.html
Sent from the QGIS Italian User mailing list archive at Nabble.com.
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-it-user


--
--

Alessandro Sarretta

skype/twitter: alesarrett
Web: ilsarrett.wordpress.com 

Research information:

 * Google scholar profile
   
 * ORCID 
 * Research Gate 
 * Impactstory 

___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] different buffer for the same field

2016-11-28 Thread Marco Grisolia
I solved both cases of the previous email.
If you want to buffer starting from a specified distance stored in a field,
please have a look on this post [0] (written by me):

[0] https://howtoinqgis.wordpress.com/2016/11/28/how-to-buffer-v
ectors-from-fields-in-qgis-using-python/

If you want to directly buffer (for your specific case) without any
preliminary edit on the layer, copy the code at the end of this
email: it was adapted from the link above (please refer to it for a clear
comprehension)

For both cases, you may decide to buffer all the features or only the
selected ones.
I hope it would be useful.
Best regards,
Marco

 code below 

##Input_Layer=vector
##Segments=number 30
##Buffer_only_selected_features=Boolean False

from qgis.core import *
from qgis.PyQt.QtCore import QVariant
import math

layer = processing.getObject(Input_Layer)
crs = layer.crs().toWkt()

# Create a dictionary with the preferred distances
distances = {'normal fault': 30, 'inverse fault': 20, 'Overthrust': 50,
'Syncline': 20}

# Create the output layer
outLayer = QgsVectorLayer('Polygon?crs='+ crs, 'outLayer' , 'memory')
prov = outLayer.dataProvider()
fields = layer.pendingFields() # Fields from the input layer
#fields.append(QgsField('drawn_area', QVariant.Double, '', 10, 3))
prov.addAttributes(fields) # Add input layer fields to the outLayer
outLayer.updateFields()

# Check for selected features
if layer.selectedFeatures() and Buffer_only_selected_features is True:
features = layer.selectedFeatures()
else:
features = layer.getFeatures()

# Generate buffers
for feat in features:
inAttr = feat.attributes() # Input attributes
inGeom = feat.geometry() # Input geometry
bf_inGeom = inGeom.buffer(distances[feat['type']], Segments)
poly=bf_inGeom.asPolygon()
drawn_area = bf_inGeom.area()
inAttr.append(drawn_area)
outGeom = QgsFeature()
outGeom.setGeometry(QgsGeometry.fromPolygon(poly))
outGeom.setAttributes(inAttr) # Output attributes
prov.addFeatures([outGeom]) # Output geometry

# Add the layer to the Layers panel
QgsMapLayerRegistry.instance().addMapLayer(outLayer)

 end of the code 


2016-11-27 20:11 GMT+01:00 Marco Grisolia :

> Don't worry for the delay...
> Your goal is to generate the buffer a priori (i.e. by assigning a
> specific value of radius for each feature, without any preliminary
> edit on the layer) or by searching for it in a field of the layer
> (i.e. as Randal Hale suggested)?
> Marco
>
> 2016-11-27 18:54 GMT+01:00 Azzurra Lentini :
> > Dear Marco, apologies to write you only now.
> > Yes with variable distance buffer is fine. Thanks a lot.
> >
> > If you can, could you please write me the PyQgis script for the other
> > option?
> >
> > all regards, Azzurra
> >
> > 2016-11-16 9:22 GMT+01:00 Marco Grisolia :
> >>
> >> If you want to assign a specified buffer for each kind of feature, you
> >> may use a simple PyQGIS script using a call of buffer() from
> >> QgsGeometry(). Are you able to do it? Otherwise I may try to write it
> >> for you if my understanding of the problem was right.
> >> Therefore, if your buffer distances are inside a field, you may use
> >> the "Variable Distance Buffer" algorithm from Processing.
> >> Best regards,
> >> Marco
> >>
> >> 2016-11-16 1:26 GMT+01:00 Azzurra Lentini :
> >> > Dear all,
> >> >
> >> > I have a shape file with a field called “type”.  In the “type”  field
> I
> >> > have
> >> > 4 kinds of samples ( 19 records).
> >> >
> >> > See in the attachment.
> >> >
> >> > The 4 samples are: normal fault, inverse fault, overthrust, syncline.
> >> >
> >> > I would like to create a buffer with different distance for each
> sample
> >> > (the
> >> > best it would be to obtain a shape with 5 different buffer distances).
> >> >
> >> > For example  the buffer distance for the sample “ normal fault” is 30
> m,
> >> > for
> >> > the “inverse fault “ is 20 m, for the “overthrust” is 50 m and for the
> >> > “syncline” is 20 m.
> >> >
> >> >
> >> >
> >> > How I can do this kind of buffer??
> >> >
> >> >
> >> >
> >> > Thanks A.L.
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > Dr. Hydrogeologist
> >> > AZZURRA LENTINI
> >> > Expert of evaluation environmental hazards
> >> > GIS application
> >> > Haity Mobile Tel: 0050946057393
> >> > ++
> >> > Italy Mobile Tel.: **(39) 338 24 40 676
> >> > ++
> >> > SKYPE azzurrahydro
> >> > ++
> >> > azzurralent...@gmail.com
> >> > ++
> >> > *Par respect pour l'environnement,*
> >> >
> >> > *n'imprimez ce mail qu'en cas d'absolue nécessité*
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > ___
> >> > Qgis-user mailing list
> >> > Qgis-user@lists.osgeo.org
> >> > List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> >> > 

Re: [QGIS-it-user] Rasìterizzazione

2016-11-28 Thread giulia chersoni
Ciao Sergio. 
il campo è numerico (integer) e non mi da nessun errore. Inoltre quando uso il 
puntatore Info sulla mappa ottengo i dati del campo caricato, ma quando apro il 
file di testo non ci sono più.
Altri suggerimenti? 
Grazie
> Il giorno 28/nov/2016, alle ore 13:25, Sergio Gollino 
>  ha scritto:
> 
> Rasterizzazione dovrebbe essere la corretta procedura. Non c'è bisogno di 
> interpolare essendo dei poligoni. L'unica cosa non è che il raster che vuoi 
> creare si basa su un campo testo? Deve essere un campo numerico (di solito 
> integer). Un altro problema potrebbe essere dovuto a errori geometrici nel 
> raster ma in quel caso dovrebbe darti errore e non fare proprio l'operazione. 
> In ogni caso fai un controllo.
> 
> Ciao
> 
> Sergio
> 
> Il giorno 28 novembre 2016 13:15, giulia chersoni  > ha scritto:
> Lo shapefile di riferimento non è puntuale ma areale.
> Ho provato comunque ha usare INTERPOLAZIONE mail raster in uscita non 
> mantiene le proprietà geografiche dello shapefile iniziale (area geografica 
> della Ligura).
> 
> > Il giorno 25/nov/2016, alle ore 22:58, AV  > > ha scritto:
> >
> > /
> > giulia chersoni wrote
> >> riesco a trasformare da vettore a raster (raster - Conversione -
> >> Rasterizzazione), ma quando apro il file di testo del file .asc (con
> >> Openoffice) non vengono trasferiti i dati del campo di interesse,
> >> visualizza tutti zeri
> >
> > /
> >
> > Per conseguire il tuo scopo (trasferimento di attributi da una shape ad un
> > raster), lo strumento si chiama INTERPOLAZIONE e non Rasterizzazione.
> >
> >
> >
> > --
> > View this message in context: 
> > http://osgeo-org.1560.x6.nabble.com/Rasiterizzazione-tp5297444p5297473.html 
> > 
> > Sent from the QGIS Italian User mailing list archive at Nabble.com.
> > ___
> > QGIS-it-user mailing list
> > QGIS-it-user@lists.osgeo.org 
> > http://lists.osgeo.org/mailman/listinfo/qgis-it-user 
> > 
> 
> ___
> QGIS-it-user mailing list
> QGIS-it-user@lists.osgeo.org 
> http://lists.osgeo.org/mailman/listinfo/qgis-it-user 
> 
> 
> 
> 
> -- 
> Sergio Gollino
> 
> Questo messaggio, comprensivo di eventuali allegati, è ad uso esclusivo del 
> destinatario e potrebbe contenere  informazioni riservate; se è stato 
> recapitato per errore ci scusiamo per l'accaduto e Vi invitiamo cortesemente 
> a darcene notizia provvedendo alla sua distruzione.
> 
> Vi ricordiamo che la diffusione, l'utilizzo e/o la conservazione dei dati 
> ricevuti per errore costituiscono violazione alle disposizioni del D.Lgs. n. 
> 196/2003 "Codice in materia di protezione dei dati personali".

___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] Rasìterizzazione

2016-11-28 Thread giulia chersoni
Lo shapefile di riferimento non è puntuale ma areale. 
Ho provato comunque ha usare INTERPOLAZIONE mail raster in uscita non mantiene 
le proprietà geografiche dello shapefile iniziale (area geografica della 
Ligura).

> Il giorno 25/nov/2016, alle ore 22:58, AV  ha scritto:
> 
> /
> giulia chersoni wrote
>> riesco a trasformare da vettore a raster (raster - Conversione -
>> Rasterizzazione), ma quando apro il file di testo del file .asc (con
>> Openoffice) non vengono trasferiti i dati del campo di interesse,
>> visualizza tutti zeri
> 
> /
> 
> Per conseguire il tuo scopo (trasferimento di attributi da una shape ad un
> raster), lo strumento si chiama INTERPOLAZIONE e non Rasterizzazione.
> 
> 
> 
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/Rasiterizzazione-tp5297444p5297473.html
> Sent from the QGIS Italian User mailing list archive at Nabble.com.
> ___
> QGIS-it-user mailing list
> QGIS-it-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-it-user

___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] suddenly unable to open shape files

2016-11-28 Thread Mira Kattwinkel

Hi Andreas

The harddisk was not full; about of 200 GB free space. If the whole 
system was healthy before I cannot say for sure. Everything used to work 
until suddenly I had problems with shapes and Grass files. Anyway, now 
it works again.


Thanks for your suggestions,

Mira


On 28/11/16 11:26, Neumann, Andreas wrote:


Hi Mira,

It is highly unlikely that any data can corrupt/modify QGIS as a 
software. It could crash it, but it can't modify binaries/libraries of 
QGIS.


Not knowing about your situation - are you sure that your whole system 
was in a healthy state? Perhaps one harddisk or partition was full? 
That could explain such a behaviour.


Andreas

On 2016-11-28 10:10, Mira Kattwinkel wrote:


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 
] <[hidden email] 
> 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 


] <[hidden email]
> 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] 
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]

To unsubscribe from Quantum GIS - User, click here.
NAML
 
>>



View this message in context: Re: suddenly unable to open shape files
 
> Sent from the Quantum GIS - User mailing list archive


at Nabble.com .


___
Qgis-user mailing list
[hidden email] 
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

___

Re: [Qgis-user] suddenly unable to open shape files

2016-11-28 Thread Neumann, Andreas
Hi Mira, 

It is highly unlikely that any data can corrupt/modify QGIS as a
software. It could crash it, but it can't modify binaries/libraries of
QGIS. 

Not knowing about your situation - are you sure that your whole system
was in a healthy state? Perhaps one harddisk or partition was full? That
could explain such a behaviour. 

Andreas 

On 2016-11-28 10:10, Mira Kattwinkel wrote:

> 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 ] 
> <[hidden email] > 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 
> ] <[hidden email]
> > 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] 
> 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]
> 
> To unsubscribe from Quantum GIS - User, click here.
> NAML
> 
>  >> 
> 
> View this message in context: Re: suddenly unable to open shape files
> 
>  > Sent from the Quantum GIS - User mailing list archive
> 
> at Nabble.com .
> 
> ___
> Qgis-user mailing list
> [hidden email] 
> 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] 
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: 

Re: [Qgis-user] suddenly unable to open shape files

2016-11-28 Thread Mira Kattwinkel

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 
] <[hidden email] 
> 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 


> ] <[hidden email]
> > 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] 
>> 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]
>> 
>> To unsubscribe from Quantum GIS - User, click here.
>> NAML
>> 
 


>>
>
> 


> View this message in context: Re: suddenly unable to open shape files
> 
 


> Sent from the Quantum GIS - User mailing list archive
> 
> at Nabble.com .
>
>
> ___
> Qgis-user mailing list
> [hidden email] 
> 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] 
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] 


To unsubscribe from Quantum GIS - User, click here.
NAML 

Re: [Qgis-user] Max size for a page print

2016-11-28 Thread Andrea Peri
Hi,
I found how set the page size for export.
I was using (wrongly) the setting: composer -> page setup

Instead the right setting was in the tabs sections: Composition > Page
Size -> Presets.

Sorry for noise,

Regards.
Andrea.



2016-11-28 8:43 GMT+01:00 Andrea Peri :
> Hi,
> I notice in qgis composer is not possible to set a page size greater
> than the max size of the printer installed drivers.
>
> I guess this is a right choice when the output is directly to the
> printer. But when the output is a PDF file or a Image file the limit
> seem unuseful.
>
> With the actual setting of QGIS to produce some PDF with large format
> on a windows machine is need to install a driver for a large format
> printer.
> Unfortunatelly often this drivers refuse to install if there isn't
> really the printer.
>
> Any help is welcome.
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -



-- 
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
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