Re: [Qgis-user] EPSG and ogr2ogr

2018-04-06 Thread Tobias Wendorff
Hi Uwe,

Am Fr, 6.04.2018, 10:20 schrieb Uwe Fischer:
>
> ok to go on in german?

There's also a German list. Let's talk in English first and I'll
attach a German text.

> Der EPSG-Zahlencode ist offenbar nicht in der .prj-Datei
> selbst hinterlegt oder verschlüsselt.

Uwe complains that there's no EPSG code in the PRJ file.
That's true for files coming from ArcGIS and others. Only QGIS
adds the Authoritive EPSG code (which is a quite nice concept).

> Also muß QGIS die .prj-Datei doch nach irgendwelchen Kriterien
> auswerten, mit einer internen Liste von Definitionen vergleichen
> und dann entscheiden, für welchen EPSG-Code es die gegebene .prj
> hält.

As you can read in trac (and somewhere on this list), QGIS (and proj)
parse the parameters in the PRJ file and there's the coincidence with
other projections sharing the same UTM parameters. The first one in
the list is used, since it's ordered by numeric: 3044.

> Weiß niemand, wo man da eingreifen und die Falschinterpretation
> korrigieren könnte?

I've created a PRJ file in QGIS and I'm adding this to all files
having this projection.

> QGIS ist offenbar nur dann zur korrekten Erkennung in der Lage,
> wenn eine .qpj-Datei vorhanden ist. Das ist aber bei Shapefiles
> aus "fremden" Quellen (GRASS, ESRI) nicht der Fall.

It should also do with its own PRJ files.

German translation (summerized):
QGIS fügt die EPSG-Codes der einzelnen Projektionen der PRJ-Datei
hinzu, weshalb die Erkennung hier klappt (AFAIK benötigst du dann
keine QPJ-Datei und das ganze ist kompatibel zum Rest).

So, wie QGIS (und proj) die PRJ-Dateien verarbeiten gibt es leider
ein Problem mit anderen Projektionen, welche die gleichen Parameter
(oder sehr ähnliche). 3044 kommt dabei in der Liste leider zuerst
und wird daher gewählt - was natürlich zu ärgerlichen Problemen
führt.

Wir haben bereits auf der Liste darüber diskutiert und sind zu dem
Zwischenergebnis gekommen, dass der Nutzer eine Auswahl treffen muss
und über die Koinzidenzprobleme informiert werden soll. Das ist aber
derzeit nicht der Fall (Patch oder Förderung willkommen).

Ich löse das Problem, indem ich eine PRJ-Datei, welche mit QGIS
erzeugt wurde, an alle Shapefiles mit dem gleichen Projektions- bzw.
Koordinatensystem anhänge.

HTH
Tobias

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

Re: [QGIS-it-user] IMPORTPHOTOS - ERROR - OSX

2018-04-06 Thread cesaregal
Io ho risolto in questa maniera (macOS 10.13.3, QGIS 3.0.0-3, Python 3.6.5)

1) Ho scaricato il file exif-py-2.1.2.zip

2) Dopo l'estrazione del file zip ho portato la cartella exif-py-2.1.2 nella
directory:
 Applications\QGIS3.app\Contents\Resources\Python

3) Da terminale: $ pip3 install exifread

Mi ha così installato con successo Exifread-2.1.2.

Riaperto il programma QGIS 3.0, il Plugin ImportPhotos ora funziona
perfettamente.

Saluti
Cesare



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] qgis,bat starts with 2.18 instead 3.0

2018-04-06 Thread Andre Joost

Am 06.04.18 um 11:51 schrieb Patrick Dunford:

If you expect to double click a project file and Qgis opens, then only
one version of Qgis can be registered for .qgs file extension at a time.


True, but you can switch that at any time:

https://gis.stackexchange.com/questions/273742/set-qgis-2-18-as-default-on-win-with-both-2-18-and-3-0/273764#273764

You can create links to the variuos .reg files on your desktop and 
switch to 3.0 and back with one click.





I am sure this is the same on most OSs.



On Linux, you can't even install several versions in the same OS 
(without using a virtual box guest system).


HTH,
Andre Joost


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

[QGIS-it-user] problemi con aggiornamento della versione LTR da 2.18.14 a 2.18.18

2018-04-06 Thread riccardo giaccari

Ci riprovo


Buon giorno a tutti, chiedo un aiuto
ho appena fatto l'aggiornamento della versione LTR da 2.18.14 a 2.18.18 
ed ho problemi con tre plugin dai quali ho questo messaggio di errore << 
Questo plugin è corrotto - 'module' object has no attribute 'GRA_Max' >>

