[QGIS-it-user] Plugin cxf_in - errore accesso al database di georeferenzazione

2021-11-17 Per discussione Ludovico Frate
Ciao a tutti, è da qualche giorno che non riesco più ad accedere al database 
per la goereferenzazione e ricevo il seguente errore:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File 
"C:/Users/Pc/AppData/Roaming/QGIS/QGIS3\profiles\Ludovico/python/plugins\Cxf_in\catdialog.py",
 line 329, in connectgeodb
with contextlib.closing(urllib.request.urlopen(req)) as x:
File "C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\urllib\request.py", line 222, in 
urlopen
return opener.open(url, data, timeout)
File "C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\urllib\request.py", line 525, in 
open
response = self._open(req, data)
File "C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\urllib\request.py", line 543, in 
_open
'_open', req)
File "C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\urllib\request.py", line 503, in 
_call_chain
result = func(*args)
File "C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\urllib\request.py", line 1360, 
in https_open
context=self._context, check_hostname=self._check_hostname)
 File "C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\urllib\request.py", line 1319, 
in do_open
raise URLError(err)
urllib.error.URLError:
 During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File 
"C:/Users/Pc/AppData/Roaming/QGIS/QGIS3\profiles\Ludovico/python/plugins\Cxf_in\catdialog.py",
 line 334, in connectgeodb
except urllib.URLError as err: AttributeError: module 'urllib' has no attribute 
'URLError'


Ho provato con diverse versioni di QGIS (3.10-3.16-3.22) ma l’errore è lo 
stesso. Ho provato ad incollare gli url di login nel browser e pare funzionare 
tutto. Qualcuno riscontra lo stesso problema?



Inviato da Posta per Windows

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


Re: [QGIS-it-user] Plugin cxf_in - errore accesso al database di georeferenzazione

2021-11-17 Per discussione Ludovico Frate
Ciao Andrea, grazie per la risposta. Ho modificato il codice python. Sembra 
essere un errore di certificato SSL
Tuttavia dal browser riesco a loggarmi con le credenziali che ho (vengo 
riconosciuto come utente)


2021-11-17T11:15:54 WARNINGTraceback (most recent call last):
  File 
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\urllib\request.py", line 1317, in 
do_open
  encode_chunked=req.has_header('Transfer-encoding'))
  File "C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\http\client.py", 
line 1229, in request
  self._send_request(method, url, body, headers, encode_chunked)
  File "C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\http\client.py", 
line 1275, in _send_request
  self.endheaders(body, encode_chunked=encode_chunked)
  File "C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\http\client.py", 
line 1224, in endheaders
  self._send_output(message_body, encode_chunked=encode_chunked)
  File "C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\http\client.py", 
line 1016, in _send_output
  self.send(msg)
  File "C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\http\client.py", 
line 956, in send
  self.connect()
  File "C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\http\client.py", 
line 1392, in connect
  server_hostname=server_hostname)
  File "C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\ssl.py", line 412, 
in wrap_socket
  session=session
  File "C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\ssl.py", line 850, 
in _create
  self.do_handshake()
  File "C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\ssl.py", line 
1108, in do_handshake
  self._sslobj.do_handshake()
 ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] 
certificate verify failed: Hostname mismatch, certificate is not valid for 
'www.prgcloud.com'. (_ssl.c:1045)

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
  File 
"C:/Users/Pc/AppData/Roaming/QGIS/QGIS3\profiles\Ludovico/python/plugins\Cxf_in\catdialog.py",
 line 329, in connectgeodb
  with contextlib.closing(urllib.request.urlopen(req)) as x:
  File 
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\urllib\request.py", line 222, in 
urlopen
  return opener.open(url, data, timeout)
  File 
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\urllib\request.py", line 525, in open
  response = self._open(req, data)
  File 
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\urllib\request.py", line 543, in _open
  '_open', req)
  File 
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\urllib\request.py", line 503, in 
_call_chain
  result = func(*args)
  File 
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\urllib\request.py", line 1360, in 
https_open
  context=self._context, check_hostname=self._check_hostname)
  File 
"C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\urllib\request.py", line 1319, in 
do_open
  raise URLError(err)
 urllib.error.URLError:

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
  File 
"C:/Users/Pc/AppData/Roaming/QGIS/QGIS3\profiles\Ludovico/python/plugins\Cxf_in\catdialog.py",
 line 334, in connectgeodb
  except urllib.error.URLError as err:
 AttributeError: module 'urllib' has no attribute 'URLError'

