opengeolabs / czech_slovak_freegeodata Goto Github PK
View Code? Open in Web Editor NEWFree geodata for Czech Republic and Slovakia
License: GNU General Public License v3.0
Free geodata for Czech Republic and Slovakia
License: GNU General Public License v3.0
keyword = 'CZ,inspire,voda'
Goal:
AttributeError: 'NoneType' object has no attribute 'has_options_dialog'
Traceback (most recent call last):
File "/home/jencek/qgis3_profiles/profiles/default/python/plugins/czech_slovak_freegeodata/Geo_Data_dialog.py", line 160, in handleSelected
if self.data_sources[id]['proc_class'].has_options_dialog():
AttributeError: 'NoneType' object has no attribute 'has_options_dialog'
See load_sources_into_tree
(https://github.com/OpenGeoLabs/czech_slovak_freegeodata/blob/main/Geo_Data_dialog.py#L134) and load_filtered_sources_into_tree
(https://github.com/OpenGeoLabs/czech_slovak_freegeodata/blob/main/Geo_Data_dialog.py#L361)
We should create simple watchdog, that will run predefined requests on the services and downloads the images (data), if the data area empty or image is empty several times consecutively we will put some mark in plugin that this service has a problem.
The status of the sources may be published on github repository in JSON file. The list of sources may be downloaded from officialy released plugin version from QGIS repository, to be user we are testing services from the same list are is available for the users.
Predefined requests with condition may be part of the metadata.ini files.
MacOS 10.13.6, Python 2.7.16
2021-04-11T14:18:44 WARNING Traceback (most recent call last):
File "/Users/studiosluka_3/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/czech_slovak_freegeodata/Geo_Data.py", line 194, in run
self.dlg.show()
AttributeError: 'GeoData' object has no attribute 'dlg'
If you start QGIS everyting is fine, but when developing and you reload the plugin then the array self.data_sources is empty ot the objects inside it are None.
When I tried to install the plugin, I got this error message:
Couldn't load plugin 'czech_slovak_freegeodata' due to an error when calling its classFactory() method
IndexError: list index out of range
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 334, in _startPlugin
plugins[packageName] = package.classFactory(iface)
File "/home/isunni/.local/share/QGIS/QGIS3/profiles/default/python/plugins/czech_slovak_freegeodata/__init__.py", line 35, in classFactory
from .Geo_Data import GeoData
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 792, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/isunni/.local/share/QGIS/QGIS3/profiles/default/python/plugins/czech_slovak_freegeodata/Geo_Data.py", line 36, in
from .Geo_Data_dialog import GeoDataDialog
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 792, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/isunni/.local/share/QGIS/QGIS3/profiles/default/python/plugins/czech_slovak_freegeodata/Geo_Data_dialog.py", line 46, in
from .crs_trans.ShiftGrid import ShiftGrid
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 792, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/isunni/.local/share/QGIS/QGIS3/profiles/default/python/plugins/czech_slovak_freegeodata/crs_trans/ShiftGrid.py", line 13, in
class ShiftGrid:
File "/home/isunni/.local/share/QGIS/QGIS3/profiles/default/python/plugins/czech_slovak_freegeodata/crs_trans/ShiftGrid.py", line 19, in ShiftGrid
gridDirectory = QgsProjUtils.searchPaths()[-1]
IndexError: list index out of range
Python version: 3.6.9 (default, Jan 26 2021, 15:33:00) [GCC 8.4.0]
QGIS version: 3.16.3-Hannover Hannover, 94ac9f21b8
I tried to disable then enable it again, and I still get the error.
I use Ubuntu 18.04, QGIS 3.16.3
Thanks!
On old PC with Windows the loading of dialog is slow. It may be caused by too many files to process. We may consider to place configuration into sqlite.
Zdravím,
předem děkuji za plugin. Bylo by možné přidat vrstevnice CZ? Jsou samozřejmě volně dostupné:
[https://geoportal.cuzk.cz/(S(qersizekngzv45gev0wvdfvc))/Default.aspx?mode=TextMeta&side=wfs&metadataID=CZ-CUZK-WFS-ZABAGED-VRSTEVNICE&metadataXSL=metadata.sluzba]
Move ZBGIS into UGKK and polish other sources
KN mapy v plugine pre uzemie SR (INSPIRE) su posunute oproti WMS ESKN sluzbam poskytovanymi UGKK o radovo niekolko metrov (povedzme 2-6 m). WMS ESKN su oficialne data a su spravne (kontrolovala som to aj s vektorovymi datami, ktore sa daju stiahnut na geodeticke ucely).
Preberali sme to s @PetoP (vopred velka vdaka, ak budes mat cas sa na to pozriet!)
parcely reg. C: INSPIRE - Cadastral parcels-Cadastral map WMS (plugin) v porovnani s WMS ESKN (Parcela registra C + Parc.číslo reg.C)
parcely reg. E: INSPIRE - Cadastral parcels-Map of determined documentation WMS (plugin) v porovnani s WMS ESKN(Parcela registra E + Parc. 49slo reg.E).
zobrazenie INSPIRE sluzieb nie je velmi stastne, kedze parcely reg. C aj reg. E vyzeraju rovnako (v tomto je vyrazne lepsie WMS ESKN, kde je urceny operat/parcely reg. E zobrazeny standardne zelenou)
I have received message from a fried about presumably bad behavior of region choice window. He has tested this on three independent machines running Windows 10 Pro, always on QGIS 3.18 with new clean profile. After first opening of the main plugin window it takes long time (as reported) before window for region choice is opened and when it does, it opens behind main QGIS window. Thus user not knowing about this window may get really frustrated.
There is not any sing that show source type. If the source type is processing type it may tak some time to download the data. It would be good to inform user about this.
Dobrý deň,
priznám sa, že sa v GitHub veľmi nerozumiem. Rád by som požiadal o pridanie WMS mám a neviem, kde mám hľadať kontakt.
Mohli by ste prosím pridať uvedené mapy? Nie všetky fungujú, ale aspoň tie ktoré fungujú
Ďakujem
Geologická mapa
https://ags.geology.sk/arcgis/services/WebServices/GM50/MapServer/WMSServer
Lesnícke mapy
https://gis.nlcsk.org/islhp/
https://gis.nlcsk.org/arcgis/rest/services/Inspire
• Inspire/DrevinoveZlozenie https://gis.nlcsk.org/arcgis/services/Inspire/DrevinoveZlozenie/MapServer/WMSServer?request=GetCapabilities&service=WMS
• Inspire/JPRL https://gis.nlcsk.org/arcgis/services/Inspire/JPRL/MapServer/WMSServer?request=GetCapabilities&service=WMS
• Inspire/LesneCesty https://gis.nlcsk.org/arcgis/services/Inspire/LesneCesty/MapServer/WMSServer?request=GetCapabilities&service=WMS
• Inspire/LesneOblasti https://gis.nlcsk.org/arcgis/services/Inspire/LesneOblasti/MapServer/WMSServer?request=GetCapabilities&service=WMS
• Inspire/LesneTypy https://gis.nlcsk.org/arcgis/services/Inspire/LesneTypy/MapServer/WMSServer?request=GetCapabilities&service=WMS
• Inspire/LHC https://gis.nlcsk.org/arcgis/services/Inspire/LHC/MapServer/WMSServer?request=GetCapabilities&service=WMS
• Inspire/PodneTypy https://gis.nlcsk.org/arcgis/services/Inspire/PodneTypy/MapServer/WMSServer?request=GetCapabilities&service=WMS
• Inspire/PolovneReviry https://gis.nlcsk.org/arcgis/services/Inspire/PolovneReviry/MapServer/WMSServer?request=GetCapabilities&service=WMS
• Inspire/TMP https://gis.nlcsk.org/arcgis/services/Inspire/TMP/MapServer/WMSServer?request=GetCapabilities&service=WMS
• Inspire/TokySR https://gis.nlcsk.org/arcgis/services/Inspire/TokySR/MapServer/WMSServer?request=GetCapabilities&service=WMS
• Inspire/TVP https://gis.nlcsk.org/arcgis/services/Inspire/TVP/MapServer/WMSServer?request=GetCapabilities&service=WMS
There is not search icon (maginifier) in the search text box
This can lead into problem when the user opens such project in older version of QGIS with older version of PROJ.
V prípade WMS historických máp SAŽP som vytvoril viacero zdrojov, ktoré všetky odkazujú na rôzne vrstvy jednej WMS služby. Keď si tieto zdroje potom pridám, do QGIS zoznamu WMS zdrojov sa daná WMS pridala práve jeden krát pre každý zo zdrojov, ktorý na ňu odkazuje (vždy pod iným názvom - názvom zdroja).
Navrhoval by som do wms sekcie metadata.ini pridať identifikátor a názov wms služby, pričom služba by sa do QGIS zoznamu WMS zdrojov pridala len jeden krát pre daný identifikátor, a to pod daným názvom. Všetky zdroje pochádzajúce z tejto služby by tak síce museli definovať rovnaký identifikátor a názov vrstvy, no vo výsledku by sa do zoznamu QGIS WMS zdrojov pridala daná WMS služba len raz.
Milí vývojáři,
super, díky za velice užitečný počin!
Jako námět pro rozšíření bych se přimlouval i za začlenění vrstev ÚHÚL: http://www.uhul.cz/mapy-a-data/webove-sluzby
Myslím, že principiálně by to neměl být žádný problém.
Ať se daří.
Ondřej Špulák
There shoudl be an option to save transformation parameters into the project not only to the user preferences. Then the parameters may be clearly distributed with the project.
Přesunuto z #47
Dobrý deň,
ahojte.
Ešte by som mal na vás prosbu pridať aj Heatmap od US firmy Strava z Freemap.sk.
Jedná sa o monitoring športových aktivít, resp. koncentrácie pohybu ľudí všeobecne. Často zobrazí aj na mapách nevyznačené cesty.
Výhoda že freemap.sk nepodporuje len Slovensko ale aj Česko a ďalšie okolité štáty.
https://wiki.openstreetmap.org/wiki/Strava
Na freemap.sk vám to zobrazí pod položkou „Strava“.
Verím, že by to snáď nemalo byť veľa práce to pridať.
Niečo ako adresa by údajne malo asi byť:
https://strava-heatmap.tiles.freemap.sk/ride/hot/{z}/{x}/{y}.png
_
A len ako taká poznámka na okraj: Ja by som ešte cez túto možnosť chcel pridať aj lesné cesty do OpenStreetMap (OSM). Tých možností je asi viacero ako pridať, ale jedná z nich by bola aj cez QGIS, keď by som si najprv vytvoril/vykreslil GPX súbor v QGIS a potom ho importovať do OSM.
Pridať cesty na základe heatmap je lepšie ako na základe GPX záznamu z môjho telefónu, pretože tam môže byť príliš veľká nepresnosť. Heat map má nepresnosti / hodnoty záznamov spriemerovanú, takže je možné podstatne presnejšie určiť kde sa cesta nachádza
Ale to som už odbočil od témy sorry :).
_
A z NLC mi odpísali, že ešte bude niečo trvať, kým sa dostanú ku WMS mapám. Sú zaneprázdnení.
From last GISkola we know that there are already still some users of Gaus-Kruger coordinate system in Slovakia.
URL for historical maps (At least 1,2,3 Military maping and ZM10 are interesting fo people from cultural heritage)
https://arc.sazp.sk/arcgis/services/ng/rastre/MapServer/WmsServer?
(Till now they are on SAZP web server, the will be moved within 2 months under the UGKK, I will inform about URL change)
Unsmoothed hillshade of LIDAR from UGKK (1m/px) by freemap.sk
https://dmr5-shading.tiles.freemap.sk/{zoom}/{x}/{y}.jpg
(source of information)
We may have a feature where the user will read sources not from localy stored data in plugin, but from some url e.q. git repo (then the user can use for example different branch from our plugin repository).
It would be nice to have all the data sources integrated into the browser panel:
It is possible to add a custom root item (or two - one for CZ and one for SK data) and then arbitrary hierarchy, allowing people to just drag&drop sources.
There is PyQGIS api for that - look for QgsDataItem & related classes - the API is not the easiest to play with, but I'm happy to help with some code samples...
Append keywords into metadata
We need to have healtcheck of the registered services.
sources vyskopis/vegetacia/vodstvo not working
Have independent toolbar with three tools (maybe four):
First keyword = region.
Add checkbox to show resources from both regions.
The following sources seem invalid
Log Message: CRITICAL Error : The layer was not valid and could not be loaded.
UGKK - INSPIRE - Cadastral parcels- Cadastral map WMS
UHUL - OPRL - Mapa deklarovaných funkcí
UHUL - OPRL - Mapa funkčního potenciálu
UHUL - Honitby ČR
and one source shows python error - Error: Fallback transform failed
LPIS - LPIS Types
The sources are in UTF-8 and python reads them as ASCII.
2021-04-28T18:27:18 WARNING Traceback (most recent call last):
File "/Users/studiosluka/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/czech_slovak_freegeodata/Geo_Data.py", line 191, in run
self.dlg = GeoDataDialog(self.iface)
File "/Users/studiosluka/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/czech_slovak_freegeodata/Geo_Data_dialog.py", line 62, in init
self.load_sources_into_tree()
File "/Users/studiosluka/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/czech_slovak_freegeodata/Geo_Data_dialog.py", line 114, in load_sources_into_tree
config.read(os.path.join(sources_dir, path, 'metadata.ini'))
File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/configparser.py", line 697, in read
self._read(fp, filename)
File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/configparser.py", line 1017, in _read
for lineno, line in enumerate(fp, start=1):
File "/Applications/QGIS.app/Contents/MacOS/lib/python3.8/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 185: ordinal not in range(128)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.