Coder Social home page Coder Social logo

opengeolabs / czech_slovak_freegeodata Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 9.0 2.98 MB

Free geodata for Czech Republic and Slovakia

License: GNU General Public License v3.0

Python 12.52% QML 74.98% CSS 2.53% JavaScript 8.71% HTML 1.11% QMake 0.02% Shell 0.12%

czech_slovak_freegeodata's People

Contributors

bambooojooo avatar iamweakly avatar jachym avatar jakubsimek97 avatar kevinsamdoma avatar landam avatar misopasko avatar petop avatar ruz76 avatar tkacovas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

czech_slovak_freegeodata's Issues

AttributeError: 'NoneType' object has no attribute 'has_options_dialog'

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'

Create services watchdog

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.

AttributeError: 'GeoData' object has no attribute 'dlg'

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'

Metadata

  • do metaúdajov dalej pridať
    • ku ktorej krajine zdroj patrí (aby bolo možné ich automaticky
      selektovať na základe užívateľom zvolenej krajiny záujmu)
    • checked zrušiť - presunúť do užívateľských nastavení v profile

Error on Enabling the Plugin

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!

Loading dialog is slow

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.

Vrstevnice CZ

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]

SK WMS - KN (Inspire) su posunute

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)
    obrázok

  • parcely reg. E: INSPIRE - Cadastral parcels-Map of determined documentation WMS (plugin) v porovnani s WMS ESKN(Parcela registra E + Parc. 49slo reg.E).
    obrázok

  • 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)
    obrázok

Region choice window opened in background on Windows

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.

Souřadnicové systémy

  • do pluginu sa pridá aj funkcia nastavenia východzích transformáčných
    metód (ďalšie funkcionality pre našinca - listoklady a iné - na
    zváženie)
  • základné UI nastavenia transformačných metód by malo umožniť nastaviť
    či ho zaujíma ČR, alebo SR a podľa toho sa nastavia default
    transformačné metódy a údajové zdroje pre danú krajinu
  • bude existovať aj advanced mód, kde bude možné nastaviť všetko, čo
    bude plugin podporovať
  • pri výbere krajiny (ČR/SR) bude existovať aj tretia (zatiaľ bez názvu)
    možnosť, kedy sa nastavia transformácie vhodné pre celé
    Československo.

Pridať ďalšie WMS

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

duplicated items

  • type some keyword in search widget, eg. inspire
  • remove keyword

Result:

some items are duplicated

Screenshot from 2021-05-17 19-37-24

Zamedziť viacnásobnému pridaniu WMS služby do zoznamu v prípade, že z nej pochádza viacero zdrojov

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.

WMS UHUL

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

Save transformation parameters into project

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řidat Heat map Strava z Freemap.sk

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í.

typo in the info message

There is a typo in the pop-up message "QGIS restart is needed to apply transformation settings".
qgis-geodata-typo

Allow to read sources from git repo

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).

Integration into browser

It would be nice to have all the data sources integrated into the browser panel:

image

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...

Healt check

We need to have healtcheck of the registered services.

Create toolbar

Have independent toolbar with three tools (maybe four):

  • Open dialog with sources
  • Set region
  • Save region settings into current project
  • (Search textbox for sources)

RUIAN sources

  • Source encoding is in Windows-1250 os it works on Windows but not on Linux.
  • All layers have the same style

Invalid source layers

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

Sources not loaded on MacOS

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.