I plugin sono Gdaltools, Openlayer e Processing

lavoro con Win 10

qualcuno può indicarmi una soluzione?


---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus

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


Re: [QGIS-it-user] Confronto tra due geometrie successive appartenenti allo stesso layer (pyqgis)

2018-04-06 Thread sarag
Sono riuscita a risolvere solo creando un'ulteriore lista anche per gli
attributi.

lista_lati = []
attributi = []

id_lati=lati.fieldNameIndex("id")

for f in linee.getFeatures():
lista_lati.append(f)
id_att=f[id_lati]
attributi.append(id_att)

nel successivo for scorro poi contemporaneamente la lista con gli elementi e
quella con gli attributi, così da poter effettuare controlli sia sulle
proprietà geometriche (es. lunghezza dei lati) che, per esempio, sugli ID
degli elementi del layer

n=len(lista_lati)
for i in range(0, n):
l1=lista_lati[i].geometry().length()
if (i==n-1):
l2=lista_lati[i].geometry().length()
else:
   l2=lista_lati[i+1].geometry().length() 
  
if(attributi[i] != attributi[i+1]):
...

Grazie mille ancora per l'aiuto.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] qgis,bat starts with 2.18 instead 3.0

2018-04-06 Thread Patrick Dunford
If you expect to double click a project file and Qgis opens, then only 
one version of Qgis can be registered for .qgs file extension at a time. 
I am sure this is the same on most OSs.


Other things to look at can be the value of some of the environmental 
variables listed in the batch file and whether they point to the correct 
path. e.g, OSGEO4W_ROOT


On 06/04/18 20:50, Juerg Lindauer wrote:

Hi

I have two versions of qgis in my system (Win 10) installed. QGIS
2.18.15 and 3.0.1.

To open a project file i use right-click and choose the specific batch
file.
After installing 3.0.1 the batch file  'C:\Program Files\QGIS
3.0\bin\qgis.bat' open the project file with QGIS 2.18.15.

The content of qgis.bat ist:
@echo off
call "%~dp0\o4w_env.bat"
call qt5_env.bat
call py3_env.bat

path %OSGEO4W_ROOT%\apps\qgis\bin;%PATH%
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/qgis
set GDAL_FILENAME_IS_UTF8=YES
rem Set VSI cache to be used as buffer, see #6448
set VSI_CACHE=TRUE
set VSI_CACHE_SIZE=100
set
QT_PLUGIN_PATH=%OSGEO4W_ROOT%\apps\qgis\qtplugins;%OSGEO4W_ROOT%\apps\Qt5\plugins
start "QGIS" /B "%OSGEO4W_ROOT%"\bin\qgis-bin-g7.4.0.exe %*

How can i open the project file directly with the specific qgis
Version?

Thanks,
Juerg Lindauer

  
Amt für Landwirtschaft

Abt. Agrarmassnahmen und Bodenrecht
Hirschistrasse 15
Postfach 5182
6431 Schwyz
Telefon: 041 819 15 17
Telefax: 041 819 15 19
E-Mail: juerg.linda...@sz.ch
Internet: www.sz.ch/landwirtschaft


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


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

Re: [QGIS-it-user] Confronto tra due geometrie successive appartenenti allo stesso layer (pyqgis)

2018-04-06 Thread Marco Guiducci



Il 06/04/2018 10:41, sarag ha scritto:

Grazie mille per i consigli! E' stato prezioso. Il problema del confronto tra
lunghezze è risolto.

Ora però dovrei effettuare dei confronti su altri attributi del layer
"lati". Lavorando con la lista questo continua ad essere possibile?
Ad esempio per il controllo sull'ID, prima scrivevo:

id_pol=lati.fieldNameIndex("id")

inserendo poi nel for l'istruzione condizionale:

if (i[id_pol]==j[id_pol])
...

Come faccio ora ad accedere agli attributi degli elementi contenuti nella
lista?
Grazie ancora davvero.




io faccio così:

se feat è il tuo oggetto corrente:
attributi_di_feat = feat.attributes()
valore_id = attributi_di_feat[id_pol]

dove id_pol è quello trovato come già fai.

marco

--
Marco Guiducci - 055 4383194
SITA - Sistema informativo territoriale e ambientale
Regione Toscana - Via di Novoli 26 - 50127 Firenze

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


[Qgis-user] qgis,bat starts with 2.18 instead 3.0