Inviato da Posta per Windows

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


Re: [Qgis-user] Project file format

2021-11-17 Per discussione Jorge Gustavo Rocha

Hi Paul,

1) I use pg_services. I just change one link (to the desired 
pg_services.conf file) to change between prod and dev layers. I don't 
have to change the QGIS project.


2) To find/replace parts of any XML file, I use the old xmlstarlet 
command line tool. Using such tools, the order of the attributes is 
irrelevant.


Regards,

Jorge

[1] http://xmlstar.sourceforge.net/doc/UG/xmlstarlet-ug.html

On 16/11/21 17:51, Paul Wittle wrote:


Hi,

I know people will probably ask “why?” in relation to this question 
but I’ve got a Powershell script that I use to create copies of some 
QGIS projects because I want to change the data source of a couple of 
layers between dev and test. Rather than do this in QGIS it is done as 
part of an automation hence using Powershell; I’ve had mixed results 
trying to load the QGIS project standalone and so Powershell felt 
simpler.


Anyway; the issue I’m getting is that Powershell is adding a space 
between the last />. So  will become . Is there a way 
to set QGIS so that the project files are saved with the spaces?


The other issue I’m getting is that the attributes in the elements 
seem to be moving depending on who saves it. This is when using QGIS; 
not Powershell.


So I save the project using QGIS and I get:

saveUserFull=””>


Someone else saves it on their device using QGIS and we get:

saveDateTime=””>


Is this expected as I would have thought that QGIS would have kept 
this consistent?


The version is "3.16.0-Hannover" for all the users.

The reason I’m asking is that the files are in source control and 
given it is XML I would have expected it to be easy to identify what 
someone changed but due to the issues above it tends to claim that 
almost everything was changed. This is just because all the attributes 
are reordered and the spaces are being added to the end of elements as 
well. I can live with it but I thought I’d ask if there is a setting I 
can use that will ensure that projects save consistently really?


Any tips would be appreciated but if it is too technical a question 
they my apologises.


Paul

This e-mail and any files transmitted with it are intended solely for 
the use of the individual or entity to whom they are addressed. It may 
contain unclassified but sensitive or protectively marked material and 
should be handled accordingly. Unless you are the named addressee (or 
authorised to receive it for the addressee) you may not copy or use 
it, or disclose it to anyone else. If you have received this 
transmission in error please notify the sender immediately. All 
traffic may be subject to recording and/or monitoring in accordance 
with relevant legislation. Any views expressed in this message are 
those of the individual sender, except where the sender specifies and 
with authority, states them to be the views of Dorset Council. Dorset 
Council does not accept service of documents by fax or other 
electronic means. Virus checking: Whilst all reasonable steps have 
been taken to ensure that this electronic communication and its 
attachments whether encoded, encrypted or otherwise supplied are free 
from computer viruses, Dorset Council accepts no liability in respect 
of any loss, cost, damage or expense suffered as a result of accessing 
this message or any of its attachments. For information on how Dorset 
Council processes your information, please see 
www.dorsetcouncil.gov.uk/data-protection


___
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


[Qgis-user] SSL handshake failed

2021-11-17 Per discussione bdrive
Hello everybody.

 

Still issues with QGIS 2.18.19

 

I try to connect with a WMS Server. But everytime I try that it says "SSL handshake failed".

 

Because I´m using El Capitan 10.11.6. I am not able to download QGIS 3. because then there is a Python issue.

 

So i need help and a solution for that "SSL handshake failed" problem.

 

Anyone got an idea?

 

Best regards

Carolin
___
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] Plugin cxf_in - errore accesso al database di georeferenzazione

2021-11-17 Per discussione Ludovico Frate
Mi ha risposto poco dopo l’autore del plugin, che ringrazio moltissimo e che ha 
sistemato l’errore. Per questo motivo sei riuscito a loggarti.

Saluti.
Ludovico

Inviato da Posta per Windows

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


[QGIS-it-user] Georeferenziare indirizzi

2021-11-17 Per discussione gabriele . dipalma

Buonasera,

per favore vorrei qualche consiglio su come georeferenziare una lista  
di indirizzi (un migliaio).
So che Google ha una API, ma preferirei fare tutto con programmi ad  
accesso libero. Ho trovato una discussione di qualche mese fa dove  
qualcuno nel forum suggeriva di usare Nominatim. Qualche altro  
suggerimento?


Grazie,
Gabriele Di Palma





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