Giter Site home page Giter Site logo

isogeo / isogeo-plugin-qgis Goto Github PK

View Code? Open in Web Editor NEW
16.0 10.0 5.0 25.38 MB

Isogeo plugin for QGIS

Home Page: http://help.isogeo.com/qgis/

License: GNU General Public License v3.0

Makefile 0.24% Python 99.07% Batchfile 0.04% QML 0.56% QMake 0.04% PowerShell 0.06%
qgis-plugin metadata geodata isogeo api inspire ogc-services qgis

isogeo-plugin-qgis's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

isogeo-plugin-qgis's Issues

Uncheckable radio buttons

When a radio button is checked, the others are uncheckable, except for "all types".
So the user has to make an extra step to change the data type : if "vector" is checked and he wants to change this to "raster", he has to check "all type", and only then "raster".

Plugin doesn't support QGIS 2.16 Nødebo

Plugin crashes at install on the latest version of QGIS.
This is caused by the norvegian character ø in the name of the version.
The plugin tries to log QGIS version which causes an encoding problem (ascii error "Ordinal character not in range").
Of course, this line can be removed, for it is just logging, but a better solution could probably be found.

Only display geographical data

The plugin should only display geographical datas in its research results, and so exclude resources and services.
It implies to create a default filters on every research.

Impossible d'installer le plugin via le canal expérimental : isogeo.py manquant

A l'installation, l'extension provoque un problème avec QGIS.

Message d'erreur :

Impossible de charger l'extension isogeo_search_engine provoque une erreur lors de l'appel de sa méthode classFactory()

Traceback (most recent call last):
File "C:/PROGRA1/QGISWI1/apps/qgis-ltr/./python\qgis\utils.py", line 219, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:/Users/julien.moura/.qgis2/python/plugins\isogeo_search_engine__init__.py", line 34, in classFactory
from .isogeo import Isogeo
File "C:/PROGRA1/QGISWI1/apps/qgis-ltr/./python\qgis\utils.py", line 478, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named isogeo

Version de Python :
2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]

Version de QGIS :
2.8.8-Wien Wien, 22678d9

Chemin vers Python : ['C:/Users/julien.moura/.qgis2/python/plugins\processing', 'C:/PROGRA1/QGISWI1/apps/qgis-ltr/./python', u'C:/Users/julien.moura/.qgis2/python', u'C:/Users/julien.moura/.qgis2/python/plugins', 'C:/PROGRA1/QGISWI1/apps/qgis-ltr/./python/plugins', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\matplotlib-1.3.1-py2.7-win-amd64.egg', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\nose-1.3.3-py2.7.egg', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\tornado-4.0.1-py2.7-win-amd64.egg', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\backports.ssl_match_hostname-3.4.0.2-py2.7.egg', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\certifi-14.05.14-py2.7.egg', 'C:\PROGRA1\QGISWI1\apps\orfeotoolbox\python', 'C:\Program Files (x86)\Python27', 'C:\PROGRA1\QGISWI1\bin\python27.zip', 'C:\PROGRA1\QGISWI1\apps\Python27\DLLs', 'C:\PROGRA1\QGISWI1\apps\Python27\lib', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\plat-win', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\lib-tk', 'C:\PROGRA1\QGISWI1\bin', 'C:\PROGRA1\QGISWI1\apps\Python27', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\PIL', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\pytz-2012j-py2.7.egg', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\win32', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\win32\lib', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\Pythonwin', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\six-1.10.0-py2.7.egg', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\xlrd-0.9.2-py2.7.egg', 'C:\PROGRA1\QGISWI1\apps\Python27\lib\site-packages\xlwt-0.7.5-py2.7.egg', u'C:/Users/julien.moura/.qgis2//python', 'C:\Users\julien.moura.qgis2\python\plugins\mmqgis/forms', 'C:\PROGRA1\QGISWI1\apps\qgis-ltr\python\plugins\fTools\tools', 'C:\Users\julien.moura.qgis2\python\plugins\mmqgis/forms']

Only display datas the user can add

As not all user have access to the whole catalog. The plugin should only display the datas the user has the possibility to add to his canvas, be it from a folder, from a database, or with a service.
It implies to create another default filter on every research.

Results can't be sorted

It should be possible for research results to be sorted by :

  • Title
  • Data creation date
  • Data last modification date
  • Metadata creation date
  • Metadata last modification date
  • Relevance

Add WMS to map canvas fail when a special character is in the title or the description

In some cases, WMS maps are not rendered by QGIS.
The problem seems to be when the title of the service contains a UTF8 character, like "é".
It doesn't matter if the script gives another title for the layer, for the problem must come from QGIS built-in method, that fails when parsing the XML documentation.

wms_error

Raw stack trace:

