Qgis não abre arquivos do html

18 views
Skip to first unread message

nelmi ederson fernandes

unread,
Jun 24, 2022, 3:12:32 PM6/24/22
to qgisbrasil
tenho uma função em Python
-------------------------------------------
from qgis.PyQt.QtCore import QUrl;
from qgis.PyQt.QtWebKitWidgets import QWebView;
myurl = ''
e1 = r'file:///C:/Users/t_nfernandes/Downloads/intense-images-master/demo/index.html'
e1a= '?arqE='
e2 = r'[%file_names%]'
e3 = '&arqNE='
e4 = r'[%mvw_aerocarta_2018_rota_camera_nordeste_file_names%]'
e5 = '&arqNW='
e6 = r'[%mvw_aerocarta_2018_rota_camera_noroeste_file_names%]'
e7 = '&arqN='
e8 = r'[%mvw_aerocarta_2018_rota_camera_norte_file_names%]'
e9 = '&arqW='
e10 = r'[%mvw_aerocarta_2018_rota_camera_oeste_file_names%]'
e11 = '&arqS='
e12 = r'[%mvw_aerocarta_2018_rota_camera_sul_file_names%]'
e13 = '&arqR='
e14 = r'[%logradouro_aerocarta%]'
myurl = e1 + e1a + e2 + e3 + e4 + e5 + e6 + e7 + e8 + e9 + e10 + e11 + e12+ e13 + e14
print(myurl);
myWV = QWebView(None);
myWV.load(QUrl(myurl));
myWV.show();
----------------------------------------------------------
gera um link como abaixo:

file:///C:/Users/t_nfernandes/Downloads/intense-images-master/demo/index.html?arqE=\\pms-fls02\PREFEITURA02\3_entrega\Mapeamento_dos_Logradouros\3179\E\148672_613708090_01116525424024.jpg&arqNE=\\pms-fls02\PREFEITURA02\3_entrega\Mapeamento_dos_Logradouros\3179\NE\148672_613708090_01116535377744.jpg&arqNW=\\pms-fls02\PREFEITURA02\3_entrega\Mapeamento_dos_Logradouros\3179\NW\148672_613708090_01116531951569.jpg&arqN=\\pms-fls02\PREFEITURA02\3_entrega\Mapeamento_dos_Logradouros\3179\N\148672_613708090_01116526663721.jpg&arqW=\\pms-fls02\PREFEITURA02\3_entrega\Mapeamento_dos_Logradouros\3179\W\148672_613708090_01116530903690.jpg&arqS=\\pms-fls02\PREFEITURA02\3_entrega\Mapeamento_dos_Logradouros\3179\S\148672_613708090_01116530280686.jpg&arqR=3179
----------------------------------------------------------------------------------------
abrindo no navegador manualmente funciona
porem se usar o action
nao aparece as imagens 
nem mostra as imagens em full

onde é o erro?

grato Nelmi

index.html
styles.css
Reply all
Reply to author
Forward
0 new messages