Re: [QGIS-Developer] Last call for switching to github issue tracker

2018-01-18 Thread Tom Chadwin
Jorge Gustavo Rocha wrote > It would be amazing if we could share things among OSGeo projects. We > could dream with common resources, like glossaries, for example. What a brilliant idea. Do we work with gvSIG to share translation resource? There must be considerable overlap. Tom - Buy Pie

Re: [QGIS-Developer] PyQgis QgsCoordinateTransform constructor?

2018-01-14 Thread Tom Chadwin
I am so grateful for this. Many thanks, Denis. Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html ___ QGIS-Developer mailing list QGIS-Developer@lists.

Re: [QGIS-Developer] Last call for switching to github issue tracker

2018-01-12 Thread Tom Chadwin
A huge +1 from me. I was too intimidated to add issues to Redmine for some time through not understanding what some fields meant. Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html ___

Re: [QGIS-Developer] PyQgis QgsCoordinateTransform constructor?

2018-01-10 Thread Tom Chadwin
Hi Denis The container still seems to be showing as two months old (https://hub.docker.com/r/qgis/qgis/). Did your build time out again? Thanks Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html

Re: [QGIS-Developer] Where do we sit with respect to release?

2018-01-09 Thread Tom Chadwin
I know there is excitement, and I'm sure all the devs want the release done. However, I think Juergen's proposal is the best (release 23 Feb): - more debugging time - tallies with established release cycle - respects the advice and plans of the Release Manager I 100% prioritise stability over ear

Re: [QGIS-Developer] PyQgis QgsCoordinateTransform constructor?

2018-01-09 Thread Tom Chadwin
Ah, thanks so much, Denis! I would not have worked that out, as I've only just implemented testing via Docker, and have not used Docker before - thanks also are very much due to Matthias for his help with this. I'm really grateful to you both. Yes, I agree that some resilient method for CI against

Re: [QGIS-Developer] PyQgis QgsCoordinateTransform constructor?

2018-01-09 Thread Tom Chadwin
Thanks, Denis. That is what I am using: https://github.com/tomchadwin/qgis2web/blob/master/qgis2web/olwriter.py#L271 It works locally with the OSGeo4W nightly, but it fails in Travis: https://travis-ci.org/tomchadwin/qgis2web/jobs/326777382#L1129 I don't yet understand what is causing this mism

Re: [QGIS-Developer] PyQgis QgsCoordinateTransform constructor?

2018-01-09 Thread Tom Chadwin
Sorry to bring this one up again - has this changed yet again? I thought I had my code working, but I'm getting Travis failures. Thanks Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html

Re: [QGIS-Developer] PyQgis QgsCoordinateTransform constructor?

2017-12-27 Thread Tom Chadwin
Thanks for this - I was a little confused by this change. All working now. Thanks again Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html ___ QGIS-Dev

Re: [QGIS-Developer] OSGeo4W networkx broken?

2017-12-19 Thread Tom Chadwin
OK, no, that is be the explanation. I've neither installed python-networkx nor qgis-full. Apologies for the noise. Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html __

Re: [QGIS-Developer] Calling Processing Algorithm GUI From Menu

2017-12-19 Thread Tom Chadwin
No, I meant: if your algorithms are already working *in processing* - ie you have them set up as processing algorithms, and you also have your own GUI, why would you need to trigger the processing algorithm GUI? Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from

Re: [QGIS-Developer] Calling Processing Algorithm GUI From Menu

2017-12-19 Thread Tom Chadwin
Stepping back for a second, if your algorithms are already working, and your plugin has its own GUI, why would you want to script opening the processing GUI? Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f

Re: [QGIS-Developer] OSGeo4W networkx broken?

2017-12-19 Thread Tom Chadwin
Thanks, Andreas - 64-bit confirmed. I was uncertain because one of our departments uses a plugin which is 32-bit only, and I couldn't remember if I had installed that version instead. Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.n

Re: [QGIS-Developer] OSGeo4W networkx broken?

2017-12-19 Thread Tom Chadwin
Jürgen E. Fischer wrote > OSGeo4W? qgis or qgis-rel-dev? standalone? 32bit or 64bit? OSGeo4W qgis (2.18.15-1). I believe it's 64-bit - easy way to check? Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f

Re: [QGIS-Developer] OSGeo4W networkx broken?

2017-12-19 Thread Tom Chadwin
I can't import it from the 2.18.15 console, but I just get a plain "ImportError: No module named networkx". Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html _

Re: [QGIS-Developer] Submit plugin to QGIS 3 repo

2017-12-18 Thread Tom Chadwin
My thanks and apologies to you both - I thought I had set the max version. I've set it now and republished, so I'll wait to see if it appears once my XML refreshes. I don't see any problem with the behaviour as it stands until we launch. Plugin authors should change the *min* version to 3 when it i

Re: [QGIS-Developer] Submit plugin to QGIS 3 repo

2017-12-18 Thread Tom Chadwin
Richard Duivenvoorde wrote > When did you upload it? Last week - it was certainly there on 14 December. - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html

Re: [QGIS-Developer] Submit plugin to QGIS 3 repo

2017-12-18 Thread Tom Chadwin
Hi Richard Yes, I can see it on the website, but if I click uninstall in my plugins manager, I get the warning "this plugin isn't available in any accessible repository". I do have experimental plugins enabled in the manager. Can you see it in the QGIS3 plugins manager? Thanks Tom - Buy P

[QGIS-Developer] Submit plugin to QGIS 3 repo

2017-12-18 Thread Tom Chadwin
Morning How do I submit a plugin to the QGIS 3 repo? I've uploaded a new experimental version of my plugin to the main repo with QGIS min version set to 2.99 and max to 3.99 in metadata.txt, but it doesn't seem to have appeared. Or are things not yet set up to except QGIS3 plugins? Thanks Tom

Re: [QGIS-Developer] Portal for QGIS

2017-12-15 Thread Tom Chadwin
Could you put the webmaps on a file share? Alternatively, how about installing QGIS itself throughout the organization? There are various ways to lock it down and simplify it for non-specialist use. Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://os

Re: [QGIS-Developer] srs.db

2017-12-12 Thread Tom Chadwin
Hi Martin Just for info, there was an incorrect EPSG:27700 definition doing the rounds a few years back. I don't know where it came from, but it was about 200m out, as far as I could tell: http://osgeo-org.1560.x6.nabble.com/WMS-layer-offset-200m-SW-of-true-location-td3790769.html Thanks Tom

Re: [QGIS-Developer] QGIS3 Python processing plugins

2017-12-06 Thread Tom Chadwin
Ah, thanks, Matteo! That's precisely what I need. Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html ___ QGIS-Developer mailing list QGIS-Developer@list

[QGIS-Developer] QGIS3 Python processing plugins

2017-12-06 Thread Tom Chadwin
Morning all I have to migrate my plugin to the new processing API, and I'm having difficulty understanding some errors during the process. Does someone have a simple example of adding a provider and algorithm with the new API? For what it's worth, the current error is: Traceback (most recent call l

Re: [QGIS-Developer] Clear log messages panel?

2017-12-06 Thread Tom Chadwin
Another big +1 from me. The log is hard to read as it is, so clearing before an expected message would help a great deal. Thanks Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html ___

Re: [QGIS-Developer] Backporting crash handler into 2.18

2017-12-04 Thread Tom Chadwin
A huge +1 from me - as a Windows user, it's frustrating not to be able to investigate the occasional times PyQGIS causes a Windows minidump. Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html

Re: [QGIS-Developer] plugin size

2017-11-29 Thread Tom Chadwin
I can't help with Sphinx, but a find/replace should do the job, shouldn't if? Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html ___ QGIS-Developer mai

Re: [QGIS-Developer] Detect OpenLayers layer in Python

2017-11-28 Thread Tom Chadwin
Perfect. Thanks, Pirmin. Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: ht

Re: [QGIS-Developer] Detect OpenLayers layer in Python

2017-11-27 Thread Tom Chadwin
Thanks, Martin, but I'm not sure that the OpenLayers OSM layers are instances of QgsPluginLayer. I'll check again. Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html __

Re: [QGIS-Developer] Detect OpenLayers layer in Python

2017-11-27 Thread Tom Chadwin
Thanks, Etienne, but it looks like I need to detect all OL layers, including the OSM ones. Thanks Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html __

[QGIS-Developer] Detect OpenLayers layer in Python

2017-11-27 Thread Tom Chadwin
Hello all I thought this might have been asked before, but if so, I've failed to find it. How do you determine in PyQGIS whether a layer is an OpenLayers plugin layer? Thanks Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.c

Re: [QGIS-Developer] CRS for GeoJson Data

2017-11-22 Thread Tom Chadwin
I remember irritated tweets from someone like Sean Gillies involved the spec about how projected CRSes had no place in GeoJSON. Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html

Re: [QGIS-Developer] CRS for GeoJson Data

2017-11-22 Thread Tom Chadwin
Doesn't the GeoJSON spec mandate WGS84? Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.or

[QGIS-Developer] Parse project grid LineSymbol properties

2017-11-16 Thread Tom Chadwin
I'm retrieving the project grid line symbol properties in Python: stroke = project.readEntry("Grid", "/LineSymbol", "")[0] This gives me what I presume is a string of serialized XML: I already have a function which reads through the properties

Re: [QGIS-Developer] Convert from mapunits to pixels

2017-11-10 Thread Tom Chadwin
Because this conversion will not take place in QGIS but elsewhere, I need the underlying maths for the conversion, not the API method. I've now found the formula for EPSG:3857, and a method for all projections which works in Leaflet, here: https://stackoverflow.com/questions/27545098/leaflet-calcu

Re: [QGIS-Developer] Convert from mapunits to pixels

2017-11-10 Thread Tom Chadwin
By the way, I couldn't load go2mapillary in 2.18.14 via the plugin manager - I get "cannot import name QgsDataSourceUri". Thanks Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html ___

Re: [QGIS-Developer] Convert from mapunits to pixels

2017-11-10 Thread Tom Chadwin
Thanks for the link - this looks relevant: map_units_per_pixel = (wgs84_maximum.x() - wgs84_minimum.x())/self.iface.mapCanvas().width() To explain more fully, my plugin exports QGIS projects as webmaps. I am working on Leaflet webmaps at the moment, and, as far as I can see, Leaflet only supports

Re: [QGIS-Developer] discuss: What's our development gameplan for 3.0 and above?

2017-11-09 Thread Tom Chadwin
Having suffered at the hands of the QtWebkit thing, I would strongly agree, though I guess one airways needs to evaluate the health of any dependency - perhaps the are instances where a Qt class is better maintained than the alternatives. Tom - Buy Pie Spy: Adventures in British pastry 201

[QGIS-Developer] Convert from mapunits to pixels

2017-11-09 Thread Tom Chadwin
Hello all I've never implemented support of any unit other than pixels in my plugin. A particular use case (vector tiles) could really use mapunits. Can someone explain (or point me towards) the method for converting from mapunits to pixels for on-screen rendering? Thanks Tom - Buy Pie Sp

Re: [QGIS-Developer] Flaky tests

2017-11-09 Thread Tom Chadwin
I don't know if it's related, but I've had real problems over the last two or three weeks with Travis tests for a Python plugin. Tests which use an external resource (a remote WFS) tend to work in the morning (GMT), but fail in the afternoon. I'm also getting segfaults which I hardly ever get (and

Re: [QGIS-Developer] Import Python modules from another installed plugin, if present

2017-11-08 Thread Tom Chadwin
Yup, wrapping in a try and setting a flag on success is all I need, I think. I don't need qgis.utils.plugins. Thanks again, both Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html ___

Re: [QGIS-Developer] Import Python modules from another installed plugin, if present

2017-11-08 Thread Tom Chadwin
> from timemanager.layer_settings import LayerSettings Ah, it's as simple as that! Thank you so much. Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html _

[QGIS-Developer] Import Python modules from another installed plugin, if present

2017-11-08 Thread Tom Chadwin
Hello all In a Python plugin, I would like to import some modules from another QGIS plugin, if it is installed. Is that possible? Thanks Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html __

Re: [QGIS-Developer] Deleting Plugin Versions & Download Stats

2017-11-07 Thread Tom Chadwin
Deleting versions definitely leaves your downloads figure untouched. I'm about to publish the 150th version of mine (I think), and I don't think the PSC would thank me if they were all up on the repo. I try just to leave one previous stable version up along with the latest, together with versions w

Re: [QGIS-Developer] pyqgis: new sqlite layer - no records in attribute table

2017-11-07 Thread Tom Chadwin
Is this the changed behaviour of OGR for null values? Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html ___ QGIS-Developer mailing list QGIS-Developer

Re: [QGIS-Developer] PROPOSAL: change how we manage the 3.0 release process

2017-11-06 Thread Tom Chadwin
Matthias Kuhn 🌍 wrote > I think especially with the demand for stability you raise here it's > important that we don't talk about "lifting feature freeze" but about > what can we do to ship: > > a) everything we want from a code-perspective > b) a high quality, stable release (on which we can and

Re: [QGIS-Developer] Feature freeze: Paid developer activities for QGIS 3.0

2017-11-02 Thread Tom Chadwin
Thanks, Andreas. It might be worth a PSC member or core dev just posting that to this list: "plugin devs, go!" Thanks Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html __

Re: [QGIS-Developer] Feature freeze: Paid developer activities for QGIS 3.0

2017-11-02 Thread Tom Chadwin
If feature freeze is definitely now in effect, is the API frozen? In other words, can we plugin devs who have been holding off converting until the API changes are complete now start work? Thanks Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-

Re: [QGIS-Developer] Feature freeze: Paid developer activities for QGIS 3.0

2017-10-30 Thread Tom Chadwin
Hello all This point has been raised in the other "PR queue/feature freeze thread", but I wanted to make sure it's here in this one, too: I strongly favour honouring the feature freeze and pushing further merges to 3.2. BUT, we do need to evaluate whether an exception needs to be made for any API-

[QGIS-Developer] Odd output from QgsSymbolV2.symbolLayerCount() on Mac

2017-10-19 Thread Tom Chadwin
Hello all QgsSymbolV2.symbolLayerCount() gives the correct output for me for a given project (in this case 1). However, a Mac user gets differing large negative numbers each time he tries with the same project (eg -4555056). We're both using 2.18.13. Any ideas what could cause this? (Issue is here

Re: [QGIS-Developer] QGIS Server 3 status

2017-10-18 Thread Tom Chadwin
I'd be very happy to help out with proofing the changelog - I don't think I know enough to help write it in the first place, but I'll happily fix some typos. Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f

Re: [QGIS-Developer] QGIS 2.99 Vector/Raster import Browse button garbled

2017-10-17 Thread Tom Chadwin
Thanks for reminding me. I'm seeing that for all "Browse" buttons in the nightly. I assume it's a wrongly encoded ellipsis, or something like that? Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.ht

Re: [QGIS-Developer] Handling "complex" geometries

2017-10-17 Thread Tom Chadwin
Andreas Neumann-4 wrote > I am sure that other devs (e.g. Marco Hugentobler, Nyall, Martin and > others) would have more thoughts on that topic. And maybe Even could > comment from a OGR point of view - what would have to be done to support > splines/nurbs. Is this dependent on support in geos -

Re: [QGIS-Developer] OsmAnd obf data + styling ?

2017-10-17 Thread Tom Chadwin
Stefan Keller wrote > And there exist even vector tiles > generators, like tilemaker or t-rex to produce vector tiles (mbtiles > format) on your own. And PostGIS recently implemented a native vector tile output: https://postgis.net/docs/manual-dev/ST_AsMVT.html I think that, plus this QGIS Vecto

Re: [QGIS-Developer] Failure in uploading plugin

2017-10-07 Thread Tom Chadwin
That's it. A single root folder whose name matches the plugin, and the plugin files within that, including metadata.txt. I'm therefore not sure what's causing your issue. Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QG

Re: [QGIS-Developer] Failure in uploading plugin

2017-10-07 Thread Tom Chadwin
How are you creating the zip? Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List in

Re: [QGIS-Developer] New plugin version approval

2017-10-01 Thread Tom Chadwin
Hi Alex Have you considered setting up your own plugin repo? I think you need some hosting and an XML file - hopefully fairly easy to set up. Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html _

Re: [QGIS-Developer] QEP for QGIS 3D

2017-09-28 Thread Tom Chadwin
Thanks Martin (and Tim). Can't wait for all this to land... Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html ___ QGIS-Developer mailing list QGIS-Deve

Re: [QGIS-Developer] QEP for QGIS 3D

2017-09-26 Thread Tom Chadwin
Probably a daft question, but will the 2.5D renderer remain? Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html ___ QGIS-Developer mailing list QGIS-De

Re: [QGIS-Developer] Standalone and OSGeo4W installers: icons and folder on desktop

2017-09-26 Thread Tom Chadwin
Jürgen E. Fischer wrote >> However, I continue to use the OSGeo4W installer, and I still get the >> folder >> on my desktop (its name is a URL-encoded form of >> http://download.osgeo.org/osgeo4w). I delete it each time, and each time >> I >> run Setup again, it is recreated. >> >> Is this because

[QGIS-Developer] Standalone and OSGeo4W installers: icons and folder on desktop

2017-09-25 Thread Tom Chadwin
Hello all A year ago, Martin Landa raised the issue of the icons and folder which appear on the Windows desktop when installing QGIS (https://lists.osgeo.org/pipermail/qgis-developer/2016-March/041810.html). The issues were: - installers should not add things to a user's desktop without permissio

Re: [QGIS-Developer] pyqgis - layer.saveDefaultStyle() for PostGIS layers

2017-09-25 Thread Tom Chadwin
Perhaps you have to do it manually via a PostGIS query matching f_table_catalog, f_table_schema, and f_table_name, and updating styleqml and stylesld? Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106

Re: [QGIS-Developer] Label Text Type case option 'Capitatlize first letter' ONLY capitalizes first letter

2017-09-22 Thread Tom Chadwin
If the drop-down is to stay, (and I think there is an argument that it should, as it's a lower barrier than delving into expressions), then probably the only case options need to be: - lower case - upper case - title case - sentence case However, I'm aware that I'm saying this as an English speak

Re: [QGIS-Developer] Label Text Type case option 'Capitatlize first letter' ONLY capitalizes first letter

2017-09-22 Thread Tom Chadwin
Hi Richard If you are raising this for yourself, I'm sure you know this, but you can achieve what you need with the expressions function "title()". I can also see occasions when first-letter could be of use. If your point is for other users, then there is certainly an argument for including title

Re: [QGIS-Developer] QWebPage misbehaviour with 2.18.13?

2017-09-19 Thread Tom Chadwin
No - apologies - a QGIS restart rectified it. Sorry for the noise. Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html ___ QGIS-Developer mailing list QG

[QGIS-Developer] QWebPage misbehaviour with 2.18.13?

2017-09-19 Thread Tom Chadwin
Hello all I cannot be 100% sure that yesterday's upgrade to 2.18.13 has caused this issue. However, the issue is not present in the new LTR 2.14.19. The qgis2web dialog uses a QWebPage. If you fire up the plugin and press F12, a developer toolbar is displayed. If you click on the "Console" tab in

Re: [QGIS-Developer] Problem with atlas rule-based styling

2017-09-15 Thread Tom Chadwin
What value does @atlas_featureid have if the composer/atlas has never been opened - in this session/in this project's lifetime? If null/none/similar, is resetting @atlas_featureid to that value on composer/atlas close the best proposal? Tom - Buy Pie Spy: Adventures in British pastry 2010-1

Re: [QGIS-Developer] Increase the size of validateCoordinates box

2017-09-13 Thread Tom Chadwin
Increase setMinimumWidth()? Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info:

Re: [QGIS-Developer] processing runalg in code (not in console) problem

2017-09-12 Thread Tom Chadwin
Hi Stefano I've come across this issue myself. I don't have any real help myself, but here are some links, including a possible workaround: https://issues.qgis.org/issues/12502 http://osgeo-org.1560.x6.nabble.com/release-file-after-processing-runalg-tp5318609p5319597.html Let us know if you make

Re: [QGIS-Developer] Reword "Trusted Plugin" --> "Trusted Plugin Author"?

2017-09-09 Thread Tom Chadwin
Hello all Sorry for opening this can of worms, and thanks to all of you for very kind words. But obviously, let's move on from the personal to the general point, not least to stop my looking as though I was fishing for compliments. I very much was not. Nyall Dawson wrote >> possibly >> reinforce

Re: [QGIS-Developer] Might snap change a 2D layer to 3D? discussion how to fix https://issues.qgis.org/issues/16927

2017-09-08 Thread Tom Chadwin
I'm not sure. What happens now? Are there circumstances in which either: - single gets silently converted to multi or vice versa - a user cannot do something they think should be possible, because the geometry cannot convert from single to multi or vice versa If either can happen, I think this i

Re: [QGIS-Developer] Might snap change a 2D layer to 3D? discussion how to fix https://issues.qgis.org/issues/16927

2017-09-08 Thread Tom Chadwin
If this is limited to 2D/3D conflicts, then the option probably needs not to be "maintain geometry type" but "maintain 2D/transform feature to 3D" or something similar. If there are other instances (single versus multi geometries? not sure what else), then we probably need to think more broadly. T

Re: [QGIS-Developer] Reword "Trusted Plugin" --> "Trusted Plugin Author"?

2017-09-08 Thread Tom Chadwin
Thanks, Matthias. Very much indeed. I don't think it's the binary in or out that is the issue. I do think it's the semantics. However, at the moment I am complaining without a solution - I have not yet thought of a more appropriate word to use for this labelling purpose. 100% make the criteria vi

Re: [QGIS-Developer] Reword "Trusted Plugin" --> "Trusted Plugin Author"?

2017-09-08 Thread Tom Chadwin
So it's not that you don't trust my work, it's that you don't trust me? As an untrusted plugin author, I should say that this makes little difference. While I 100% understand the rationale behind this process, it still feels like a bit of a slap in the face. Perhaps the use of the word "trust", be

Re: [QGIS-Developer] GeoJSON null fix in LTR?

2017-09-03 Thread Tom Chadwin
Ah, great. Thanks, Matthias (and Even, of course). Apologies that I don't know how to find out the following myself: which point release has that commit? Thanks again Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-

[QGIS-Developer] GeoJSON null fix in LTR?

2017-08-26 Thread Tom Chadwin
Hello all There was an issue with null values in GeoJSON exports: https://issues.qgis.org/issues/16812 Was the fix ever backported to LTR? Thanks Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoJ

Re: [QGIS-Developer] Get data from QgsFieldExpressionWidget (QGIS Master)

2017-06-26 Thread Tom Chadwin
Hi Matteo Take a look at Nathan's qgs2js: https://github.com/NathanW2/qgs2js That walks expressions and breaks them down into their individual nodes. Thanks Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- View this message in context: http://osgeo-org.1560.x6.nabb

Re: [QGIS-Developer] Any way to back update the minimum QGIS version?

2017-06-24 Thread Tom Chadwin
@Richard Can you upload an updated zip of an existing version? Or do you have to delete the existing version? If you have to delete it, you lose the download stats, which is a shame. Not that I look at my download stats. At all. Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Ama

Re: [QGIS-Developer] Any way to back update the minimum QGIS version?

2017-06-24 Thread Tom Chadwin
I don't know of any way, I'm afraid. It's up to you, of course, but I don't see any reason to keep old versions up in the plugins repo. Leave the most recent two or three, and the latest version which supported any previous QGIS versions. You can keep every release on Github. This way saves QGIS.o

Re: [QGIS-Developer] Lizmap - "Story map" feature POC with QGIS user map data

2017-06-06 Thread Tom Chadwin
Hi Michaël Have you thought of basing it on QGIS bookmarks instead? No need to dedicate a field for the "order" property then. Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- View this message in context: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-Lizmap-Sto

Re: [QGIS-Developer] [processing] launching separate process/thread

2017-05-22 Thread Tom Chadwin
I looked it up, and it lists a webserver as a prerequisite, so it doesn't help us. - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- View this message in context: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-processing-launching-separate-process-thread-tp5321173p532131

Re: [QGIS-Developer] [processing] launching separate process/thread

2017-05-20 Thread Tom Chadwin
I'm afraid qgis2web just uses file://. I'd therefore be interested if you get this to work, as file:// does limit what can be done. Does d3 Map Renderer spawn a web server? Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- View this message in context: http://osgeo-org

Re: [QGIS-Developer] Lat Lon Tools - Releasing for QGIS 2 and QGIS 3

2017-05-15 Thread Tom Chadwin
I'll probably do exactly that. v3.x for QGIS3, continue with v2.x for QGIS2. - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- View this message in context: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-Lat-Lon-Tools-Releasing-for-QGIS-2-and-QGIS-3-tp5320588p5320605.ht

Re: [QGIS-Developer] PyQGIS: how to retrieve symbolLayers in renderPass order

2017-05-13 Thread Tom Chadwin
In the absence of such a method, I'm doing this: symbolLayers = {} for i in xrange(symbol.symbolLayerCount()): sl = symbol.symbolLayer(i) if renderer.usingSymbolLevels(): k = sl.renderingPass() else: k = i symbolLayers[k] = sl stackedSLs = sorted(symbolLayers.iterke

[QGIS-Developer] PyQGIS: how to retrieve symbolLayers in renderPass order

2017-05-12 Thread Tom Chadwin
Hello all I need to get a list of symbolLayers, but in renderPass order. In other words, in default order if symbol levels are not enabled, or in symbol level order if they are. Can I do that via the API, or do I just have to retrieve the renderPass value for every symbolLayer and then sort the s

Re: [QGIS-Developer] Converting plugins to QGIS 3

2017-05-10 Thread Tom Chadwin
Remove the line completely, run the plugin, and then individually add the modules as they show up as errors. It doesn't take too long. - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- View this message in context: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-Convertin

Re: [QGIS-Developer] Handling different GDAL versions in PyQGIS

2017-05-10 Thread Tom Chadwin
In case anyone is interested, I've got a version of this approach working now: https://github.com/tomchadwin/qgis2web/commit/6980a108bc8803c7907bb3ca7da90b1fdfc59a69 Needs testing, but works locally and under Travis. Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Vi

[QGIS-Developer] Handling different GDAL versions in PyQGIS

2017-05-09 Thread Tom Chadwin
Hello all An issue I face is different users' different GDAL versions meaning making Processing GDAL calls in a plugin difficult, as you have to get the arguments right: https://github.com/tomchadwin/qgis2web/blob/v2.17.0/utils.py#L314 I've got these different argument lists wrapped in try: bloc

Re: [QGIS-Developer] Expression Functions: Where are they used in QGIS Desktop? Which ones won't work "outside"?

2017-05-08 Thread Tom Chadwin
Hi Victor I did do a PR for my few local additions: https://github.com/NathanW2/qgs2js/pull/2 It would be good to maintain it as an independent repo, if you can be bothered to merge your additions back. Nathan, if you don't want to maintain it, I'd be happy to take it over, or Victor could. As

Re: [QGIS-Developer] Expression Functions: Where are they used in QGIS Desktop? Which ones won't work "outside"?

2017-05-07 Thread Tom Chadwin
Re: qgis2web. Nathan enabled expressions with his fantastic qgs2js: https://github.com/NathanW2/qgs2js. There are two ways in which its implementation is incomplete, and I've worked to develop it when I can: - only a small subset of functions have yet been coded, and I'd be really grateful for he

[Qgis-developer] Minor Python API inconsistency?

2017-05-04 Thread Tom Chadwin
Hello all Apologies if this has already been addressed in master - I don't know the codebase well enough to investigate. While expanding my plugin's test suite, I got tripped up by this. The following works in 2.18.7: QgsVectorLayer(url, name, 'WFS') # uppercase "WFS" However, the following doe

Re: [Qgis-developer] cannot submit a new issue to qgis-redmine

2017-05-02 Thread Tom Chadwin
Hi Enrico The Redmine address changed just this weekend. See: https://twitter.com/timlinux/status/858994518024212481 Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- View this message in context: http://osgeo-org.1560.x6.nabble.com/release-file-after-processing-runal

Re: [Qgis-developer] Communicating Data-problems/issued to the users

2017-05-02 Thread Tom Chadwin
A big +1 from me. Thanks, Richard. The performance penalty can be mitigated by making the checks optional. Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Communicating-Data-problems-issued-to-the-users

Re: [Qgis-developer] release file after processing.runalg

2017-04-28 Thread Tom Chadwin
Have you tried: tempOutput.close() before the delete? Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- View this message in context: http://osgeo-org.1560.x6.nabble.com/release-file-after-processing-runalg-tp5318609p5318772.html Sent from the QGIS - Developer mailing

Re: [Qgis-developer] release file after processing.runalg

2017-04-28 Thread Tom Chadwin
I had a similar issue (I think). I never solved it myself, but Luca did. The issue is here: https://github.com/tomchadwin/qgis2web/issues/148 The commit is here: https://github.com/tomchadwin/qgis2web/pull/297 The code used in current master is here: https://github.com/tomchadwin/qgis2web/blob

Re: [Qgis-developer] Set processing input default value to layer custom property

2017-04-11 Thread Tom Chadwin
Yes, I mean that all models are made up of discrete algorithms, and those algorithms will only really work as intended if chained together as in the model. Nevertheless, the algorithms will appear in the Processing toolbox, so users could try to use them in isolation, and have difficulty forming th

Re: [Qgis-developer] Set processing input default value to layer custom property

2017-04-11 Thread Tom Chadwin
Hi Ari What a great idea. Thank you. I guess the one downside is that it means the main algorithm will not function on its own, so you have to rely on documentation to inform the user not to try to use it without your preprocessor? Thanks again Tom - Buy Pie Spy: Adventures in British pas

Re: [Qgis-developer] (python) access to QgsHillshadeRenderer of raster layer ?

2017-04-08 Thread Tom Chadwin
They should be there: https://qgis.org/api/classQgsHillshadeRenderer.html Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- View this message in context: http://osgeo-org.1560.x6.nabble.com/python-access-to-QgsHillshadeRenderer-of-raster-layer-tp5316513p5316514.html S

[Qgis-developer] Set processing input for each layer field

2017-04-08 Thread Tom Chadwin
Sorry, another Processing inputs question: I need inputs to capture a value to be associated with each field of the vector layer which is selected as the other input. Is this possible, and if so, how? - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- View this message in cont

[Qgis-developer] Set processing input default value to layer custom property

2017-04-08 Thread Tom Chadwin
I have two inputs to a processing algorithm, one layer, one string. Is it possible to set the default value of the string input to the value of a given custom property of the layer selected for the other input? Thanks Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- Vi

Re: [Qgis-developer] Processing QgsProcessingAlgorithm problem

2017-04-06 Thread Tom Chadwin
Nyall is in the process of porting the core Processing algorithms to C++. I guess that's the root cause, but I don't know anything more specific. Tom - Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Processi

<    1   2   3   4   5   6   7   >