2016-09-16T10:52:05 1 Erreur de requête de carte (Statut : 200; Réponse :



msWMSLoadGetMapParams(): WMS server error. Unsupported SRS namespace (only EPSG and AUTO currently supported).


; Type : application/vnd.ogc.se_xml; charset=ISO-8859-1; URL : http://ws.carmencarto.fr/WMS/105/ONF_Forets?language=fre&&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=-5.58549999999999969,40.92079999999999984,10.75499999999999901,51.44619999999999749&SRS=CRS:84&WIDTH=116&HEIGHT=75&LAYERS=Forets_Publiques&STYLES=&FORMAT=image/jpeg&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96)
2016-09-16T11:02:35 1 Erreur de requête de carte (Statut : 200; Réponse :
Rendering process failed
The specified mark slash was not found!
; Type : text/xml; charset=utf-8; URL : http://noisy.hq.isogeo.fr:6090/geoserver/Isogeo/ows?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-61.808647396887757,-30.06558436831620185,55.83904539954382784,51.18236058068361416&CRS=CRS:84&WIDTH=830&HEIGHT=573&LAYERS=Isogeo:DEPARTEMENT_2014&STYLES=&FORMAT=image/jpeg&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96)
2016-09-16T11:02:40 1 Erreur de requête de carte (Statut : 200; Réponse :
Rendering process failed
The specified mark slash was not found!
; Type : text/xml; charset=utf-8; URL : http://noisy.hq.isogeo.fr:6090/geoserver/Isogeo/ows?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-61.808647396887757,-30.06558436831620185,55.83904539954382784,51.18236058068361416&CRS=CRS:84&WIDTH=186&HEIGHT=128&LAYERS=Isogeo:DEPARTEMENT_2014&STYLES=&FORMAT=image/jpeg&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96)

Enregistrer les opérations dans un fichier log

Pour un debug plus efficace : https://docs.python.org/2.7/library/logging.html.

Exemple :

# LOG FILE ##
logger = logging.getLogger()
logging.captureWarnings(True)
logger.setLevel(logging.DEBUG)  # all errors will be get
log_form = logging.Formatter('%(asctime)s || %(levelname)s || %(message)s')
logfile = RotatingFileHandler('isogeo_qgis_plugin.log', 'a', 3000000, 1)
logfile.setLevel(logging.DEBUG)
logfile.setFormatter(log_form)
logger.addHandler(logfile)
logger.info('============== Isogeo QGIS plugin =============')

Plugin sometimes freezes without apparent reason

Sometimes, all the plugin's widgets disable themselves for a short time, like when a request is sent, without a request being apparently sent.
Investigating, it seems that this appears when the QLineEdit loses the focus.
Indeed, the search function is connected to a signal emited weither when enter is pressed or when the QLineEdit loses focus. See : http://doc.qt.io/qt-4.8/qlineedit.html#editingFinished

This isn't a problem per se, but the default behaviour of the QLineEdit is to take the focus whenever the user is coming back from the second tab to the first one, where que QLineEdit is.
So the first click of the user on the first tab, when coming back from the second, is interpreted as a click-out of the QLineEdit, no matter if he clicked on a button, or whatever other widget.

This causes the plugin to have some freezes at moments the user could consider "random".

Please explain plugin usefulness

It is not immediately obvious to the standard user what Isogeo is, and what the plugin does.
If the service requires an access to Isogeo, this should be clearly stated in the About, and its conditions outlined.
Thanks.

Fill layer metadata from Isogeo metadata

Using QgsVectorLayer and QgsRasterLayer methods matching Isogeo fields:

  • setTitle = title
  • setAbstract = abstract
  • setKeywordList = tags/keywords comma separated
  • setLayerName = title ?
  • setMetadataUrl = /resource/{id}.xml
  • setMetadataUrlFormat = TC211
  • setMetadataUrlType = text/xml
  • setAttribution = license name
  • setAttributionUrl = license url
  • setMinimumScale = scale
  • addAttributeAlias = feature attribute alias

An option in the tab settings allow to able/disable the feature.

Plugin is in English unless you force French

When you open the plug-in for the first time, the interface is in English, yet QGis is in French. To switch the plug- in French you have to force the nationality of the system in the Menu Preferences > Option > Languages then close and open QGis

Plugin has a lot of bugs when the GUI is closed and reopened

It appears that the plugin has a lot of bugs (error windows poping up at every request) when the plugin window has been closed and reopened.
Checking with the previous version in order to identify the problem has shown me that it has been existing for a long time.
It had stayed unnoticed because of my use of plugin-reloader before each launching of the plugin.

Add resource type filter

This filter had been removed from the plugin (it was in the prototype version) because it would have been redundant with the plugin already filtering on the geographical data.
As the idea has been abandoned, this filter could reintegrate the 'advanced research filters' pannel.

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.