[Qgis-developer] Field visibility in Python

2014-06-23 Thread Tom Chadwin
attributeDisplayName(attributeIndex), while they say editorWidgetV2Config(fieldIdx). What's the difference between attributeIndex and fieldIdx? Thanks Tom Tom Chadwin, UK National Parks Portal Manager Telephone: 01434 611511 Mob: 07881 109617 Web: www.northumberlandnationalpark.org.ukhttp

Re: [Qgis-developer] Field visibility in Python

2014-06-23 Thread Tom Chadwin
? Tom -Original Message- From: Matthias Kuhn [mailto:matthias.k...@gmx.ch] Sent: 23 June 2014 13:55 To: Tom Chadwin; qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] Field visibility in Python Hi Tom, The following example should should print the type for all widgets

Re: [Qgis-developer] Field visibility in Python

2014-06-23 Thread Tom Chadwin
:46 To: Tom Chadwin; qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] Field visibility in Python Hi Tom, That works starting from 2.3 (master) / 2.4 (release/stable) For 2.2 you will have to work with i.editType( fields.indexFromName(field) ) This will continue to work

[Qgis-developer] How can I reproject a raster and change its file type in a plugin?

2014-07-02 Thread Tom Chadwin
I need to reproject rasters and change their file type in a QGIS plugin. Can I do this using the QGIS API? If not, I can do this externally with gdal_translate, but how can I determine the path to gdal_translate in Python? Thanks Tom Tom Chadwin, UK National Parks Portal Manager Telephone

[Qgis-developer] Determine whether layer is OpenLayers layer

2014-07-16 Thread Tom Chadwin
plugin suitable for working with it in plugin development? An API? Tom Chadwin, UK National Parks Portal Manager Telephone: 01434 611511 Mob: 07881 109617 Web: www.northumberlandnationalpark.org.ukhttp://www.northumberlandnationalpark.org.uk/ IMPORTANT NOTICE - Disclaimer - This communication

[Qgis-developer] Persist plugin GUI dialog settings

2014-09-05 Thread Tom Chadwin
Hello Is there either a QT/native PyQgis method for saving the settings of a plugin dialog so that they persist between application restarts? Or is there a recommended/established best practice way of doing so? Thanks Tom Tom Chadwin, UK National Parks Portal Manager Telephone: 01434 611511

[Qgis-developer] Handling deprecation of QgsMapCanvas.mapRenderer()

2014-09-17 Thread Tom Chadwin
().destinationCrs() Is that correct? If so (as a QGIS plugin and Python beginner) what is the best way to handle the deprecation and maintain backwards compatibility, given that QgsMapCanvas.mapRenderer() is only in 2.4+? Thanks Tom Tom Chadwin, UK National Parks Portal Manager Telephone: 01434 611511

[Qgis-developer] Reading out categorized styles

2014-11-17 Thread Tom Chadwin
which Leaflet can understand. Thanks Tom Tom Chadwin, UK National Parks Portal Manager Telephone: 01434 611511 Mob: 07881 109617 Web: www.northumberlandnationalpark.org.ukhttp://www.northumberlandnationalpark.org.uk/ IMPORTANT NOTICE - Disclaimer - This communication is from Northumberland

Re: [Qgis-developer] Reading out categorized styles

2014-11-17 Thread Tom Chadwin
Found it: layer.rendererV2().classAttribute() Thanks Tom -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Reading-out-categorized-styles-tp5173357p5173358.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.

[Qgis-developer] QgsVectorFileWriter.writeAsVectorFormat() created geoJSON Points in 2.4, now Multipoints in 2.6

2014-11-26 Thread Tom Chadwin
Hello In 2.4, when writing geoJSON, QgsVectorFileWriter.writeAsVectorFormat() created Point features. In 2.6, this seems to have changed to Multipoint. Is this intentional? If so, why? Thanks Tom Tom Chadwin, UK National Parks Portal Manager Telephone: 01434 611511 Mob: 07881 109617 Web

[Qgis-developer] Retrieve field name used as label

2014-12-03 Thread Tom Chadwin
Hello all I'm trying to build labelling into qgis2leaf. How do I retrieve the name of the field used as a layer's label? I've tried QgsLabel::labelField ( int attr ), but I don't understand what the argument attr is. Thanks Tom -- View this message in context:

