Re: [Qgis-developer] dtd update

2016-04-30 Thread Tom Chadwin
Which files link to the DTD? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/dtd-update-tp5263541p5263631.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-developer mailing list Qgis-develope

Re: [Qgis-developer] Proper way to get the path to gdal's executables from a python plugin

2016-04-30 Thread Tom Chadwin
There are better ways than subprocess. You can try: import processing processing.runalg("gdalogr:warpreproject", list, of, params) This depends on the Processing plugin being enabled, though. Or you can try: from osgeo import gdal -- View this message in context: http://osgeo-org.1560.x6.nab

Re: [Qgis-developer] Travis: test against LTR and current

2016-04-26 Thread Tom Chadwin
Thank you - that's worked perfectly. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Travis-test-against-LTR-and-current-tp5262752p5262963.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-dev

Re: [Qgis-developer] Travis: test against LTR and current

2016-04-26 Thread Tom Chadwin
And then add the appropriate repository in the bash script, is that what you mean? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Travis-test-against-LTR-and-current-tp5262752p5262954.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. __

Re: [Qgis-developer] Different GeoJson results from QgsVectorFileWriter.writeAsVectorFormat() on different systems

2016-04-26 Thread Tom Chadwin
Just for info, writeAsVectorFormat exports to GeoJSON differ between Windows 2.8.8 and Debian/Ubuntu 2.8.8. The upside is that this has finally forced me to get Virtualbox up and running so I have a QGIS Linux environment. Thanks again for the help. -- View this message in context: http://osge

[Qgis-developer] Travis: test against LTR and current

2016-04-25 Thread Tom Chadwin
I test against LTR in Travis via the following in .travis.yml: install: - sudo add-apt-repository http://qgis.org/debian-ltr I'd also like to test against 2.14 with: - sudo add-apt-repository http://qgis.org/debian Travis obviously support matrix builds, but I can't figure out how to build

Re: [Qgis-developer] JS error popup on PyQGIS dev cookbook page

2016-04-21 Thread Tom Chadwin
ThomasG wrote > How did you land on this page? Third result from: https://www.google.co.uk/search?q=qgis+python+set+project+crs -- View this message in context: http://osgeo-org.1560.x6.nabble.com/JS-error-popup-on-PyQGIS-dev-cookbook-page-tp5262013p5262281.html Sent from the Quantum GIS - D

Re: [Qgis-developer] Different GeoJson results from QgsVectorFileWriter.writeAsVectorFormat() on different systems

2016-04-21 Thread Tom Chadwin
OK, I found a 2.8.6 install, and that has solved that specific problem - thanks! However, there is one other inconsistency. I should have said that the data is qgis_sample_data\shapefiles\airports.shp from https://qgis.org/downloads/data/qgis_sample_data.zip. 2.8.6 Win7x64: { "type": "Feature",

Re: [Qgis-developer] Different GeoJson results from QgsVectorFileWriter.writeAsVectorFormat() on different systems

2016-04-21 Thread Tom Chadwin
Thanks for the comprehensive response, Jürgen. Given that Travis (using ubuntugis/ubuntugis-unstable) installs QGIS 2.8.1 at the moment, I don't think I can get that to generate the OFTInteger64 output. Not a big problem - I'll just use 2.8 for this. Thanks again for all the help Tom -- View t

Re: [Qgis-developer] Different GeoJson results from QgsVectorFileWriter.writeAsVectorFormat() on different systems

2016-04-21 Thread Tom Chadwin
Apologies, Juergen - messages crossed. So are you saying, given SHP input and QGIS 2.8.1, that it's not possible to replicate the 2.14.1 output? If so, I'll have to generate my test control files from a 2.8 installation. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Diffe

Re: [Qgis-developer] Different GeoJson results from QgsVectorFileWriter.writeAsVectorFormat() on different systems

2016-04-20 Thread Tom Chadwin
Tom Chadwin wrote > 2. Can I bump GDAL on Ubuntu with apt-get? ...or any other simple way which can be easily implemented in Travis. Current Travis config is here: https://github.com/tomchadwin/qgis2web/blob/master/.travis.yml So I guess pip is an alternative, though I don't know much