2018-04-06 Thread Juerg Lindauer
Hi

I have two versions of qgis in my system (Win 10) installed. QGIS
2.18.15 and 3.0.1.

To open a project file i use right-click and choose the specific batch
file.
After installing 3.0.1 the batch file  'C:\Program Files\QGIS
3.0\bin\qgis.bat' open the project file with QGIS 2.18.15.

The content of qgis.bat ist:
@echo off
call "%~dp0\o4w_env.bat"
call qt5_env.bat
call py3_env.bat

path %OSGEO4W_ROOT%\apps\qgis\bin;%PATH%
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/qgis
set GDAL_FILENAME_IS_UTF8=YES
rem Set VSI cache to be used as buffer, see #6448
set VSI_CACHE=TRUE
set VSI_CACHE_SIZE=100
set
QT_PLUGIN_PATH=%OSGEO4W_ROOT%\apps\qgis\qtplugins;%OSGEO4W_ROOT%\apps\Qt5\plugins
start "QGIS" /B "%OSGEO4W_ROOT%"\bin\qgis-bin-g7.4.0.exe %* 

How can i open the project file directly with the specific qgis
Version?

Thanks, 
Juerg Lindauer

 
Amt für Landwirtschaft
Abt. Agrarmassnahmen und Bodenrecht
Hirschistrasse 15
Postfach 5182 
6431 Schwyz
Telefon: 041 819 15 17
Telefax: 041 819 15 19
E-Mail: juerg.linda...@sz.ch
Internet: www.sz.ch/landwirtschaft 


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

Re: [QGIS-it-user] Confronto tra due geometrie successive appartenenti allo stesso layer (pyqgis)

2018-04-06 Thread sarag
Grazie mille per i consigli! E' stato prezioso. Il problema del confronto tra
lunghezze è risolto. 

Ora però dovrei effettuare dei confronti su altri attributi del layer
"lati". Lavorando con la lista questo continua ad essere possibile?
Ad esempio per il controllo sull'ID, prima scrivevo:

id_pol=lati.fieldNameIndex("id")

inserendo poi nel for l'istruzione condizionale:

if (i[id_pol]==j[id_pol])
...

Come faccio ora ad accedere agli attributi degli elementi contenuti nella
lista? 
Grazie ancora davvero.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] EPSG and ogr2ogr

2018-04-06 Thread Uwe Fischer
Hello Tobias,
hello list,

ok to go on in german?
Der EPSG-Zahlencode ist offenbar nicht in der .prj-Datei selbst hinterlegt
oder verschlüsselt.
Also muß QGIS die .prj-Datei doch nach irgendwelchen Kriterien auswerten,
mit einer internen Liste von Definitionen vergleichen und dann entscheiden,
für welchen EPSG-Code es die gegebene .prj hält.

Weiß niemand, wo man da eingreifen und die Falschinterpretation korrigieren
könnte?

QGIS ist offenbar nur dann zur korrekten Erkennung in der Lage, wenn eine
.qpj-Datei vorhanden ist. Das ist aber bei Shapefiles aus "fremden" Quellen
(GRASS, ESRI) nicht der Fall.


Am Do, 5.04.2018, 17:17 schrieb Uwe Fischer:
>
> The reprojection did work without error messages, but when I load my 
> new reprojected shapefile into QGIS, it says that the projection is 
> 3044 (instead of 25832 which I had chosen). However, the position of 
> the shape is as desired.

It's a known problem :(

See my report:
https://issues.qgis.org/issues/17138

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

Re: [QGIS-it-user] assegnazione ticket su RedMine

2018-04-06 Thread Luigi Pirelli
quelli di processing vengono assegnati di default a victor

Luigi Pirelli

**
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Mastering QGIS 2nd Edition:
*
https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition
* Hire me: http://goo.gl/BYRQKg
**

2018-04-06 6:30 GMT+02:00 Amedeo Fadini :

> Salve a tutti, ieri ho aperto una issue per segnalare un piccolo bug
> rigurdo imemory layers [0],
> quando l'ho inviato è uscito assegnato a Victor Olaya, ho pensato di aver
> scorso per sbaglio la caselal combinata  per cui ho eliminato
> l'assegnazione...
>
> Mi sapete dire se esiste una assegnazione di default a Victor o in base
> alla categoria?
>
>
> Grazie
>
> amefad
>
> [0] https://issues.qgis.org/issues/18642
>
> ___
> QGIS-it-user mailing list
> QGIS-it-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>
>
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user