Re: [Qgis-developer] Retrieve field name used as label

2014-12-04 Thread Tom Chadwin
Can anyone help with this? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Retrieve-field-name-used-as-label-tp5176293p5176544.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-developer

Re: [Qgis-developer] Retrieve field name used as label

2014-12-04 Thread Tom Chadwin
QgsLabel(layer.pendingFields()).fields()[0].name() That doesn't work - it gives the field at position 0, not the labelling field. layer.customProperty(labeling/fieldName) But this does work perfectly. Thank you so much. Tom -- View this message in context:

Re: [Qgis-developer] Retrieve field name used as label

2014-12-04 Thread Tom Chadwin
Noted. Thanks, Nathan. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Retrieve-field-name-used-as-label-tp5176293p5176558.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-developer mailing

Re: [Qgis-developer] UK styles

2015-01-27 Thread Tom Chadwin
The official source for Ordnance Survey SLDs is here: http://www.ordnancesurvey.co.uk/business-and-government/help-and-support/products/styled-layer-descriptors.html Their licence (http://www.ordnancesurvey.co.uk/docs/licences/stylesheet-licence-v2.pdf) contains the following: You may only

Re: [Qgis-developer] Export to web: OpenLayers, Leaflet, Threejs

2015-01-26 Thread Tom Chadwin
Thanks, Riccardo, for bringing this discussion to my attention. I think we need to proceed with caution, considering the following issues: 1. Bigger is not always better - specialized tools often yield better results than big ones with every option under the sun bloating the code and confusing

[Qgis-developer] Which plugin versions should be in the repo?

2015-04-29 Thread Tom Chadwin
it, and uploaded a new version. I deleted the version with the major bug. Is that correct? Or should I leave all versions up there even if faulty? All versions are on GitHub. Thanks Tom Tom Chadwin, ICT Manager Telephone: 01434 611530 Mob: Web: www.northumberlandnationalpark.org.ukhttp

[Qgis-developer] Debugging a QGIS crash

2015-05-09 Thread Tom Chadwin
do next? Thanks Tom Tom Chadwin, ICT Manager Telephone: 01434 611530 Mob: Web: www.northumberlandnationalpark.org.ukhttp://www.northumberlandnationalpark.org.uk/ IMPORTANT NOTICE - Disclaimer - This communication is from Northumberland National Park Authority (NNPA).The Authority’s head

Re: [Qgis-developer] Which plugin versions should be in the repo?

2015-05-05 Thread Tom Chadwin
Many thanks - I'll get rid of everything but the latest experimental. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Which-plugin-versions-should-be-in-the-repo-tp5203557p5204146.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.

[Qgis-developer] Python - granular access to rules in rule-based renderer

2015-04-16 Thread Tom Chadwin
I'm implementing rule-based rendering in qgis2leaf. I know I can get the filterExpressions with: qgis.utils.iface.mapCanvas().layers().rendererV2().rootRule().children().filterExpression() However, filterExpressions are in SQL-like syntax. I need to transform these into JavaScript: QGIS: name

Re: [Qgis-developer] Python - granular access to rules in rule-based renderer

2015-04-16 Thread Tom Chadwin
Hi Nathan Don't use regex. You are in for a world of pain if you go that way, and not the kind of pain you feel good about after. Akin to: http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags Many thanks for looking into it – very much

[Qgis-developer] Python - save raster layer as rendered image

2015-04-14 Thread Tom Chadwin
How do I save a layer as a rendered image? qgis2leaf exports rasters, but they are unrendered, and hence sometimes do not display correctly, if at all. How do I Save raster layer as... Rendered image via Python? -- View this message in context:

Re: [Qgis-developer] Persist plugin GUI dialog settings

2015-06-05 Thread Tom Chadwin
OK, so I have found the documentation which says I should use QSettings(), which is clear enough, and I can read settings in fine. However, if I want my plugin settings to persist transparently (ie the user should not have to save the settings explicitly), where in the plugin should I put all my

[Qgis-developer] Python binding for HTML map tip

2015-06-08 Thread Tom Chadwin
In Python, is it possible to retrieve the value for an HTML map tip: Layer Properties Display Map tip display text HTML I've been rooting around in the API, but haven't managed to find it. Thanks Tom -- View this message in context:

Re: [Qgis-developer] Persist plugin GUI dialog settings