Re: [Qgis-developer] Different GeoJson results from QgsVectorFileWriter.writeAsVectorFormat() on different systems

2016-04-20 Thread Tom Chadwin
Ah, thank you. The Travis install is QGIS 2.8.1, so two questions: 1. Will GDAL 2 work with this? 2. Can I bump GDAL on Ubuntu with apt-get? Thanks for explaining so quickly - much appreciated Tom -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Different-GeoJson-results

[Qgis-developer] Different GeoJson results from QgsVectorFileWriter.writeAsVectorFormat() on different systems

2016-04-20 Thread Tom Chadwin
My system (QGIS 2.14.1 Win7x64): { "type": "Feature", "properties": { "ID": "1" }, "geometry": { "type": "Point", "coordinates": [ -162.97528075057517, 67.562080385426 ] } } Travis (QGIS ?2.8.?, Ubuntu Trusty): { "type": "Feature", "properties": { "ID": 1.00 }, "geometry": { "type": "Point",

[Qgis-developer] Public WFS and WMS for CI testing

2016-04-20 Thread Tom Chadwin
I currently use a couple of random layers out there (one WFS, one WMS) for Travis testing. One went wrong recently. What services does QGIS Travis testing use? Presumably the devs have faith in those servers' and layers' availability? -- View this message in context: http://osgeo-org.1560.x6.na

[Qgis-developer] JS error popup on PyQGIS dev cookbook page

2016-04-20 Thread Tom Chadwin
I'm getting a popup on this page: http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/crs "There is an documentation error, please report back to QGIS devs." Not visited the page before, so I don't know whether the problem has just occurred. -- View this message in context: http:/

Re: [Qgis-developer] [CFH] Translation for CADDigitize

2016-04-15 Thread Tom Chadwin
Does the recently-written cookbook page help? http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/plugins.html#translation Tom -- View this message in context: http://osgeo-org.1560.x6.nabble.com/CFH-Translation-for-CADDigitize-tp5261481p5261487.html Sent from the Quantum GIS - Deve

Re: [Qgis-developer] Plugin user proxy authentication

2016-04-15 Thread Tom Chadwin
Works perfectly - thanks so much, Jürgen. Tom -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Plugin-user-proxy-authentication-tp5261285p5261386.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Q

[Qgis-developer] Plugin user proxy authentication

2016-04-14 Thread Tom Chadwin
I have a QWebView, and this fails to pull in internet pages, citing proxy authentication failure. I've tried adding: QNetworkProxyFactory.setUseSystemConfiguration(True) Doesn't seem to have made a difference. I'm a tad hamstrung because I don't have this proxy setup myself, and hence am relying

Re: [Qgis-developer] Load WFS via Python without feature caching

2016-04-12 Thread Tom Chadwin
Yes, adding BBOX does the trick. Sorry for the noise. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Load-WFS-via-Python-without-feature-caching-tp5260895p5260905.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___

Re: [Qgis-developer] Load WFS via Python without feature caching

2016-04-12 Thread Tom Chadwin
Can I just add a BBOX querystring variable to the URL? Does that disable feature caching? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Load-WFS-via-Python-without-feature-caching-tp5260895p5260904.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.

[Qgis-developer] Load WFS via Python without feature caching

2016-04-12 Thread Tom Chadwin
Is it possible to load a WFS layer via Python, disabling "Cache feature" as present in the GUI? How? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Load-WFS-via-Python-without-feature-caching-tp5260895.html Sent from the Quantum GIS - Developer mailing list archive at Nabb

Re: [Qgis-developer] plugin metadata.txt icon directive

2016-03-31 Thread Tom Chadwin
My guess is that it won't work well, if at all, in the plugins repo site. From memory, SVGs aren't embedded with an tag, and a fallback raster is needed anyway for browsers which struggle with SVGs. Perhaps the Django handles all of that, generating a fallback PNG and writing the markup required,

Re: [Qgis-developer] Silence "Plugin approval notification"

2016-03-31 Thread Tom Chadwin
Alessandro Pasotti-2 wrote >> The messages would also be a lot more useful if they included the plugin >> description and changelog. > > That's just a click away, the notification contains the plugin detail page > url. But I (and I imagine most people) am not going to click through, because of th

Re: [Qgis-developer] Silence "Plugin approval notification"

2016-03-31 Thread Tom Chadwin
The messages would also be a lot more useful if they included the plugin description and changelog. Without those, I've no idea what the majority of the plugins do, or whether the new versions are of interest to me. +1 for getting them off the dev list, though. -- View this message in context:

Re: [Qgis-developer] New CSS for API documentation site

2016-03-30 Thread Tom Chadwin
@Matthias: PR created: https://github.com/qgis/QGIS/pull/2954 -- View this message in context: http://osgeo-org.1560.x6.nabble.com/New-CSS-for-API-documentation-site-tp5258016p5258785.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.

Re: [Qgis-developer] New CSS for API documentation site

2016-03-30 Thread Tom Chadwin
@Marco Here are a couple of screenshots: https://www.dropbox.com/s/qoeoku0ib62pt6m/Screenshot%202016-03-30%2010.45.22.png?dl=0 https://www.dropbox.com/s/v4ma50tv3t87t1o/Screenshot%202016-03-30%2010.50.06.png?dl=0 https://www.dropbox.com/s/n9utuezb5h2zw0y/Screenshot%202016-03-30%2010.50.45.png?dl

Re: [Qgis-developer] Python: drop z/m values

2016-03-29 Thread Tom Chadwin
> -2147483646 is actually QGis.WKBLineString25D, so this is the right answer :) Oh! The other values I'd come across having been in the range 0-6 or so, that value totally misled me, though I did work out that it looked plausible as a value in binary... Theme for the other methods - hopefully ju

Re: [Qgis-developer] New CSS for API documentation site

2016-03-29 Thread Tom Chadwin
@Matthias OK, I'll do a PR tomorrow, and attach some screenshots. @Marco, yes, of course. I'll post some screenshots here tomorrow as well. A couple of people saw some work in progress on Gitter, but this should be more complete now. If you're concerned about major/crazy changes, please don't wor

Re: [Qgis-developer] New CSS for API documentation site

2016-03-29 Thread Tom Chadwin
I've now locally tested running doxygen against QGIS master source, specifying this file as HTML_EXTRA_STYLESHEET (I've changed which directory it's in): https://github.com/tomchadwin/QGIS/blob/master/cmake_templates/api_custom.css I've made some additions and changes as a result. Most importantl

[Qgis-developer] Python: drop z/m values

2016-03-29 Thread Tom Chadwin
Currently, I detect the geometry type of input layers (which the user supplies, so they could be anything) with layer.wkbType(). This fails (returning -2147483646) if the input layer has z/m values (and will probably also fail with eg curved geometries). Is there a way to "flatten/simplify" newer/

Re: [Qgis-developer] New CSS for API documentation site

2016-03-24 Thread Tom Chadwin
I've consolidated my changes into one file, which hopefully contains changes only from the original files above, and if included after them, should overwrite the relevant rules. For the moment, I've put the file here: https://github.com/tomchadwin/QGIS/blob/master/doc/api_custom.css No idea where

Re: [Qgis-developer] Persistent plugin files amended by user, wiped by upgrade

2016-03-24 Thread Tom Chadwin
Thanks, both. I've just implemented that. In documentation, what is the best way to refer to the .qgis2 folder? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Persistent-plugin-files-amended-by-user-wiped-by-upgrade-tp5257867p5258173.html Sent from the Quantum GIS - Develo

[Qgis-developer] New CSS for API documentation site

2016-03-23 Thread Tom Chadwin
I've had a go at improving the CSS for the API docs site (https://qgis.org/api/). We've looked into how the changes might be incorporated, and think we know how to proceed. However, it would be good to get the changes tested - I've only tested it on Chrome/Win7 and IE11. What would be the best way

[Qgis-developer] Persistent plugin files amended by user, wiped by upgrade

2016-03-22 Thread Tom Chadwin
I've got something rather badly wrong in qgis2web. The plugin has a /templates folder, and users are encouraged to add their own templates. However, a user has just rightly pointed out that because /templates is within the plugin folder, changes are lost when upgrading the plugin to a new version.

Re: [Qgis-developer] QGIS3: getting rid of Load layer toolbar?

2016-03-22 Thread Tom Chadwin
Is it true that a common criticism of QGIS versus Arc is the multiple "open" buttons? Is trying to combine all open functionality (vector, raster, WFS, WMS, dB, QGIS project, etc, etc) into one "open" button the best approach? -- View this message in context: http://osgeo-org.1560.x6.nabble.com

Re: [Qgis-developer] QGIS PDF export options

2016-03-21 Thread Tom Chadwin
Neumann, Andreas wrote > Why should the QGIS project encourage or include technology that: > - disables printing and > - disables content copy ? > > I would be against having such technology in QGIS. > > QGIS is about enabling content and technologies, not about disabling and > restricting the u

Re: [Qgis-developer] Changes to a newly created memory layer are affecting the original layer from which it was copied

2016-03-20 Thread Tom Chadwin
Last follow-up on this, I hope: is there an accepted method for cloning/duplicating a vector layer? Examples online seem to involve manually creating a new layer and then iterating over the source layer's features to add to the new one. Anything simpler? -- View this message in context: http://

Re: [Qgis-developer] Sanitizing plugins

2016-03-19 Thread Tom Chadwin
I'm sorry my expertise isn't up to what you ask, but I did just want to say thanks for all this approval/testing work. I dint know how you find the time. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Sanitizing-plugins-tp5256646p5257347.html Sent from the Quantum GIS - De

Re: [Qgis-developer] Changes to a newly created memory layer are affecting the original layer from which it was copied

2016-03-19 Thread Tom Chadwin
Ah, I see it! Thank you so much. And apologies for not spotting that one myself. I blame Python and its semantic white space... Fix will follow as soon as I can. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Changes-to-a-newly-created-memory-layer-are-affecting-the-origi

Re: [Qgis-developer] Changes to a newly created memory layer are affecting the original layer from which it was copied

2016-03-18 Thread Tom Chadwin
@Sylvain Apologies - I meant how best to do it in Python. Thanks Tom -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Changes-to-a-newly-created-memory-layer-are-affecting-the-original-layer-from-which-it-was-copied-tp5256690p5257172.html Sent from the Quantum GIS - Devel

[Qgis-developer] Changes to a newly created memory layer are affecting the original layer from which it was copied

2016-03-16 Thread Tom Chadwin
Sorry about the convoluted subject line. qgis2web is built from @volaya's qgis-ol3 plugin (thanks as ever, Victor). That exported layers by making temporary memory copies of them, in order to manipulate them pre-export without affecting the original layer and corrupting the user's data. This worked

Re: [Qgis-developer] QGIS on Windows: order another desktop to accommodate all the icons

2016-03-14 Thread Tom Chadwin
jmckenna wrote > I think people find it hard to follow your messages as you don't > include the previous thread in your response; meaning, we have no idea > what/who you are responding to. Apologies to all. A combination of using Nabble to avoid our massive corporate signature files, trying to r

Re: [Qgis-developer] QgsRendererRangeV2.symbol() dumps QGIS

2016-03-14 Thread Tom Chadwin
@Nyall You're completely right. Thanks so much! Couldn't use your method precisely (throws "TypeError: qgis._core.QgsSymbolV2 represents a C++ abstract class and cannot be instantiated"). However, this did the trick: symbol = range.symbol().clone() Thanks again, and sorry about all the questions

Re: [Qgis-developer] QgsRendererRangeV2.symbol() dumps QGIS

2016-03-14 Thread Tom Chadwin
I'm not sure how, but that line is no longer crashing. However, I am now getting a crash on a subsequent line: wallColor = symbol.symbolLayer(1).subSymbol().color().name() What is interesting is that it crashes not immediately, but on the third feature it loops to in "for feat in feats". Simplifi

Re: [Qgis-developer] QgsRendererRangeV2.symbol() dumps QGIS

2016-03-14 Thread Tom Chadwin
Here's a fuller code snippet. # cleanedLayer is a memory layer with the extra fields added for height, roof, colour, and wall colour # i is the original layer # canvas is obviously iface.mapCanvas() fields = cleanedLayer.pendingFields() renderer = i.rendererV2() renderContext = QgsRenderContext.

Re: [Qgis-developer] QgsRendererRangeV2.symbol() dumps QGIS

2016-03-14 Thread Tom Chadwin
No, it's not that. I already have startRender() and stopRender() either side of the code block above. Can anyone explain the crash? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/QgsRendererRangeV2-symbol-dumps-QGIS-tp5255977p5256170.html Sent from the Quantum GIS - Develo

Re: [Qgis-developer] QGIS on Windows: order another desktop to accommodate all the icons

2016-03-14 Thread Tom Chadwin
Yes, I know. I was replying to Jeff. We just need to remember the reason for this discussion and ticket. The behaviour might be ever so slightly irritating for experienced users. It's less experienced users, though, that any proposed changes are intended to benefit. Martin's original point is abo

Re: [Qgis-developer] QGIS on Windows: order another desktop to accommodate all the icons

2016-03-13 Thread Tom Chadwin
Any folder installed to the Windows desktop is extremely irregular. In fact, I'm not sure I've ever seen another application do it. 1. Install to C:\Program Files 2. Add all shortcuts to new Start menu folder 3. Ask to add QGIS shortcut to the desktop 4. Some installers also ask if you want qu

Re: [Qgis-developer] QgsRendererRangeV2.symbol() dumps QGIS

2016-03-12 Thread Tom Chadwin
Wait, do I need startRender() and stopRender() for this as well? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/QgsRendererRangeV2-symbol-dumps-QGIS-tp5255977p5255984.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. __

[Qgis-developer] QgsRendererRangeV2.symbol() dumps QGIS

2016-03-12 Thread Tom Chadwin
The line: symbol = range.symbol() where range is (I trust) a QgsRendererRangeV2 is dumping QGIS for me. Does anyone know what circumstances can result in this? Fuller code snippet: elif isinstance(renderer, QgsGraduatedSymbolRendererV2): classAttribute = renderer.classAttribute() attrVal

Re: [Qgis-developer] QGIS on Windows: order another desktop to accommodate all the icons

2016-03-12 Thread Tom Chadwin
I run it from the Windows start menu, so I'm not actively specifying a directory. I think that will mirror other non-dev users' behaviour, so I still think this is an issue. I can't remember how I first installed the OSGeo installer itself, but I can't imagine I changed any installer defaults. -

Re: [Qgis-developer] QgsFeatureRendererV2.symbolForFeature() in 2.14 - how many arguments?

2016-03-12 Thread Tom Chadwin
Thanks, Nyall. Way beyond my knowledge, I'm afraid (when someone starts to say overloading or subclassing, my eyes tend to glaze over. Not to worry - at least I've got rid of that error... -- View this message in context: http://osgeo-org.1560.x6.nabble.com/QgsFeatureRendererV2-symbolForFeature

Re: [Qgis-developer] QgsFeatureRendererV2.symbolForFeature() in 2.14 - how many arguments?

2016-03-12 Thread Tom Chadwin
Apologies. Just found this in the docs for the non-deprecated syntax: "available in Python bindings as symbolForFeature2". Grrr. symbolForFeature2() works with the extra argument. I still can't get my code to do what I want it to, but that's a different (and as-yet unknown) issue. Many apologies

[Qgis-developer] QgsFeatureRendererV2.symbolForFeature() in 2.14 - how many arguments?

2016-03-12 Thread Tom Chadwin
I am struggling with QgsFeatureRendererV2.symbolForFeature(). QgsFeatureRendererV2.symbolForFeature(QgsFeature) does not throw an error, but the API docs say that is deprecated. The non-deprecated syntax is listed as QgsFeatureRendererV2.symbolForFeature(QgsFeature, QgsRenderContext). However, in m

Re: [Qgis-developer] QGIS on Windows: order another desktop to accommodate all the icons

2016-03-12 Thread Tom Chadwin
@jmckenna: https://hub.qgis.org/issues/14463 -- View this message in context: http://osgeo-org.1560.x6.nabble.com/QGIS-on-Windows-order-another-desktop-to-accommodate-all-the-icons-tp5255718p5255959.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. _

Re: [Qgis-developer] zip file uploads allowed on github issues?!

2016-03-11 Thread Tom Chadwin
Ah, that's good timing. I didn't know that had been introduced this week. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/zip-file-uploads-allowed-on-github-issues-tp5255348p5255815.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. _

Re: [Qgis-developer] zip file uploads allowed on github issues?!

2016-03-11 Thread Tom Chadwin
Does Redmine have voting on bugs/feature requests, and if so, does QGIS use that facility? That's the main thing I've found lacking in Github. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/zip-file-uploads-allowed-on-github-issues-tp5255348p5255791.html Sent from the Quan

Re: [Qgis-developer] QGIS on Windows: order another desktop to accommodate all the icons

2016-03-10 Thread Tom Chadwin
+1 for this as an issue. Adding icons to the desktop should be optional. Also, on Windows, the OSGeo installer leaves a folder with a very non-user-friendly name ("http%" something or other). -- View this message in context: http://osgeo-org.1560.x6.nabble.com/QGIS-on-Windows-order-another-desk

Re: [Qgis-developer] plugin translation

2016-03-10 Thread Tom Chadwin
I'd really like to know about this. Are these commands in the OSGeo shell? In other words, will it work on Windows? I stripped out the translation code from plugin builder after I could not get the translation test to pass Travis, but ideally, I'd like to add it back in. -- View this message in

Re: [Qgis-developer] symbolForFeature(feat) causes minidump in converted 2.5d layers

2016-03-08 Thread Tom Chadwin
I got that far, but had me baffled. What is a QgsRenderContext, and do I need an existing or a new one in this case? If an existing one, how do I retrieve it? This is where the API docs are no use, in my opinion: for high-level descriptions of classes. One has to rely on someone having blogge

Re: [Qgis-developer] symbolForFeature(feat) causes minidump in converted 2.5d layers

2016-03-08 Thread Tom Chadwin
Yeah, I found that, and tried it, with no joy. I need to understand it better and try again. Thanks. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/symbolForFeature-feat-causes-minidump-in-converted-2-5d-layers-tp5254907p5255117.html Sent from the Quantum GIS - Developer

[Qgis-developer] symbolForFeature(feat) causes minidump in converted 2.5d layers

2016-03-07 Thread Tom Chadwin
The following code works for a layer which has the 2.5d renderer selected: feats = layer.getFeatures() for feat in feats: symbol = layer.rendererV2().symbolForFeature(feat) This still works if I change the layer to a single symbol renderer. However, if I change it to a categorized symbol rend

Re: [Qgis-developer] QGIS 2.14 LTR ?

2016-03-05 Thread Tom Chadwin
2.14 becomes LTR when 2.16 is released, I believe. A chance for 2.14 to bed in. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/QGIS-2-14-LTR-tp5254573p5254595.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. __

Re: [Qgis-developer] 2.5d - a couple of suggestions

2016-02-26 Thread Tom Chadwin
Matthias Kuhn-2 wrote >> 3. OTF reprojection seems to break the renderer, to my eyes. > > Can you file an issue? http://hub.qgis.org/issues/14381 -- View this message in context: http://osgeo-org.1560.x6.nabble.com/2-5d-a-couple-of-suggestions-tp5252891p5253024.html Sent from the Quantum GIS

Re: [Qgis-developer] 2.5d - a couple of suggestions

2016-02-26 Thread Tom Chadwin
>If you provide me with a good variable I'm not sure my trigonometry is up to it, but I'll have a look. > lock the roof color Yes, that works - apologies for the noise. Some other questions/observations on the 2.5d renderer (let me know if this is an inappropriate place to discuss this): 1. T

[Qgis-developer] 2.5d - a couple of suggestions

2016-02-25 Thread Tom Chadwin
Tried the 2.5d renderer for the first time - terrific work. I have one suggestion, and one question. Suggestion: allow users to specify the sun position, so that the walls shaded according to aspect are consistent with eg aerial photography layers. Question: I created the simple 2.5d style with d

[Qgis-developer] QtWebKit 2.3

2016-02-25 Thread Tom Chadwin
OpenLayers is moving away from the Closure library. This is A Good Thing, as abandoning Closure will decrease OpenLayers' filesize considerably. However, it means that OpenLayers now doesn't work on older browsers. While not a big deal for end-users' desktop browsers, as very few are affected, it'

[Qgis-developer] qgis2web 1.0.0 released

2016-02-12 Thread Tom Chadwin
I've just released qgis2web 1.0.0. If you have an earlier version installed, please do update. Report any issues you have with it on Github. Thanks for all the help I've had from this list and from others in getting this far. Thanks Tom -- View this message in context: http://osgeo-org.1560.x

Re: [Qgis-developer] Move selection actions to Edit menu?

2016-01-31 Thread Tom Chadwin
How tolerant are users of such changes? I remember the Quark boss once saying "never change a keyboard shortcut"... -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Move-selection-actions-to-Edit-menu-tp5248150p5248162.html Sent from the Quantum GIS - Developer mailing list

Re: [Qgis-developer] Learning to zoom with PyQGIS

2016-01-27 Thread Tom Chadwin
Yes. Your failing example creates a new instance of a canvas not associated with the QGIS interface. Your working method retrieves the canvas instance from the interface. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Learning-to-zoom-with-PyQGIS-tp5247589p5247606.html Sen

Re: [Qgis-developer] Learning to zoom with PyQGIS

2016-01-27 Thread Tom Chadwin
Try searching for "zoom" on this page: http://qgis.org/api/classQgsMapCanvas.html That should get you some of the methods you require. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Learning-to-zoom-with-PyQGIS-tp5247589p5247595.html Sent from the Quantum GIS - Developer

Re: [Qgis-developer] JS error in QtWebKit.QWebView - no error in IE11 or Chrome/Win

2016-01-22 Thread Tom Chadwin
I've got this working largely as I want - I now have a devtools inspector in my plugin dialog which F12 toggles (download qgis2web master from Github to see it). I would like to toggle the inspector automatically if there is a JS error in the QWebPage/QWebView. I imagine this is done by subclassin

Re: [Qgis-developer] JS error in QtWebKit.QWebView - no error in IE11 or Chrome/Win

2016-01-22 Thread Tom Chadwin
The polyfill works. Matthias, any idea how I make QtWebKit.QWebInspector available in the QGIS Qt Designer? I've included it by hand-editing my ui.py file, but pyuic4 will obviously overwrite that. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/JS-error-in-QtWebKit-QWebVi

Re: [Qgis-developer] JS error in QtWebKit.QWebView - no error in IE11 or Chrome/Win

2016-01-21 Thread Tom Chadwin
Just to close this one off, this issue was caused by OL3.13.0 replacing goog.bind() with Function.bind() as part of their move to abandon legacy code and insist on ECMA-compliant clients. Presumably the Qt4 WebKit is not thus compliant. Solution is to use a polyfill. All the details are in the OL3

Re: [Qgis-developer] JS error in QtWebKit.QWebView - no error in IE11 or Chrome/Win

2016-01-21 Thread Tom Chadwin
I've reported the issue here: https://github.com/openlayers/ol3/issues/4706. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/JS-error-in-QtWebKit-QWebView-no-error-in-IE11-or-Chrome-Win-tp5246541p5246577.html Sent from the Quantum GIS - Developer mailing list archive at Nab

Re: [Qgis-developer] JS error in QtWebKit.QWebView - no error in IE11 or Chrome/Win

2016-01-21 Thread Tom Chadwin
OK, I've got that working (thanks again, Matthias), and I'm getting an error in OL3.13.0 itself, not in my JS. I'll update the qgis2web Github issue, and see if I can get some OL3 help from somewhere. For info, the error I get is: ol-debug.js:48906 TypeError: 'undefined' is not a function (evaluat

Re: [Qgis-developer] JS error in QtWebKit.QWebView - no error in IE11 or Chrome/Win

2016-01-21 Thread Tom Chadwin
Thanks, Matthias - that should be just what I need. First attempts to implement it result in a minidump, but I'll keep trying. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/JS-error-in-QtWebKit-QWebView-no-error-in-IE11-or-Chrome-Win-tp5246541p5246553.html Sent from the Q

[Qgis-developer] JS error in QtWebKit.QWebView - no error in IE11 or Chrome/Win

2016-01-21 Thread Tom Chadwin
qgis2web's preview pane is a QWebView. OpenLayers 3.13.0 has just been released. I've tried upgrading qgis2web's OpenLayers to that version, but the preview stops working. I found instructions for how to redirect the QWebView's console output to the QGIS Python console. The (not very meaningful) er

Re: [Qgis-developer] Setting snapping settings via Python

2016-01-20 Thread Tom Chadwin
This old thread might also help: http://osgeo-org.1560.x6.nabble.com/getting-QgsMapCanvasSnapper-to-work-td4147067.html -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Setting-snapping-settings-via-Python-tp5246362p5246373.html Sent from the Quantum GIS - Developer mailing

Re: [Qgis-developer] Setting snapping settings via Python

2016-01-20 Thread Tom Chadwin
Is it http://qgis.org/api/classQgsSnapper.html? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Setting-snapping-settings-via-Python-tp5246362p5246371.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___

Re: [Qgis-developer] Help us plan for QGIS 3.0

2016-01-20 Thread Tom Chadwin
> Just an idea: what about a 2.16 being an LTR rather than the 2.14 ?  Counter-argument. This breaks the only newly established LTR release cycle which is cited as very attractive to corporate users. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Help-us-plan-for-QGIS-3-0

Re: [Qgis-developer] Point/minor release changelogs

2016-01-19 Thread Tom Chadwin
Hmm. Not at all usable, I'm afraid. I would have thought a properly documented changelog for releases would be A Good Thing. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Point-minor-release-changelogs-tp5246035p5246069.html Sent from the Quantum GIS - Developer mailing l

Re: [Qgis-developer] Point/minor release changelogs

2016-01-19 Thread Tom Chadwin
No, I don't mean announcing that the releases are available - I mean a changelog for the releases. Where is that? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Point-minor-release-changelogs-tp5246035p5246052.html Sent from the Quantum GIS - Developer mailing list archive

[Qgis-developer] Point/minor release changelogs

2016-01-19 Thread Tom Chadwin
I try to keep the users within the organizations I work with aware of new versions of QGIS when they are released. I also like to summarize some of the changes. My Google skills are failing me, however, in finding changelogs for eg 2.8.6 and 2.12.3, rather than for 2.8 and 2.12. I'm sure I've found

Re: [Qgis-developer] Help us plan for QGIS 3.0

2016-01-19 Thread Tom Chadwin
I just thought I'd reassure you that the discussion is being read and not ignored. As just a plugin dev, I cannot offer any opinion - the core devs will come to the best consensus, and the rest of us can all then work at fixing our plugins. -- View this message in context: http://osgeo-org.1560

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

2016-01-11 Thread Tom Chadwin
OK, trying to simplify this, can anyone tell me if file locking is an issue in this process? I am starting with a raster layer, and then want to run the following in turn on it: 1. QgsRasterPipe.writeRaster() 2. processing.runalg("gdalogr:warpreproject") 3. processing.runalg("gdalogr:translate")

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

2016-01-08 Thread Tom Chadwin
The output of `QgsRasterFileWriter` *is* styled. The output of `warpreproject` is *not* styled, but the `.tif` is accompanied by a `.aux.xml` file which appears to have colour information in it: -0.498046875 255.498046875 256

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 Se

[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() pipewidth

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: http://osgeo-org.1560.x6.nabbl

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: http://osgeo-org.1560.x6.nabble.com/Processing-SAGA-2-2-2-tp5240

[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 templates

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 thi

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-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
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] 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] Out of the box QGIS experience ( and What's this? Tool button)

2015-12-03 Thread Tom Chadwin
> What's the recommended way to embed documentation ? I have a GUI help tab which pulls in the Github readme. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Out-of-the-box-QGIS-experience-and-What-s-this-Tool-button-tp5239742p5239948.html Sent from the Quantum GIS - Deve

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

<    1   2   3   4   5   6   7   >