2015-06-09 Thread Tom Chadwin
I've ended up connecting the QSettings() function to the parent QTreeWidget's itemChanged signal. This works for text and checkboxes, but does not seem to emit for changing the selected item in a combobox. Does anyone know what signal is emitted under these circumstances? -- View this message

Re: [Qgis-developer] Persist plugin GUI dialog settings

2015-06-06 Thread Tom Chadwin
other point. Any ideas? Original message From: Richard Duivenvoorde [via OSGeo.org] ml-node+s1560n5209443...@n6.nabble.com Date: 05/06/2015 16:08 (GMT+00:00) To: Tom Chadwin tom.chad...@nnpa.org.uk Subject: Re: Persist plugin GUI dialog settings On 05-06-15 16:34, Tom Chadwin

Re: [Qgis-developer] Guidance on plugin QSettings group

2015-06-18 Thread Tom Chadwin
Perfect - I've implemented it as described. Thanks for the help, Richard. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Guidance-on-plugin-QSettings-group-tp5211418p5211646.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.

Re: [Qgis-developer] Using TravisCI integration in Github for QGIS Python plugin

2015-06-24 Thread Tom Chadwin
I've got the build environment up now, I think - many thanks, all. However, does anyone know how I can get rid of the following test fail: QPixmap: Must construct a QApplication before a QPaintDevice I don't see QApplication instantiated anywhere. I'm not sure how to get past this, since the

Re: [Qgis-developer] Using TravisCI integration in Github for QGIS Python plugin

2015-06-24 Thread Tom Chadwin
So Google has told me repeatedly. My issues are: - I have not previously done this because the plugin works fine in QGIS, and this issue has only shown up in tests - I don't know how (or where) to instantiate QApplication (or QgsApplication?) -- View this message in context:

Re: [Qgis-developer] Using TravisCI integration in Github for QGIS Python plugin

2015-06-22 Thread Tom Chadwin
OSGeo.org] ml-node+s1560n5212350...@n6.nabble.com Date: 22/06/2015 19:37 (GMT+00:00) To: Tom Chadwin tom.chad...@nnpa.org.uk Subject: Re: Using TravisCI integration in Github for QGIS Python plugin Have a look to the Travis config file in inasafe : https://github.com/AIFDR/inasafe/blob/develop/.travis.yml

Re: [Qgis-developer] Using TravisCI integration in Github for QGIS Python plugin

2015-06-22 Thread Tom Chadwin
I've got a bit further with this, but have an embarrassingly basic question. I'm using Tim's Plugin Builder's run-env-linux.sh, but the default QGIS path doesn't seem to match where Travis installs QGIS to - is Travis running Ubuntu? Can anyone tell me what QGIS path I should pass to

Re: [Qgis-developer] ELSE expression is used when other rules are set not visible - Feature or Bug?

2015-06-20 Thread Tom Chadwin
Surely if a layer is unchecked in the legend, none of its features should show, regardless of symbology or renderer. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/ELSE-expression-is-used-when-other-rules-are-set-not-visible-Feature-or-Bug-tp5211905p5212104.html Sent from

Re: [Qgis-developer] Using TravisCI integration in Github for QGIS Python plugin

2015-06-26 Thread Tom Chadwin
I suspect I'm not going to get this to work. I hit the problem that my plugin 's code used iface, which was not recognised. I managed to inject the dummy iface replacement created in the qgis_get_app () function mentioned above. However, next the code calls: ```python

[Qgis-developer] Guidance on plugin QSettings group

2015-06-17 Thread Tom Chadwin
qgis2web saves its settings via QSettings(). However, it currently simply saves a load of ungrouped individual settings, which doesn't seem sensible (and potentially could overwrite non-qgis2web settings). Is there a preferred QSettings() group convention for plugins, or should I just use

Re: [Qgis-developer] API: fill style?

2015-06-16 Thread Tom Chadwin
Ah: brushStyle(). Got it. Thanks. Tom -- View this message in context: http://osgeo-org.1560.x6.nabble.com/API-fill-style-tp5211196p5211203.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-developer mailing

[Qgis-developer] API: fill style?

2015-06-16 Thread Tom Chadwin
I need to get the Fill style of a simple fill symbol layer, but cannot find that in the API docs. Does it exist? I need it to fix a reported bug in qgis2web: https://github.com/tomchadwin/qgis2web/issues/10 Specifically, I need to determine if a simple fill symbol layer has fill style No Brush.

Re: [Qgis-developer] Using TravisCI integration in Github for QGIS Python plugin

2015-05-27 Thread Tom Chadwin
Thanks very much, Martin. Looks like I have a lot to learn (unittest/nose, as well as Travis itself). -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Using-TravisCI-integration-in-Github-for-QGIS-Python-plugin-tp5207646p5207727.html Sent from the Quantum GIS - Developer

Re: [Qgis-developer] Is the new release schedule a success?

2015-07-01 Thread Tom Chadwin
If it were my budget, then yes, I would consider it, so long as enough others did so as well, to get the hours required for it to have an effect. That figure is roughly the support for 1 year's support for a proprietary GIS for a single user (very roughly, from memory), so I would hope that many

Re: [Qgis-developer] Is the new release schedule a success?

2015-07-01 Thread Tom Chadwin
That is exactly why we have introduced long-term releases (LTR) for QGIS - for organizations that just need a stable QGIS for their work But the only .0 LTR so far (2.8) was not stable. without having to worry about instabilities, testing and reporting bugs I understand that. I was simply

Re: [Qgis-developer] Is the new release schedule a success?

2015-07-01 Thread Tom Chadwin
If the answer is that there is no way that the 2.8.0 and 2.10.0 bugs would ever have come to light before release, then sure, I accept the argument. However, Nyall says that one of the bugs was apparent as a test failure. Perhaps the best thing to do would have been to acknowledge that the flood

Re: [Qgis-developer] Is the new release schedule a success?

2015-07-01 Thread Tom Chadwin
I do accept all your points. I am also probably confusing LTR with stable. Just because a .0 is LTR should not define it as more stable than a non-LTR .0. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Is-the-new-release-schedule-a-success-tp5213659p5213799.html Sent from

Re: [Qgis-developer] Using TravisCI integration in Github for QGIS Python plugin

2015-07-02 Thread Tom Chadwin
After lots of help and contributions from Akbar, I think this is now working. If anyone else would find the information useful, see: https://github.com/tomchadwin/qgis2web/issues/72 and https://github.com/tomchadwin/qgis2web/tree/LayerTree-API Many thanks, Akbar and everyone who has helped out

Re: [Qgis-developer] Using TravisCI integration in Github for QGIS Python plugin

2015-06-29 Thread Tom Chadwin
Any instance of qgis_get_app() outside of /test is only my attempts to get his testing working, so I'll dig out the commit which put it there and revert it. I'll have a look at your guidance on implementing iface, but if you are able and interested to have a look as well, then of course I'd be

[Qgis-developer] Time until countdowns on qgis.org

2015-06-30 Thread Tom Chadwin
I'm sure someone has this in mind, but the countdowns on the QGIS home page to next feature freeze and release are both on 0 since we passed the release date. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Time-until-countdowns-on-qgis-org-tp5213549.html Sent from the

[Qgis-developer] Using TravisCI integration in Github for QGIS Python plugin

2015-05-26 Thread Tom Chadwin
Has anyone set up TravisCI to test commits in a QGIS Python plugin Github repo? Can anyone give me some help? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Using-TravisCI-integration-in-Github-for-QGIS-Python-plugin-tp5207646.html Sent from the Quantum GIS - Developer

[Qgis-developer] Is the new release schedule a success?

2015-06-30 Thread Tom Chadwin
This post is in no way a criticism of any of the QGIS team and their monumental efforts or their fabulous product. However, I thought someone should question how successful the four-monthly release schedule is. 2.8 immediately needed 2.8.1, and there seems to be the chance that 2.10 is immediately

Re: [Qgis-developer] Is the new release schedule a success?

2015-06-30 Thread Tom Chadwin
My point, if my understanding and memory of the last few months is correct, is that these two .1 releases have been required (2.8.1) or identified as required (2.10.1), before each .0 version has been fully released. My argument is that that is not the same as the normal caution about .0 versions,

[Qgis-developer] PyQGIS - detect layers without geometry

2015-08-10 Thread Tom Chadwin
When iterating through layers, how can I include vectors layers, exclude layers without geometry, and include rasters? At the moment, I have: try: if layer.type() == 0: testDump = layer.rendererV2().dump() code goes here except: pass This seems very ugly to me... -- View

Re: [Qgis-developer] Convert QGIS layer scale to OL3 resolution

2015-07-13 Thread Tom Chadwin
Sorry: inches PER map unit, or map unit / inch. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Convert-QGIS-layer-scale-to-OL3-resolution-tp5215277p5215487.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.

Re: [Qgis-developer] QEP - Proposal for QGIS 3.0 after 2.14

2015-10-24 Thread Tom Chadwin
Paolo always does question new plugins if they duplicate. Is that not enough? It's the reason my plugin was created. Our is there perhaps a historical issue? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/QEP-Proposal-for-QGIS-3-0-after-2-14-tp5231556p5232337.html Sent

Re: [Qgis-developer] QEP - Proposal for QGIS 3.0 after 2.14

2015-10-24 Thread Tom Chadwin
The plugin mailing list should be equivalent to this list and the users one. Additional integration into the plugins site would be an extra, but not required. I don't think that occasional emails to plugin devs via the emails associated in the repo would be unreasonable. Perhaps three or four

Re: [Qgis-developer] Release count down on website.

2015-10-24 Thread Tom Chadwin
No, I meant last time, 2.10. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Release-count-down-on-website-tp5232304p5232325.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-developer

Re: [Qgis-developer] Release count down on website.

2015-10-24 Thread Tom Chadwin
+1. I've told the developer of a plugin we commissioned that 2.10 was out, but his interpretation of the website was that it was not yet launched. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Release-count-down-on-website-tp5232304p5232314.html Sent from the Quantum

Re: [Qgis-developer] QEP - Proposal for QGIS 3.0 after 2.14

2015-10-24 Thread Tom Chadwin
> What would then be the difference between 2.14 and a 2.12 LTR? 2.14LTR is what the roadmap says. 2.12LTR isn't. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/QEP-Proposal-for-QGIS-3-0-after-2-14-tp5231556p5232326.html Sent from the Quantum GIS - Developer mailing list

Re: [Qgis-developer] problem with Statist plugin

2015-11-11 Thread Tom Chadwin
> QT decided to abandon QWebView and QWebWidget Does that mean I've got a real problem with the preview window in qgis2web when QGIS goes to Qt5? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/problem-with-Statist-plugin-tp5235686p5235740.html Sent from the Quantum GIS -

Re: [Qgis-developer] Plugin: initGui not called on QGIS startup?

2015-11-11 Thread Tom Chadwin
Which plugin? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Plugin-initGui-not-called-on-QGIS-startup-tp5235698p5235710.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-developer mailing

Re: [Qgis-developer] Plugin migratin -> mailing list?

2015-11-08 Thread Tom Chadwin
I think we should all respect a view held by someone who has voluntarily created a plugin. My opinion, as a UK data protection officer, is that this view is in line with data protection legislation. When I submitted a plugin, I was not told that my email address would be used for bulk mailing.

Re: [Qgis-developer] Plugin migratin -> mailing list?

2015-11-08 Thread Tom Chadwin
As discussed before, can we not just have a plugins list like this one? Voluntary to join, so potentially compliant with data protection legislation. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Plugin-migratin-mailing-list-tp5235017p5235059.html Sent from the Quantum

Re: [Qgis-developer] Plugin migratin -> mailing list?

2015-11-08 Thread Tom Chadwin
I can only speak about UK legislation. That only allows the use of collected personal data for purposes explicitly stated at the time of collection. I don't believe such permission is sought when plugins are submitted. Are there any terms and conditions which bind plugin authors? -- View this

Re: [Qgis-developer] Aanalytics of the QGIS User Survey (in different languages)

2015-10-16 Thread Tom Chadwin
Respect to whoever answered as follows: *In your opinion the QGIS project would be better if...* Clone Anita Graser, she is amazing -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Aanalytics-of-the-QGIS-User-Survey-in-different-languages-tp5230599p5230638.html Sent from

Re: [Qgis-developer] QEP - Proposal for QGIS 3.0 after 2.14

2015-10-21 Thread Tom Chadwin
That's a lot of plugins - over 150, minus a handful of deprecated ones. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/QEP-Proposal-for-QGIS-3-0-after-2-14-tp5231556p5231572.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.

Re: [Qgis-developer] QEP - Proposal for QGIS 3.0 after 2.14

2015-10-21 Thread Tom Chadwin
The potential downside is fragmentation of the users across too many lists - specifically, would we lose some subscribers to the dev list? Anyway, I'm in no position to judge that. I know I would find a plugin list useful, if others used it, and it would be useful for the 3.0 migration. -- View

Re: [Qgis-developer] QEP - Proposal for QGIS 3.0 after 2.14

2015-10-21 Thread Tom Chadwin
How about a qgis-plugins mailing list? I don't get great responses to PyQGIS questions on Stack Exchange, and this dev list should really be for core development. I certainly don't feel completely comfortable asking plugin questions here. A dedicated list would be the place for info and support on

[Qgis-developer] PyQGIS get project selection colour

2015-10-07 Thread Tom Chadwin
Can I retrieve the project's Selection colour (Project > Project Properties... > General > General settings > Selection color) via Python? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/PyQGIS-get-project-selection-colour-tp5228461.html Sent from the Quantum GIS -

Re: [Qgis-developer] PyQGIS get project selection colour

2015-10-07 Thread Tom Chadwin
Apologies - found it: iface.mapCanvas().mapSettings().selectionColor().name() -- View this message in context: http://osgeo-org.1560.x6.nabble.com/PyQGIS-get-project-selection-colour-tp5228461p5228463.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.

[Qgis-developer] Convert QGIS layer scale to OL3 resolution

2015-07-11 Thread Tom Chadwin
To implement scale-dependent visibility in qgis2web's OL3 output, I need to convert QGIS's layer.minimumScale() to ol.layer.Vector's minResolution. How? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Convert-QGIS-layer-scale-to-OL3-resolution-tp5215277.html Sent from the

[Qgis-developer] Matching canvas dimensions on workstation to Travis environment

2015-11-18 Thread Tom Chadwin
What is the default canvas size when QGIS is invoked in Travis - in other words, when QGIS is run for the first time after installation on Ubuntu? I have tests for qgis2web, but if I do: mapCanvas().setExtent(layer.extent()) I get different values for the bounds of the canvas extent in the

Re: [Qgis-developer] Matching canvas dimensions on workstation to Travis environment

2015-11-19 Thread Tom Chadwin
I can't get this to work. I tried adding a canvas resize in the test script, and also doing the same from my workstation Python console, but it didn't change the test result bounds - they are still different to the bounds of my local instance. I then noticed that the dummy iface script (taken

[Qgis-developer] Deliberate errors, but Travis passes

2015-09-08 Thread Tom Chadwin
I've implemented very basic Travis testing for the plugin qgis2web, and it's been working very well, catching code errors which result in Python errors. However, I'm now trying to expand the suite of tests to test the plugin against different data. The problem I have is that I now cannot get

Re: [Qgis-developer] Deliberate errors, but Travis passes

2015-09-08 Thread Tom Chadwin
Hi Matthias This is the very early stages of implementing unittest. In time, I will test for expected results using assert methods. At the moment, though, all I want this to achieve is to catch Python errors, to prevent my making releases which crash. This is what I was doing before, and it

Re: [Qgis-developer] Deliberate errors, but Travis passes

2015-09-08 Thread Tom Chadwin
Hi Matthias Firstly, I'm not aware of a current segfault in the tests, so I'll keep an eye out for that. Yes, I am talking about exceptions thrown by Python. The deliberate error I have introduced is in the main function called when a map is exported in Leaflet format (ie not in Openlayers3).

[Qgis-developer] PyQGIS reference to QGIS plugin UI in Travis unittest

2015-09-14 Thread Tom Chadwin
I'm having difficulty getting Travis to unittest qgis2web. I've asked for help on GIS.SE, but have had no takers: http://gis.stackexchange.com/questions/162579/pyqgis-reference-to-qgis-plugin-ui-in-travis-unittest Can anyone here help? -- View this message in context:

Re: [Qgis-developer] Anita elected to the OSGeo board

2015-09-30 Thread Tom Chadwin
Congratulations indeed, Anita! Tom -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Anita-elected-to-the-OSGeo-board-tp5227027p5227163.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___

Re: [Qgis-developer] SSL error on QGIS startup

2015-10-02 Thread Tom Chadwin
I agree with Matthias. If we want to get the news to people who are not already getting it, it needs to be there on the splash screen, not a secondary tab. Surely there is plenty of space for recent projects and news alongside one another, with a little redesigning? The recent projects currently

Re: [Qgis-developer] Styles bug?

2015-09-24 Thread Tom Chadwin
Confirmed on 2.10.1 Win7 x64 -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Styles-bug-tp5225824p5225842.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-developer mailing list

Re: [Qgis-developer] crash on deleting a column (virtual field)

2015-09-21 Thread Tom Chadwin
No crash here: 2.10.1 Win7x64. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/crash-on-deleting-a-column-virtual-field-tp5225202p5225252.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___

Re: [Qgis-developer] [QGIS-Server] Add a Short Name to layers for OGC Web Services

2015-09-22 Thread Tom Chadwin
I certainly use "Display as" for human-friendly names. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/QGIS-Server-Add-a-Short-Name-to-layers-for-OGC-Web-Services-tp5225162p5225383.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.

Re: [Qgis-developer] crash on deleting a column (virtual field)

2015-09-22 Thread Tom Chadwin
Hi Salvatore Following the steps in Pedro's ticket does *not* crash for me. However, I'll ask some questions to clarify: 1. I did not select "Virtual field", as that was not mentioned in the ticket 2. I only gave a static value for the contents o the field, rather than an expression - does this

Re: [Qgis-developer] [QGIS-Server] Add a Short Name to layers for OGC Web Services

2015-09-22 Thread Tom Chadwin
Many apologies - you are right. I change "Layer name", and couldn't understand what Display as was meant to be: a non-editable text field which mirrors Layer name? Why? Tom -- View this message in context:

Re: [Qgis-developer] Featured plugins

2015-12-07 Thread Tom Chadwin
If the featured flag is thought useful, how about pulling it through to the plugin manager? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Featured-plugins-tp5239905p5240279.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.

Re: [Qgis-developer] QGIS SVGs won't work in OpenLayers3

2015-12-02 Thread Tom Chadwin
Yes, I stripped those out as part of the simplification I mentioned above. I'll try again and see if I have any more joy. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/QGIS-SVGs-won-t-work-in-OpenLayers3-tp5239335p5239510.html Sent from the Quantum GIS - Developer

[Qgis-developer] How do I specify multiple plugin authors?

2015-12-02 Thread Tom Chadwin
Plugins have a single field for author and author email. What is the correct way to specify multiple authors? Comma separated in both fields (name and email)? Since a mailto: link is generated on the plugin page in the repo, I don't think that would work. Something else? By the way, on

Re: [Qgis-developer] How do I specify multiple plugin authors?

2015-12-02 Thread Tom Chadwin
Thanks - all sorted. However, I do think the text that emails will not be displayed on the website is not correct if they will be when a user is logged in. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/How-do-I-specify-multiple-plugin-authors-tp5239517p5239523.html Sent

[Qgis-developer] Moving to Trusty for Travis tests

2015-12-03 Thread Tom Chadwin
Apologies if this is too off-topic, but with Travis releasing their new Google Compute Engine infrastructure, I've done some work on my Travis setup, including moving from Ubuntu Precise to Trusty. Briefly, the issues I encountered under Trusty as opposed to Precise were: - xvfb now has to be

Re: [Qgis-developer] Moving to Trusty for Travis tests

2015-12-03 Thread Tom Chadwin
I should also have mentioned that Travis are also migrating "Precise with sudo" jobs over to Google Compute Engine (GCE) this week. This should lower test times, but watch out for any resulting differences in behaviour. If you want to stick with Precise, but force your tests onto GCE immediately,

Re: [Qgis-developer] Moving to Trusty for Travis tests

2015-12-03 Thread Tom Chadwin
Apologies - my instructions for forcing GCE were correct only for Precise-only Travis configs. The QGIS config is both Linux and OSX. See this page for instructions to force GCE for multiple os: configs: https://gist.github.com/meatballhat/d0c8aab9e3bd8a8bcacd#file-00-intro-md I'm not familiar

Re: [Qgis-developer] Moving to Trusty for Travis tests

2015-12-09 Thread Tom Chadwin
I've only experience one such delay. Does this need to be reverted? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Moving-to-Trusty-for-Travis-tests-tp5239822p5240499.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.

Re: [Qgis-developer] Moving to Trusty for Travis tests

2015-12-09 Thread Tom Chadwin
Forgive off-topic, but is the Travis website down at the mo? It's doing builds and sending result email fine, but I can't browse to travis-ci.org. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Moving-to-Trusty-for-Travis-tests-tp5239822p5240554.html Sent from the Quantum

Re: [Qgis-developer] Moving to Trusty for Travis tests

2015-12-09 Thread Tom Chadwin
Ah. Site has started failing in Internet Explorer. Fine in Chrome/Win. Apologies for noise. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Moving-to-Trusty-for-Travis-tests-tp5239822p5240558.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.

Re: [Qgis-developer] Moving to Trusty for Travis tests

2015-12-03 Thread Tom Chadwin
OK. And the OSX build was unaffected by the top-level selection of Precise? Seems not, but I have no experience of reading OSX test output. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Moving-to-Trusty-for-Travis-tests-tp5239822p5239879.html Sent from the Quantum GIS -

Re: [Qgis-developer] Moving to Trusty for Travis tests

2015-12-03 Thread Tom Chadwin
> we could use a different platform for Qt5 tests ...and Python 3? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Moving-to-Trusty-for-Travis-tests-tp5239822p5239867.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.

Re: [Qgis-developer] QGIS SVGs won't work in OpenLayers3

2015-12-01 Thread Tom Chadwin
Update: the QGIS SVGs work in Leaflet. Will have to investigate further. Any insights welcome. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/QGIS-SVGs-won-t-work-in-OpenLayers3-tp5239335p5239435.html Sent from the Quantum GIS - Developer mailing list archive at

[Qgis-developer] qgis2web 1.0.0-beta1 launched

2015-12-16 Thread Tom Chadwin
I've released a first beta of qgis2web version 1.0.0. I've made the jump to v1 because all features are available for both OL3 and Leaflet exports. Recent major additions include support for multiple projections in OL3, along with geocode, geolocate, and measure. Leaflet now uses qgis2web

Re: [Qgis-developer] Retrieve Python console from off top of screen

2015-12-10 Thread Tom Chadwin
That absolutely worked. Thanks you so much! -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Retrieve-Python-console-from-off-top-of-screen-tp5240750p5240768.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.

[Qgis-developer] Retrieve Python console from off top of screen

2015-12-10 Thread Tom Chadwin
Apologies for idiocy, but I somehow seem to have moved my Python console slightly off the top of my screen meaning that its title bar is no longer visible. I therefore cannot grab it to move it. Is there a QSetting or something which I can change via the console to move it back down? -- View

[Qgis-developer] PyQGIS save raster as rendered image, then use GDAL tools on it

2016-01-07 Thread Tom Chadwin
I posted this to Stackexchange, but have had no bites yet. I have tried to use the code from http://gis.stackexchange.com/questions/68803/qgis-save-raster-as-rendered-image?noredirect=1#comment207705_68803. `i` is a raster layer: pipelayer = i pipeextent = pipelayer.extent()

Re: [Qgis-developer] PyQGIS save raster as rendered image, then use GDAL tools on it

2016-01-07 Thread Tom Chadwin
The Processing calls are inherited code. Does warpreproject have completely the wrong arguments? If so, I don't know how it works at all. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/PyQGIS-save-raster-as-rendered-image-then-use-GDAL-tools-on-it-tp5244204p5244225.html

Re: [Qgis-developer] Future of OpenLayers plugin - time to deprecate?

2015-12-30 Thread Tom Chadwin
I think deprecation and removal would be good, but for a tangential reason: the name conflicts with OpenLayers the web mapping library. A trivial reason at best, but probably irritating to many, and potentially confusing to users. -- View this message in context:

Re: [Qgis-developer] Processing & SAGA 2.2.2

2015-12-24 Thread Tom Chadwin
Is it not possible to have a copy of Saga local to the QGIS installation, like the local Python install? Faking the main Saga version sounds like a bad idea, breaking users' ability to upgrade it. -- View this message in context:

[Qgis-developer] QGIS SVGs won't work in OpenLayers3

2015-12-01 Thread Tom Chadwin
qgis2web supports SVG markers in OL3 output (though not in Leaflet output). However, when using SVGs from QGIS (eg C:/OSGEO4~1/apps/qgis/./svg/wind_roses/WindRose_01.svg), the SVG does not render, and I've not been able to find any console error. Using eg

  1   2   3   4   5   6   >