[Qgis-developer] Attribute table in Master - 2 issues
1) Updating of values using Field calculator Using master, I select some rows in an attribute table (the data is in PostGIS). I use field calculator to update the values of an existing column in my selected rows. These new values will not display until I close the attribute table and open it again. 2) Row selection (blue highlight) If I click and drag down or up while the mouse button is still held down, I can select multiple rows. These rows are highlighted in blue. If I do this a 2nd time, when I first click the mouse button, the old selection is still shown in the blue highlight. The old selection highlight only disappears when I am finished with my new selection and release the mouse button. This for me isn't the correct behavior that I would expect. However, if you select a set of rows, and then make another program the focused window, if then click back into the attribute table and drag a selection (the action of click and drag has to be the thing that gives the attribute table focus back), it displays the correct behavior I would expect (i.e. the previous selection highlight is removed straight after I have clicked with the mouse button). If I return focus to the attribute table window first and then click and drag, it still displays the wrong behavior. Is anyone else experiencing these problems? I am using Windows 7. Apologies if these have already been reported. Regards, James ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] [Qgis-tr] size of translations, use a distinct repo?
As a slight side point, according to transifex it looks like we could have 13 fully translated languages for the GUI by the time 2.6 is released (13 languages are on 99% or more). 15 languages are over 95%. This is excellent news. Is it something we should publise, maybe add to the visual changelog? -Opprinnelig melding- Fra: qgis-tr-boun...@lists.osgeo.org [mailto:qgis-tr-boun...@lists.osgeo.org] På vegne av Werner Macho Sendt: 29. oktober 2014 14:15 Til: Denis Rouzaud Kopi: QGIS Translation Discussions; qgis-developer Emne: Re: [Qgis-tr] [Qgis-developer] size of translations, use a distinct repo? hmm - ok .. Then I am going to give it a try without location and see if there are any problems with transifex or linguist .. If not - I also think that way is perfect .. regards Werner On Wed, Oct 29, 2014 at 2:11 PM, Denis Rouzaud denis.rouz...@gmail.com wrote: On 29.10.2014 14:06, Werner Macho wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Good idea, if its really translation that causes the growth we should do everything to avoid that. As Jurgen noticed, there are some useless changes in the ts files: message -location filename=../src/core/qgscontexthelp_texts.cpp line=327/ +location filename=../src/core/qgscontexthelp_texts.cpp line=319/ if there are lines removed/added in the source file, this will cause changes in the translation file. Jurgen suggested to remove these tags location filename which would improve a lot. Is there any way to shrink the already existing repo? At one point I thought about zipping the ts files - but if there is a better way .. good! I always wondered why the whole translations file has to be changed whenever there are only some small changes .. moving the translation in it's own github repository: hmm - I don't know if thats easily possible.. but I am also willing to try it if it helps the source code to stay clean. I don't see any reason why it wouldn't be possible. git submodules would be pretty useful for this matter. But again - anyway to shrink the already existing source code? As far as I know, you can't shrink existing repo without destroying the history. I don't mind about loosing track of translation changes. regards Werner On 10/29/2014 12:15 PM, Jürgen E. Fischer wrote: Hi Denis, On Wed, 29. Oct 2014 at 11:08:16 +0100, Denis Rouzaud wrote: Any thoughts? I guess this is just due to the location filename stuff. That often causes massive change in the ts files, because lines were added or removed from the source files - even if there isn't even a changed translation. I think that is not used at all for transifex and it's not that important to have in linguist either. So instead of inventing something new, all it takes might be to add -locations none to our lupdate call, reduce the size of the .ts files a lot (in one huge commit) and avoid useless tracking of location changes in the future. Objections? Jürgen ___ Qgis-tr mailing list qgis...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-tr -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.15 (GNU/Linux) iEYEARECAAYFAlRQ5k8ACgkQDAH1YiCxBgn7TQCeKllHCgzKm1Jn2iRT6iwPXkPd qmsAnjjWeXZySoZX9WQYf82w4s64s2ql =AGCZ -END PGP SIGNATURE- ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-tr mailing list qgis...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-tr ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] weekly build problem
Are there any plugins that could be causing this problem? Seeing as the problem exists over 2 different versions of QGIS I would recommend checking. I have had similar (think it was with version 2 and 2.2) and the problem was solved by turning off all plugins. I was then able to add the plugins in again one by one to find the plugin causing the problem. Fra: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av Angie Rudolph Sendt: 15. oktober 2014 01:17 Til: qgis-developer@lists.osgeo.org Emne: [Qgis-developer] weekly build problem I installed the windows weekly build on 9/26/14 and QGIS has been behaving poorly ever since. When I add a simple shapefile, stored on my local hard drive, turning the layer off an on takes up to 10 seconds. I have since tried to uninstall the weekly build and install a stable version of QGIS (2.4) but the problem now remains. Is there something else that needs to be uninstalled such as visual C++, etc? -- Angie Rudolph, GISP Greenwood Mapping, Inc. c:(208)-201-5699 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Plugin howto
I think Tim was editing the Plugin Builder a little while ago. We discussed adding an option in the plugin builder dialog to specify which menu and toolbar the plugin would be added to. This would obviously help quite a lot with new plugins. Obviously still important to have this documented in the cookbook. https://github.com/g-sherman/Qgis-Plugin-Builder/pull/11 https://github.com/timlinux/Qgis-Plugin-Builder/tree/better-menus -Opprinnelig melding- Fra: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av Paolo Cavallini Sendt: 24. juli 2014 08:14 Til: Alexander Bruy Kopi: qgis-developer Emne: Re: [Qgis-developer] Plugin howto Il 24/07/2014 08:10, Alexander Bruy ha scritto: Hope this helps thanks Alex. perhaps we should link the instructions directly from http://plugins.qgis.org/ ? all the best. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Please tell me how I can speed-up QGIS development on Android
Just a quick question to make sure I have understood this correctly. The github repository you linked to Matthias, that is a version of QGIS using qt5? I have problems with display resolution (3200 x 1800) on my new work laptop (it's not just QGIS, there are other problems that look at rubbish also). The QGIS interface doesn't look so great. I have read that qt5 handles these things much better. Is there anywhere I can get a windows installer for this from? If not I will attempt to build QGIS myself (haven't done it before). If it is going to be qt5 for desktop QGIS then I am very keen to test - it's the main downside of my new machine. James -Opprinnelig melding- Fra: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av Paolo Cavallini Sendt: 21. juli 2014 12:55 Til: Matthias Kuhn; qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] Please tell me how I can speed-up QGIS development on Android Il 21/07/2014 12:52, Matthias Kuhn ha scritto: Hi Paolo On 21.07.2014 12:36, Paolo Cavallini wrote: Hi Matthias, the apk downloads and installs fine, without installing the Qt5 for Android (I had a The Ministro app will take care of dependencies (Qt5) and update when necessary. OK, thanks for clarifying. Looking forward to see developments on this. All the best. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] SOSI support in QGIS
Hi Tommy, Unfortunately this list is not really the correct place to ask this question. It is possible that there are some people here who have experience with using dot spatial, but I think you are more likely to get a better response on the forums on the dot spatial website. I am certainly not familiar with dot spatial myself. I don't know how dot spatial integrates GDAL into their system, or what version they are using, but OSGeo4W uses GDAL 1.11.0. From what I understand, OSGeo4W tends to set environment variables when it starts programs (with the use of .bat files). So it is unlikely that the GDAL installed with OSGeo4W is interfering with the GDAL that is built into dot spatial. However that is just my understanding of it and one of the more expert people here will maybe want to correct me :) Sorry I can't be of more help, but try the guys over at the dot spatial site. They will be able to provide further guidance I would imagine. James -Opprinnelig melding- Fra: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av klausenlie Sendt: 8. juli 2014 19:53 Til: qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] SOSI support in QGIS Hi everyone and thanks for the post lately. I don`t konow if I am completly off road here, but I have and issue that I suspect COULD be related to GDAL. I am working with a .Net forms application i Visual Studio 2013 which uses Dot Spatial. From what I can read it is based somehowe on GDAL. Now, tonight, out of the blue really, I get an out of memory message when I try to open a GeoTiff in the Dot Spatial map control. I say out of the blue because it came just like that. I must have done something or something must have happened, but I can`t figure out what. Has this something to do with the GDAL/OGR me and James have been working on lately and I have installed on this machine? Has there been an automatic update somewhere? I just wanted to ask Tommy -- View this message in context: http://osgeo-org.1560.x6.nabble.com/SOSI-support-in-QGIS-tp5148046p5150155.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] SOSI support in QGIS
Hi Andre, I have now tested on 3 different machines with 3 different datasets. Machines tested: 1) Work desktop running Windows 7 2) Work laptop running Windows 8 3) Home laptop running Windows 8 Datasets tested: 1) Naturvernområde (NATVERNOMR.SOS) 2) Naturtyper (NATURTYPER.SOS) 3) Felles kystkontur generalisert (Kystkontur_generalisert.SOS) All 3 of these datasets are available here and are as they were when I downloaded them - I have not edited the data at all. https://drive.google.com/folderview?id=0B6r5nAOdEBZramdzNi15YzNqZUUusp=sharing ogr2ogr: The following ogr2ogr commands complete fine on all 3 machines and the shapefiles open without any problems. ogr2ogr -f ESRI Shapefile kystkontur Kystkontur_generalisert.SOS ogr2ogr -f ESRI Shapefile naturtyper NATURTYPER.SOS ogr2ogr -f ESRI Shapefile natvernomr NATVERNOMR.SOS It appears that all data is converted when I check the number of records in the SOSI file against the number of converted records in the shapefiles. The only warnings I get are about normalized/laundered field names, but I assume that's due to me converting to a shapefile. QGIS: In QGIS, I can only hear the popping noise on Windows 7. QGIS crashes on Windows 7 as well. The two Windows 8 machines experience no problems with the 3 sosi files that are available from the link above. The data loads and displays correctly, and QGIS never shutdowns unexpectedly. I get fewer problems when I load only one of the geometry types from one SOSI file. So I don't know if this is a specific Windows 7 thing or not. Hope this helps. James -Opprinnelig melding- Fra: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av Andre Joost Sendt: 8. juli 2014 05:57 Til: qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] SOSI support in QGIS Am 07.07.2014 22:21, schrieb Stott, James: Hi Andre, Are there any specific tests that you would like me to run? Or will it suffice with a basic ogr2ogr command like: ogr2ogr -f ESRI Shapefile out Kystkontur_generalisert.SOS That would be my first try. And any other operations in GDAL that use vector data. Greetings, André Joost ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] SOSI support in QGIS
Hi Jürgen, So with further testing it appears we have found some problems with other SOSI files. It seems things work quite well with simple files (like the naturvernområde data for Rogaland I and others have tested with), but we get problems when opening bigger files. One thing we have noticed is that a lot of the problems seem to happen when you try and load more than one type of geometry types from a sosi file at once. If I select all 3 geometry types in one go (or load 2 or more individually) QGIS crashes. If we just load one geometry type, and then close it and load another geometry type, it works fine. We are also getting problems with files that contain a lot of data, in this situation QGIS will crash with just one layer loaded. And when QGIS starts to error, I get the noise problem mentioned here too http://hub.qgis.org/issues/10746 . So a few issues, but it's a great start that it works with some data :) If people would like copies of these datasets for testing, I can provide them. James -Opprinnelig melding- Fra: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av Stott, James Sendt: 6. juli 2014 16:42 Til: Jürgen E. Fischer; qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] SOSI support in QGIS Hi Jürgen, 1.11.0-4 fixes this problem. Thanks for the help. James From: qgis-developer-boun...@lists.osgeo.org [qgis-developer-boun...@lists.osgeo.org] on behalf of Jürgen E. Fischer [j...@norbit.de] Sent: 06 July 2014 16:17 To: qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] SOSI support in QGIS Hi James, On Sun, 06. Jul 2014 at 13:53:57 +, Stott, James wrote: One other thing I have noticed on 64 bit is that gdal-python package has a different version number (1.11.0-3) than in 32 bit (1.11.0-2). This version number is different to all the other packages which are 1.11.0-2. Try 1.11.0-4 please Jürgen: -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de QGIS release manager (PSC) GermanyIRC: jef on FreeNode -- norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH Rheinstrasse 13, 26506 Norden GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] SOSI support in QGIS
Hi Andre, Are there any specific tests that you would like me to run? Or will it suffice with a basic ogr2ogr command like: ogr2ogr -f ESRI Shapefile out Kystkontur_generalisert.SOS James From: qgis-developer-boun...@lists.osgeo.org [qgis-developer-boun...@lists.osgeo.org] on behalf of Andre Joost [andre+jo...@nurfuerspam.de] Sent: 07 July 2014 16:31 To: qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] SOSI support in QGIS Am 07.07.2014 14:16, schrieb Stott, James: We are also getting problems with files that contain a lot of data, in this situation QGIS will crash with just one layer loaded. Do these files work fine with ogr2ogr? Just to make clear that it is not a GDAL issue. Greetings, André Joost ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] SOSI support in QGIS
Hi Jürgen, And that fixes everything :) I now get the option to select SOSI in the files of type drop down menu in the vector file open dialog in both 32 bit and 64 bit. Both 32 and 64 bit versions of QGIS open SOSI files correctly with the file I used previously. I will do some more testing tomorrow and write back if I find any problems. Thank you very much for your help, this is excellent news for us. James From: qgis-developer-boun...@lists.osgeo.org [qgis-developer-boun...@lists.osgeo.org] on behalf of Jürgen E. Fischer [j...@norbit.de] Sent: 06 July 2014 11:43 To: qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] SOSI support in QGIS Hi, On Sun, 06. Jul 2014 at 11:42:29 +0200, Jürgen E. Fischer wrote: Please try with the latest gdal-sosi package (1.11.0-2). I'm talking about OSGeo4W, if that wasn't obvious anyway. Jürgen -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de QGIS release manager (PSC) GermanyIRC: jef on FreeNode -- norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH Rheinstrasse 13, 26506 Norden GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] SOSI support in QGIS
Hi, Just to double check a couple of things, 1) you need to install the gdal-sosi package using the OSGeo4W installer. 2) You will need to update all packages using the OSGeo4W installer as the changes Jürgen has made seem to have been made today. If you go into QGIS and select Add Vector Layer from the Layer menu (these instructions assume an English GUI, obviously if you are using the Norwegian translated GUI it will be in Norwegian). Here you need to make sure Source type is set to File. Click browse. In the bottom right hand corner of the open file dialog, you will see a drop down menu. Here you should find an option for SOSI. Select a SOSI file and select and click open. Click Open A dialog will appear allowing you to select which layers from the SOSI file to open. Choose the ones you want and select OK. QGIS will load the data. Hope this helps. James From: qgis-developer-boun...@lists.osgeo.org [qgis-developer-boun...@lists.osgeo.org] on behalf of klausenlie [klausen...@online.no] Sent: 06 July 2014 13:37 To: qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] SOSI support in QGIS Hi James! Can you please tell me where you are in QGIS now? I haven`t found what you talk about here. Tommy -- View this message in context: http://osgeo-org.1560.x6.nabble.com/SOSI-support-in-QGIS-tp5148046p5149826.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] SOSI support in QGIS
@Tommy: I have created a short blog post on how to enable SOSI support when installing QGIS using OSGeo4W. http://jamesinnorway.net/2014/07/06/qgis-2-4-and-sosi/ I havent compiled anything from source for this. Let me know if it helps. @Jürgen: I have had the sound issue before on my work machine (Windows 7), but it was only when the SOSI file wouldnt open. Now that the files open I do not get the problem on my home machine (Windows 8 - but never noticed if it was there before so cant comment on that). James From: qgis-developer-boun...@lists.osgeo.org [qgis-developer-boun...@lists.osgeo.org] on behalf of klausenlie [klausen...@online.no] Sent: 06 July 2014 14:42 To: qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] SOSI support in QGIS Hi Fischer and James! What do I do now? I don`t know how to use the patch link. Sorry for this. Tommy -- View this message in context: http://osgeo-org.1560.x6.nabble.com/SOSI-support-in-QGIS-tp5148046p5149834.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] SOSI support in QGIS
...@lists.osgeo.org [qgis-developer-boun...@lists.osgeo.org] on behalf of Stott, James [fmro...@fylkesmannen.no] Sent: 06 July 2014 15:18 To: klausenlie; j...@norbit.de; qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] SOSI support in QGIS @Tommy: I have created a short blog post on how to enable SOSI support when installing QGIS using OSGeo4W. http://jamesinnorway.net/2014/07/06/qgis-2-4-and-sosi/ I havent compiled anything from source for this. Let me know if it helps. @Jürgen: I have had the sound issue before on my work machine (Windows 7), but it was only when the SOSI file wouldnt open. Now that the files open I do not get the problem on my home machine (Windows 8 - but never noticed if it was there before so cant comment on that). James From: qgis-developer-boun...@lists.osgeo.org [qgis-developer-boun...@lists.osgeo.org] on behalf of klausenlie [klausen...@online.no] Sent: 06 July 2014 14:42 To: qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] SOSI support in QGIS Hi Fischer and James! What do I do now? I don`t know how to use the patch link. Sorry for this. Tommy -- View this message in context: http://osgeo-org.1560.x6.nabble.com/SOSI-support-in-QGIS-tp5148046p5149834.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] SOSI support in QGIS
Hi Jürgen, 1.11.0-4 fixes this problem. Thanks for the help. James From: qgis-developer-boun...@lists.osgeo.org [qgis-developer-boun...@lists.osgeo.org] on behalf of Jürgen E. Fischer [j...@norbit.de] Sent: 06 July 2014 16:17 To: qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] SOSI support in QGIS Hi James, On Sun, 06. Jul 2014 at 13:53:57 +, Stott, James wrote: One other thing I have noticed on 64 bit is that gdal-python package has a different version number (1.11.0-3) than in 32 bit (1.11.0-2). This version number is different to all the other packages which are 1.11.0-2. Try 1.11.0-4 please Jürgen: -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de QGIS release manager (PSC) GermanyIRC: jef on FreeNode -- norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH Rheinstrasse 13, 26506 Norden GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] SOSI support in QGIS
OK I have checked this quickly this morning on my machine at home as I am not around for the next week. Only difference at home is Windows 8. Updated both 32 bit (to 39eaff9) and 64 bit (to 2d1e983) OSGeo4W this morning. I still do not get the option for SOSI files in 32 bit QGIS in the files of type drop down menu in the open file dialog window. The SOSI option is avaiable in 64 bit. The 64 bit version still gives the invalid data source error after trying to open the SOSI file. The SOSI file I have tested with is the naturvernområde dataset from Miljødirektoratet (I have downloaded only data for Rogaland fylke - data available from here http://karteksport.miljodirektoratet.no/#page=tab1). ogrinfo reports correctly on both 32 and 64 bit versions and ogr2ogr will convert sosi files to shapefiles in my test. Commands used were: ogrinfo NATVERNOMR.SOS ogr2ogr -f ESRI Shapefile output NATVERNOMR.SOS Both sets of output shapefiles open fine in QGIS. Regards, James From: Blumentrath, Stefan [stefan.blumentr...@nina.no] Sent: 26 June 2014 21:04 To: Stott, James; qgis-developer@lists.osgeo.org Subject: RE: SOSI support in QGIS Hi again, Now I rebuilt the 32-bit package based on GDAL 1.11.0 which is the GDAL version QGIS is build against (the old package on OSGeo4W was built against GDAL 1.10) and tested in QGIS 2.3 (QGIS code revision 39eaff9). The problem is now the same, James described for the 64bit version. However, ogrinfo gives no error messages and displays the content of the SOSI file and all layers just fine. So maybe it is not only a packaging issue? James, what does your 64bit ogrinfo say when run with your SOSI file? And does ogr2ogr work for you in 64bit? Cheers Stefan From: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] On Behalf Of Stott, James Sent: 26. juni 2014 11:14 To: qgis-developer@lists.osgeo.org Subject: [Qgis-developer] SOSI support in QGIS Hi all, Just wondered if anything more has happened with this? As it stands, I get an option for SOSI files in the file open dialog of 64 bit master, but not 32 bit. (SOSI is the data standard in Norway for those that don’t know). In 64 bit, when I select a file for opening, it comes up with another dialog (similar to when you open up a gpx file) where you choose the geometry you want to load from the file. After I have selected what I want and push ok, I just get an error message saying that the data is not a valid data source. This happens on both mine and a colleagues machine. Does this affect others too? I have also installed the gdal-sosi package in osgeo4w. I am using Windows 7 64 Bit, osgeo4w for install. Current QGIS version is d4b07a. If SOSI files do not open in QGIS, we should remove the option from the open file dialog window. Otherwise I think people here in Norway will have a bad experience with QGIS and SOSI. Regards, James Stott ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] SOSI support in QGIS
So it Works for Mac and Linux users? Does this work with the installer download of QGIS for Windows? I havent actually tried that. Is it possible to drop it for just Windows users? I just think we will end up with a lot of users (especially as Windows will possbily be the most used platform) who will get frustrated that they cant open these files despite it looking like they should be able to. Better to wait until 2.6 in my opinion. This is a shame as we now have a nearly complete Norwegian translation in place for 2.4, so SOSI support and a translation are two very good arguements for adopting QGIS here. James From: Blumentrath, Stefan [stefan.blumentr...@nina.no] Sent: 27 June 2014 09:42 To: Stott, James; qgis-developer@lists.osgeo.org Subject: RE: SOSI support in QGIS Hi James, -Original Message- From: Stott, James I still do not get the option for SOSI files in 32 bit QGIS in the files of type drop down menu in the open file dialog window. The SOSI option is avaiable in 64 bit. That is because the gdal-sosi plugin in 32bit OSGeo4W was built against GDAL 1.10 (and not the 1.11 version QGIS 2.3 / 2.4 is (will be) using. I shall update the package based on GDAL 1.11 asap. The 64 bit version still gives the invalid data source error after trying to open the SOSI file. The SOSI file I have tested with is the naturvernområde dataset from Miljødirektoratet (I have downloaded only data for Rogaland fylke - data available from here http://karteksport.miljodirektoratet.no/#page=tab1). ogrinfo reports correctly on both 32 and 64 bit versions and ogr2ogr will convert sosi files to shapefiles in my test. I can confirm the behavior you describe on Windows (both 32 and 64bit). Given that GDAL (using the gdal-sosi plugin from OSGeo4W) handles SOSI files without problems, the issue must be somewhere in the QGIS-GDAL interface. No idea what the reason might be... Meanwhile I also tested on Ubuntu 12.04 LTS (where I compiled GDAL 1.11 with SOSI support and then the latest QGIS master). On Ubuntu I can open SOSI files in QGIS without any problems... So this is a Windows specific issue, which makes me think that dropping the option to open SOSI from QGIS completely would be a bit too radical... Cheers Stefan ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] SOSI support in QGIS
Hi all, Just wondered if anything more has happened with this? As it stands, I get an option for SOSI files in the file open dialog of 64 bit master, but not 32 bit. (SOSI is the data standard in Norway for those that don't know). In 64 bit, when I select a file for opening, it comes up with another dialog (similar to when you open up a gpx file) where you choose the geometry you want to load from the file. After I have selected what I want and push ok, I just get an error message saying that the data is not a valid data source. This happens on both mine and a colleagues machine. Does this affect others too? I have also installed the gdal-sosi package in osgeo4w. I am using Windows 7 64 Bit, osgeo4w for install. Current QGIS version is d4b07a. If SOSI files do not open in QGIS, we should remove the option from the open file dialog window. Otherwise I think people here in Norway will have a bad experience with QGIS and SOSI. Regards, James Stott ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] GDAL 1.11 new formats
Hi Stefan, Are you able to open SOSI files in QGIS? In 64 bit QGIS master (as you mentioned I don’t get the option for SOSI files in 32 bit), I get a dialog asking me if I want to load the points, lines or polygons from the SOSI file, but then I just get an error message telling me that it is not a valid data source. James Fra: Blumentrath, Stefan [mailto:stefan.blumentr...@nina.no] Sendt: 16. mai 2014 22:52 Til: Larry Shaffer Kopi: Jeff McKenna; qgis-developer@lists.osgeo.org; Stott, James Emne: RE: [Qgis-developer] GDAL 1.11 new formats Hi Larry, I tried now with QGIS 2.3 nightly build (2.3.0-81) in OSGeo4W. When I try to open a SOSI file in QGIS I still get the “Invalid Source” error message. The gdal-sosi-plugin package in OSGeo4W is built against GDAL 1.10. Can that be a problem? Will I have to rebuild the plugin against GDAL 1.11 in order to make it accessible for QGIS (ogrinfo --format lists SOSI). Or is the solution to install OSGeo4W from scratch? Any other ideas? Cheers Stefan From: la...@shafferinteractive.commailto:la...@shafferinteractive.com [mailto:la...@shafferinteractive.com] On Behalf Of Larry Shaffer Sent: 14. mai 2014 02:56 To: Stott, James Cc: Blumentrath, Stefan; Jeff McKenna; qgis-developer@lists.osgeo.orgmailto:qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] GDAL 1.11 new formats Hi, On Thu, May 8, 2014 at 12:03 AM, Stott, James fmro...@fylkesmannen.nomailto:fmro...@fylkesmannen.no wrote: I second Stefan's comments. Having direct SOSI support will really strengthen the position of QGIS here in Norway. We do a lot of work with SOSI, and it would be great to open (and eventually edit) SOSI files directly rather than having to convert them first. I added an extension filter for SOSI to QGIS master [0]. Also, for Mac, I added Homebrew formulae for the OpenFYBA lib (fyba) [1] and a GDAL/OGR shared plugin (gdal-sosi) [2]. The SOSI support was recently added to the base GDAL formula (gdal) [3], so recompiling it after installation of fyba will also work, e.g.: $ brew tap osgeo/osgeo4mac $ brew update Then... $ brew upgrade gdal -- this will install 1.11.0 'bottle,' if not already done $ brew install fyba $ brew install gdal-sosi -- installs ogr_SOSI.dylib plugin in HOMEBREW_PREFIX/lib/gdalplugins/ Or... $ brew install fyba $ brew reinstall gdal --build-from-source --enable-unsupported QGIS built against GDAL/OGR 1.11 with the sample .sos file loaded [4]. Please submit any issues with fyba or gdal-sosi formulae to OSGeo4Mac tracker [5]. [0] https://github.com/qgis/QGIS/commit/9804d17 [1] https://github.com/OSGeo/homebrew-osgeo4mac/commit/c93a2cf [2] https://github.com/OSGeo/homebrew-osgeo4mac/commit/0db85d8 [3] https://github.com/Homebrew/homebrew/blob/master/Library/Formula/gdal.rb#L187 [4] http://trac.osgeo.org/gdal/wiki/SOSI#TestingtheSOSIdriver , http://drive.dakotacarto.com/qgis/sosi.png [5] https://github.com/OSGeo/homebrew-osgeo4mac/issues Regards, Larry James -Opprinnelig melding- Fra: qgis-developer-boun...@lists.osgeo.orgmailto:qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.orgmailto:qgis-developer-boun...@lists.osgeo.org] På vegne av Blumentrath, Stefan Sendt: 7. mai 2014 23:36 Til: Jeff McKenna; qgis-developer@lists.osgeo.orgmailto:qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] GDAL 1.11 new formats Yes, though I have to admit that I have no experience with building GDAL with SOSI support on Mac, but I know that the underling OpenFYBA lib has been successfully build on Mac, so I assume the Unix build hints should apply for Mac also for GDAL/OGR. Probably I should note, that the free map data of the Norwegian Mapping Authority (http://data.kartverket.no/download/) also come in SOSI format (vector)... Cheers Stefan -Original Message- From: qgis-developer-boun...@lists.osgeo.orgmailto:qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.orgmailto:qgis-developer-boun...@lists.osgeo.org] On Behalf Of Jeff McKenna Sent: 7. mai 2014 22:56 To: qgis-developer@lists.osgeo.orgmailto:qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] GDAL 1.11 new formats On 2014-05-07, 5:31 PM, Blumentrath, Stefan wrote: The Norwegian SOSI format (Vector) is also new - or more precise improved - in terms of build process in GDAL 1.11. On windows, it is now supported as a GDAL plugin and available in OSGeo4W. On Linux / Mac it still has to be built from source with an external library dependency (https://github.com/kartverket/fyba). SOSI is a bit peculiar, but it is the format of the official map data in Norway, used by public authorities. The driver says it is Read/Write but writing is not fully implemented (yet). It would be splendid to be able to open SOSI files directly in QGIS (see also http://hub.qgis.org/issues/3708) and also write it once the public mapping authority fully implements the driver
Re: [Qgis-developer] GDAL 1.11 new formats
I second Stefan's comments. Having direct SOSI support will really strengthen the position of QGIS here in Norway. We do a lot of work with SOSI, and it would be great to open (and eventually edit) SOSI files directly rather than having to convert them first. James -Opprinnelig melding- Fra: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av Blumentrath, Stefan Sendt: 7. mai 2014 23:36 Til: Jeff McKenna; qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] GDAL 1.11 new formats Yes, though I have to admit that I have no experience with building GDAL with SOSI support on Mac, but I know that the underling OpenFYBA lib has been successfully build on Mac, so I assume the Unix build hints should apply for Mac also for GDAL/OGR. Probably I should note, that the free map data of the Norwegian Mapping Authority (http://data.kartverket.no/download/) also come in SOSI format (vector)... Cheers Stefan -Original Message- From: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] On Behalf Of Jeff McKenna Sent: 7. mai 2014 22:56 To: qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] GDAL 1.11 new formats On 2014-05-07, 5:31 PM, Blumentrath, Stefan wrote: The Norwegian SOSI format (Vector) is also new - or more precise improved - in terms of build process in GDAL 1.11. On windows, it is now supported as a GDAL plugin and available in OSGeo4W. On Linux / Mac it still has to be built from source with an external library dependency (https://github.com/kartverket/fyba). SOSI is a bit peculiar, but it is the format of the official map data in Norway, used by public authorities. The driver says it is Read/Write but writing is not fully implemented (yet). It would be splendid to be able to open SOSI files directly in QGIS (see also http://hub.qgis.org/issues/3708) and also write it once the public mapping authority fully implements the driver... Hello Stefan, That is very interesting. Are all of your notes included on the GDAL Buildhints page, for Windows and Linux/Mac? http://trac.osgeo.org/gdal/wiki/SOSI -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] working with qgis and pgadmin/psql...
This was the problem I was having a few months ago before 2.2 was released. I would run queries and they would never disappear on the server. So eventually the queries would stop running as the number of connections reached 100. I only got around it by adding layers and specifying that the layer does not look for styles in the PostGIS database (the False at the end there). vlayer = QgsVectorLayer(uri.uri(), layerName, postgres, False) I don't know if it is related to the code that looks for styles in the database, and if doesn't find one it doesn't shut down the connection? James -Opprinnelig melding- Fra: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av Giovanni Manghi Sendt: 10. april 2014 13:46 Til: qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] working with qgis and pgadmin/psql... Yes - here's some more info/bug reports: http://hub.qgis.org/issues/7679 http://osgeo-org.1560.x6.nabble.com/Issue-with-standalone-python-scrip t-and-PostGIS-Layers-td5098329.html http://hub.qgis.org/issues/9357 I see now that in pgadmin - tools - server status there are a lot of locks after adding postgis layers in qgis and that they do disappear only when closing qgis itself. Pressing new project does not remove the locks. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Issue with standalone python script and PostGIS Layers
Just a follow up to this if other people ever have trouble with this. I have managed to load my query layers by specifying False for the loadDefaultStyleFlag parameter when I create the QgsVectorLayer. So vlayer = QgsVectorLayer(uri.uri(), layerName, postgres, False) This parameter stops QGIS from checking if there are styles in the database, and thus means that it doesn't run loads of queries that it then doesn't close. QGIS still needs to unload some of the connections that it creates when searching for styles when loading query layers (if you don't specify the False for the loadDefaultStyleFlag), so I believe the bug is still valid, but this is a workaround so that is good. I also wonder if True is the right default for the loadDefaultStyleFlag parameter? It would be good to get details about this parameter added to http://www.qgis.org/en/docs/pyqgis_developer_cookbook/loadlayer.html Is this something I can add myself? James Fra: Stott James Sendt: 24. januar 2014 15:24 Til: qgis-developer@lists.osgeo.org Emne: SV: [Qgis-developer] Issue with standalone python script and PostGIS Layers Following on from reporting the bug, I have done more digging into the problem. It seems to be related to styleQML lines when I check what connections are being sent to PostGIS. These don't disappear with each loop iteration in Master, but they do in version 2.0. Eventually when my script gets to 100 connections, it hangs. What can I do to make this work? I have updated the bug report with more details, which can be found here https://hub.qgis.org/issues/9357. James Fra: qgis-developer-boun...@lists.osgeo.orgmailto:qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av Stott James Sendt: 16. januar 2014 14:23 Til: Tim Sutton Kopi: qgis-developer@lists.osgeo.orgmailto:qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] Issue with standalone python script and PostGIS Layers Thanks for the response Tim. I have not been destroying my layers. This has not been an issue when running the plugin with 2.0. This was the first thing I thought about in the version running against master so I added the following code to close the postgis layers as it once I am finished with them: QgsMapLayerRegistry.instance().removeMapLayer(layer_id) This has not made it difference. It still hangs at the same place and I still get the warning that there is already too many clients when trying to connect to PostGIS with DB Manager or pgAdmin. Shall I open a bug? Fra: Tim Sutton [mailto:li...@linfiniti.com] Sendt: 16. januar 2014 13:30 Til: Stott James Kopi: qgis-developer@lists.osgeo.orgmailto:qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] Issue with standalone python script and PostGIS Layers Hi On Thu, Jan 16, 2014 at 11:06 AM, Stott James fmro...@fylkesmannen.nomailto:fmro...@fylkesmannen.no wrote: Hello all, I have a standalone python script that creates a bunch of PDFs for me. Recently this script has developed an issue. It uses QGIS-dev so it could be related to some of the changes in master recently as it works fine with QGIS 2.0. It makes about 42 PDFs then it stops. It is not actually crashing as such, as you can see it running in task manager. It stays running using between 0 and 2% processor, and fluctuates a little with memory use (around 108840kB). But it does not produce any more PDFs. It is like it is stuck. From the log file that my script creates, I know that it is hanging with this line of code: vlayer = QgsVectorLayer(uri.uri(), layerName, postgres) If I try and connect to the database using DB Manager in QGIS or pgAdmin III while the script is still running, I get an error saying there is already too many clients already. If I kill the process in windows task manager, I am then able to connect to the database using DB manager. Has anyone any suggestions as to what is wrong here? Is this a bug? I updated QGIS dev this morning using the OSGeo4W installer (its revision is eb9ce3a). If you are creating postgis layers in a loop, are you making sure to destroy them again nicely in your loop? Anyway if it used to work before maybe there was a regression somewhere Regards Tim James Stott GIS-koordinator Administrasjonsavdelinga Fylkesmannen i Rogaland Telefon: 51568793 james.st...@fylkesmannen.nomailto:james.st...@fylkesmannen.no http://www.temakart-rogaland.no ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.orgmailto:Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Tim Sutton - QGIS Project Steering Committee Member == Please do not email me off-list with technical support questions. Using the lists will gain more exposure for your issues and the knowledge surrounding your issue will be shared with all. Irc: timlinux on #qgis at freenode.nethttp://freenode.net
Re: [Qgis-developer] blockers list, almost done!
For me this is also a regression from 2.0 but it is down as high priority for future release. This was working fine in 2.0. http://hub.qgis.org/issues/9357 I know it will stop me upgrading to 2.2 for this one script I have. 4 months isn't so long to wait for 2.4 if it can't be fixed for 2.2 I guess :) James -Opprinnelig melding- Fra: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av Paolo Cavallini Sendt: 19. februar 2014 07:41 Til: qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] blockers list, almost done! Il 18/02/2014 20:09, Giovanni Manghi ha scritto: one is probably already fixed (9526), another it seems it is being worked on by Alvaro (9581) and a third one (9060) it is pretty serious because it causes to have areas (and distances) computed wrong when otfr is on. I would like to know is someone is going to have a look to #9060 before the new release because it is a pretty serious issue in qgis 2.0.1 Good news! There is also http://hub.qgis.org/issues/9324 but it does not seem to me serious enough to really block us. Any hope to have all 4 fixed within 1.5 days? All the best. -- Paolo Cavallini - www.faunalia.eu QGIS PostGIS courses: http://www.faunalia.eu/training.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Master on OSGeo4W
Just wanted to check if there were any problems with updates to master. Haven't had an update for a couple of days now and its obviously important at the moment so we can check for bugs. From a personal point of view it is also very useful to be able to see my translations within the software. James ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] PostGIS layers and styles saved in the database
Hi all, Is it possible to stop QGIS (master) checking for styles in a PostGIS database when I load a PostGIS layer with a python script? Many thanks, James ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Consistency in adding layers (especially OGC)
I believe this is how uDig does it too. Maybe good to have a look at uDig for inspiration as well? http://www.ogcnetwork.net/img/ogcn/wfs_tut_02-adddatawfs.png Fra: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av A Huarte Sendt: 29. januar 2014 14:13 Til: Jonathan Moules Kopi: qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] Consistency in adding layers (especially OGC) Time to develop it :-) De: Jonathan Moules jonathanmou...@warwickshire.gov.ukmailto:jonathanmou...@warwickshire.gov.uk Para: A Huarte ahuart...@yahoo.esmailto:ahuart...@yahoo.es CC: Nathan Woodrow madman...@gmail.commailto:madman...@gmail.com; qgis-developer@lists.osgeo.orgmailto:qgis-developer@lists.osgeo.org qgis-developer@lists.osgeo.orgmailto:qgis-developer@lists.osgeo.org Enviado: Miércoles 29 de enero de 2014 14:03 Asunto: Re: [Qgis-developer] Consistency in adding layers (especially OGC) Hi Alvaro, That seems really interesting, hopefully something similar thing can be created for QGIS. Your video shows how slick it can be. I've created a fairly bland issue for this - http://hub.qgis.org/issues/9451 What's next? Cheers, Jonathan On 28 January 2014 15:19, A Huarte ahuart...@yahoo.esmailto:ahuart...@yahoo.es wrote: +1 to create an universal dialog for adding layers (or folder of files/layers) I have resolved the same problem in a personal application integrating all formats and types in a single loading form. Basically each provider offers a PropertyPage collection to build the ConnectionString that each provider know to open. I attach a short video to show the idea (~2.5 mb). http://www.filedropper.com/GenericCadgisLoadingDialog Best Regards Alvaro De: Jonathan Moules jonathanmou...@warwickshire.gov.ukmailto:jonathanmou...@warwickshire.gov.uk Para: Nathan Woodrow madman...@gmail.commailto:madman...@gmail.com CC: qgis-developer@lists.osgeo.orgmailto:qgis-developer@lists.osgeo.org qgis-developer@lists.osgeo.orgmailto:qgis-developer@lists.osgeo.org Enviado: Martes 28 de enero de 2014 11:57 Asunto: Re: [Qgis-developer] Consistency in adding layers (especially OGC) Hi Nathan, Unfortunately my talent lies with finding flaws and suggesting tweaks/improvements to things rather than designing UI's. I'm more than happy to offer feedback. Is there any way to spur this along? We have a limited amount of commercial support (we're a local authority going through austerity measures- budgets dwindling); this would be good to see in 2.4 if possible. Cheers, Jonathan On 28 January 2014 10:39, Nathan Woodrow madman...@gmail.commailto:madman...@gmail.com wrote: Hey Jonathan, Yes this is a bit of a known issue. It has always been a goal of mine to try and tackle the issue of refactoring the whole lot into single dialog.I have some early dialog mockups floating around that you might be able to find, although I would tweak it a bit now. If you have some ideas for a new single UI it would be good to have a look, or even if you just have ideas on what you want to see. - Nathan On Tue, Jan 28, 2014 at 8:03 PM, Jonathan Moules jonathanmou...@warwickshire.gov.ukmailto:jonathanmou...@warwickshire.gov.uk wrote: Hi List, This may be too late for 2.2 (some are features), but something that's bugging me no end is the complete lack of consistency between all the dialogs for the OGC services. Below I've created a somewhat exhaustive list of differences-that-shouldn't-be between the way they behave - mostly the add-layer dialog. However, rather than rectify the issues, would it maybe make more sense to just create a single new dialog from scratch and use that instead? Ideally for all formats, but if necessary, just the OGC stuff. What are the plans relating to add-layer dialogs? Is there a preferred option? Or will/desire to create a universal dialog for adding layers? Cheers, Jonathan - Adding Layers: Add/Close buttons For WCS these are the wrong way around! Layer Title|Name: - For WMS, WCS - use the layer Title rather than the layer Name when adding to the layers list (WFS WMTS already do this). - Either add Use title for layer name checkbox to WMS/WMTS, WCS, or remove from WFS. - WMS seems to allow you to fill in a Layer name - add to other dialogs? If so, make it more obvious what it does. Filter: Add Filter function for WMS, WMTS, WCS (already exists for WFS). Differentiate windows: http://hub.qgis.org/issues/9193 Tabs: WCS: Remove Layers tab as pointless. WMS/WMTS - I have no idea what Server Search or Layer order do - never seen them active. CRS: All - Make CRS section same between dialogs. WMS - why is Tile Size and Feature limit for GetFeatureInfo inside the CRS box? Format: WCS or WMS/WMTS - Use same method for selecting format. One uses dropdown (WCS), one uses checkboxes. I guess WFS doesn't need this option. Column list: All - In list of
Re: [Qgis-developer] Issue with standalone python script and PostGIS Layers
Following on from reporting the bug, I have done more digging into the problem. It seems to be related to styleQML lines when I check what connections are being sent to PostGIS. These don't disappear with each loop iteration in Master, but they do in version 2.0. Eventually when my script gets to 100 connections, it hangs. What can I do to make this work? I have updated the bug report with more details, which can be found here https://hub.qgis.org/issues/9357. James Fra: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av Stott James Sendt: 16. januar 2014 14:23 Til: Tim Sutton Kopi: qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] Issue with standalone python script and PostGIS Layers Thanks for the response Tim. I have not been destroying my layers. This has not been an issue when running the plugin with 2.0. This was the first thing I thought about in the version running against master so I added the following code to close the postgis layers as it once I am finished with them: QgsMapLayerRegistry.instance().removeMapLayer(layer_id) This has not made it difference. It still hangs at the same place and I still get the warning that there is already too many clients when trying to connect to PostGIS with DB Manager or pgAdmin. Shall I open a bug? Fra: Tim Sutton [mailto:li...@linfiniti.com] Sendt: 16. januar 2014 13:30 Til: Stott James Kopi: qgis-developer@lists.osgeo.orgmailto:qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] Issue with standalone python script and PostGIS Layers Hi On Thu, Jan 16, 2014 at 11:06 AM, Stott James fmro...@fylkesmannen.nomailto:fmro...@fylkesmannen.no wrote: Hello all, I have a standalone python script that creates a bunch of PDFs for me. Recently this script has developed an issue. It uses QGIS-dev so it could be related to some of the changes in master recently as it works fine with QGIS 2.0. It makes about 42 PDFs then it stops. It is not actually crashing as such, as you can see it running in task manager. It stays running using between 0 and 2% processor, and fluctuates a little with memory use (around 108840kB). But it does not produce any more PDFs. It is like it is stuck. From the log file that my script creates, I know that it is hanging with this line of code: vlayer = QgsVectorLayer(uri.uri(), layerName, postgres) If I try and connect to the database using DB Manager in QGIS or pgAdmin III while the script is still running, I get an error saying there is already too many clients already. If I kill the process in windows task manager, I am then able to connect to the database using DB manager. Has anyone any suggestions as to what is wrong here? Is this a bug? I updated QGIS dev this morning using the OSGeo4W installer (its revision is eb9ce3a). If you are creating postgis layers in a loop, are you making sure to destroy them again nicely in your loop? Anyway if it used to work before maybe there was a regression somewhere Regards Tim James Stott GIS-koordinator Administrasjonsavdelinga Fylkesmannen i Rogaland Telefon: 51568793 james.st...@fylkesmannen.nomailto:james.st...@fylkesmannen.no http://www.temakart-rogaland.no ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.orgmailto:Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Tim Sutton - QGIS Project Steering Committee Member == Please do not email me off-list with technical support questions. Using the lists will gain more exposure for your issues and the knowledge surrounding your issue will be shared with all. Irc: timlinux on #qgis at freenode.nethttp://freenode.net == ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Issue with standalone python script and PostGIS Layers
Hello all, I have a standalone python script that creates a bunch of PDFs for me. Recently this script has developed an issue. It uses QGIS-dev so it could be related to some of the changes in master recently as it works fine with QGIS 2.0. It makes about 42 PDFs then it stops. It is not actually crashing as such, as you can see it running in task manager. It stays running using between 0 and 2% processor, and fluctuates a little with memory use (around 108840kB). But it does not produce any more PDFs. It is like it is stuck. From the log file that my script creates, I know that it is hanging with this line of code: vlayer = QgsVectorLayer(uri.uri(), layerName, postgres) If I try and connect to the database using DB Manager in QGIS or pgAdmin III while the script is still running, I get an error saying there is already too many clients already. If I kill the process in windows task manager, I am then able to connect to the database using DB manager. Has anyone any suggestions as to what is wrong here? Is this a bug? I updated QGIS dev this morning using the OSGeo4W installer (its revision is eb9ce3a). James Stott GIS-koordinator Administrasjonsavdelinga Fylkesmannen i Rogaland Telefon: 51568793 james.st...@fylkesmannen.nomailto:james.st...@fylkesmannen.no http://www.temakart-rogaland.no ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Issue with standalone python script and PostGIS Layers
Thanks for the response Tim. I have not been destroying my layers. This has not been an issue when running the plugin with 2.0. This was the first thing I thought about in the version running against master so I added the following code to close the postgis layers as it once I am finished with them: QgsMapLayerRegistry.instance().removeMapLayer(layer_id) This has not made it difference. It still hangs at the same place and I still get the warning that there is already too many clients when trying to connect to PostGIS with DB Manager or pgAdmin. Shall I open a bug? Fra: Tim Sutton [mailto:li...@linfiniti.com] Sendt: 16. januar 2014 13:30 Til: Stott James Kopi: qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] Issue with standalone python script and PostGIS Layers Hi On Thu, Jan 16, 2014 at 11:06 AM, Stott James fmro...@fylkesmannen.nomailto:fmro...@fylkesmannen.no wrote: Hello all, I have a standalone python script that creates a bunch of PDFs for me. Recently this script has developed an issue. It uses QGIS-dev so it could be related to some of the changes in master recently as it works fine with QGIS 2.0. It makes about 42 PDFs then it stops. It is not actually crashing as such, as you can see it running in task manager. It stays running using between 0 and 2% processor, and fluctuates a little with memory use (around 108840kB). But it does not produce any more PDFs. It is like it is stuck. From the log file that my script creates, I know that it is hanging with this line of code: vlayer = QgsVectorLayer(uri.uri(), layerName, postgres) If I try and connect to the database using DB Manager in QGIS or pgAdmin III while the script is still running, I get an error saying there is already too many clients already. If I kill the process in windows task manager, I am then able to connect to the database using DB manager. Has anyone any suggestions as to what is wrong here? Is this a bug? I updated QGIS dev this morning using the OSGeo4W installer (its revision is eb9ce3a). If you are creating postgis layers in a loop, are you making sure to destroy them again nicely in your loop? Anyway if it used to work before maybe there was a regression somewhere Regards Tim James Stott GIS-koordinator Administrasjonsavdelinga Fylkesmannen i Rogaland Telefon: 51568793 james.st...@fylkesmannen.nomailto:james.st...@fylkesmannen.no http://www.temakart-rogaland.no ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.orgmailto:Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Tim Sutton - QGIS Project Steering Committee Member == Please do not email me off-list with technical support questions. Using the lists will gain more exposure for your issues and the knowledge surrounding your issue will be shared with all. Irc: timlinux on #qgis at freenode.nethttp://freenode.net == ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Issue with standalone python script and PostGIS Layers
Done http://hub.qgis.org/issues/9357 Fra: Tim Sutton [mailto:li...@linfiniti.com] Sendt: 16. januar 2014 14:49 Til: Stott James Kopi: qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] Issue with standalone python script and PostGIS Layers Hi On Thu, Jan 16, 2014 at 3:23 PM, Stott James fmro...@fylkesmannen.nomailto:fmro...@fylkesmannen.no wrote: Thanks for the response Tim. I have not been destroying my layers. This has not been an issue when running the plugin with 2.0. This was the first thing I thought about in the version running against master so I added the following code to close the postgis layers as it once I am finished with them: QgsMapLayerRegistry.instance().removeMapLayer(layer_id) This has not made it difference. It still hangs at the same place and I still get the warning that there is already too many clients when trying to connect to PostGIS with DB Manager or pgAdmin. Shall I open a bug? Yes it sounds like a bug to me. Regards Tim Fra: Tim Sutton [mailto:li...@linfiniti.commailto:li...@linfiniti.com] Sendt: 16. januar 2014 13:30 Til: Stott James Kopi: qgis-developer@lists.osgeo.orgmailto:qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] Issue with standalone python script and PostGIS Layers Hi On Thu, Jan 16, 2014 at 11:06 AM, Stott James fmro...@fylkesmannen.nomailto:fmro...@fylkesmannen.no wrote: Hello all, I have a standalone python script that creates a bunch of PDFs for me. Recently this script has developed an issue. It uses QGIS-dev so it could be related to some of the changes in master recently as it works fine with QGIS 2.0. It makes about 42 PDFs then it stops. It is not actually crashing as such, as you can see it running in task manager. It stays running using between 0 and 2% processor, and fluctuates a little with memory use (around 108840kB). But it does not produce any more PDFs. It is like it is stuck. From the log file that my script creates, I know that it is hanging with this line of code: vlayer = QgsVectorLayer(uri.uri(), layerName, postgres) If I try and connect to the database using DB Manager in QGIS or pgAdmin III while the script is still running, I get an error saying there is already too many clients already. If I kill the process in windows task manager, I am then able to connect to the database using DB manager. Has anyone any suggestions as to what is wrong here? Is this a bug? I updated QGIS dev this morning using the OSGeo4W installer (its revision is eb9ce3a). If you are creating postgis layers in a loop, are you making sure to destroy them again nicely in your loop? Anyway if it used to work before maybe there was a regression somewhere Regards Tim James Stott GIS-koordinator Administrasjonsavdelinga Fylkesmannen i Rogaland Telefon: 51568793 james.st...@fylkesmannen.nomailto:james.st...@fylkesmannen.no http://www.temakart-rogaland.no ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.orgmailto:Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Tim Sutton - QGIS Project Steering Committee Member == Please do not email me off-list with technical support questions. Using the lists will gain more exposure for your issues and the knowledge surrounding your issue will be shared with all. Irc: timlinux on #qgis at freenode.nethttp://freenode.net == -- Tim Sutton - QGIS Project Steering Committee Member == Please do not email me off-list with technical support questions. Using the lists will gain more exposure for your issues and the knowledge surrounding your issue will be shared with all. Irc: timlinux on #qgis at freenode.nethttp://freenode.net == ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QGIS 2 becomes slow and freezes when editing and saving PostGIS layers
This happened to me in 1.8, but was never able to pin down why. QGIS would become responsive again after a while, and the slow down when you tried to save the next edit. It was with point layers that I had the problem with. Not sure if it affected lines or polygons. Had to close down QGIS and open again. -Opprinnelig melding- Fra: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av Régis Haubourg Sendt: 9. november 2013 09:19 Til: qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] QGIS 2 becomes slow and freezes when editing and saving PostGIS layers Hi, I 've never seen that in 1.8, this is really related to new versions for sure. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/QGIS-2-becomes-slow-and-freezes-when-editing-and-saving-PostGIS-layers-tp5088286p5088323.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] PyQGIS and checking WMS layers have data
Thanks for the suggestion. I have taken a slightly different approach, and I am checking the file size of my PDFs using the following: os.path.getsize(file) There is an obvious difference between the file sizes of the PDFs where the wms loaded, and those where it failed. If the pdf is too small, it tries to create it again. Hopefully it won't get stuck in a loop where if it fails once it will always fail!! James Fra: Gino Pirelli [mailto:lui...@gmail.com] Sendt: 9. oktober 2013 20:30 Til: Stott James Kopi: qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] PyQGIS and checking WMS layers have data probally solution is connecting to the slots of the QgsRasterLayer class public slots: void showStatusMessage( const QString theMessage ); /** \brief Propagate progress updates from GDAL up to the parent app */ void updateProgress( int, int ); /** \brief receive progress signal from provider */ void onProgress( int, double, QString ); ciao Luigi Pirelli (luigi.pire...@faunalia.itmailto:luigi.pire...@faunalia.it) ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] PyQGIS and checking WMS layers have data
Hi all, I have a loop in my code that makes PDFs for a number of polygons and the base mapping comes from an aerial photography WMS. So for each polygon, the python code moves the map to the extent of that polygon and the makes a PDF. However, some of my maps end up with white backgrounds where the aerial photography hasn't loaded/displayed. Is it possible to make sure that a WMS has loaded its data before a PDF is made in python? Or does the problem lie with the network connection at the time that PDF is made? Is there any way I can catch these instances and maybe load the WMS again? The last time I ran the script, of the 1465 PDFs it created, about 21 had a white base map, so generally it works really really well. I have checked that there is actually data for these 21 areas, and there is. It also seems to be different areas that do not load each time I run the script. Many thanks James ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Layer combo box
There is an excellent module for this here: http://3nids.github.io/qgiscombomanager/ James -Opprinnelig melding- Fra: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av Radim Blazek Sendt: 4. oktober 2013 12:11 Til: qgis-developer Emne: [Qgis-developer] Layer combo box Do we have a class which keeps a combo box updated with list of layers in legend? I.e. updates the list if layer is added/removed. Similar for combo box with fields of a layer selected above? Radim ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] prepaid SIM with data
I use giffgaff whenever I head to the UK. http://giffgaff.com/ You can get a £10 goodybag with 1gb data, or £12 for unlimited (http://giffgaff.com/index/offer ). -Opprinnelig melding- Fra: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av Marco Bernasocchi Sendt: 11. september 2013 13:23 Til: qgis-developer; Saber Razmjooei Emne: [Qgis-developer] prepaid SIM with data Hi Saber, all, do you have any suggestions for a cheap sim card with data (unlimited maybe) to use the next 10 UK days? ciao -- Marco Bernasocchi http://opengis.ch ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Panel Browser is doubled?
I have this as well. Installed via OSGeo4W. -Opprinnelig melding- Fra: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av Régis Haubourg Sendt: 1. august 2013 12:10 Til: qgis-developer@lists.osgeo.org Emne: [Qgis-developer] Panel Browser is doubled? Hi, I have two browser panels available here , is that related to my install or config? They are named Browser and Browser (2). Cheers Régis -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Panel-Browser-is-doubled-tp5070165.html Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] [Qgis-user] [Plugin presentation] LayerCombination
Man I wish this had existed about a year and a half ago. Especially the fact that it integrates into the composers too. I have always felt that was something that was needed - an easy way to edit the locked layers in a composer map - hence why I wrote a plugin for it. Think I may well not bother update the locked layers editor plugin to 2.0 seeing as you have made this. This is much better. James Fra: qgis-user-boun...@lists.osgeo.org [mailto:qgis-user-boun...@lists.osgeo.org] På vegne av Lene Fischer Sendt: 17. juli 2013 04:41 Til: Olivier Dalang Kopi: qgis-user; qgis-developer@lists.osgeo.org Emne: Re: [Qgis-user] [Plugin presentation] LayerCombination Wauuh What a plugin. Can't wait to use it. My studens work on big projects with many layers from differe nt timeperiods. This will help ! Good idea with the small video. Regards Lene Fischer Sendt fra min iPad Den 17/07/2013 kl. 01.51 skrev Olivier Dalang olivier.dal...@gmail.commailto:olivier.dal...@gmail.com: Dear Mailing list, I've been working on a python plugin called Layer Combinations, which I'd love to release as stable for QGIS 2.0 (it's still flagged as experimental). Since it's a workflow enhancement plugin, I thought it could be of some interest to most of you. If so, I invite you to try the latest version (0.8, requires QGIS nightly/master), and report any bugs or ideas on the tracker : https://github.com/olivierdalang/layerCombinations You'll find a small explanation of the plugin below, and a video trailer here : https://vimeo.com/70446444 Thanks for your attention ! Olivier ## LayerCombinations## It allows to store the visibility and the folding state of the layers in the legend in so called combinations. Those combination can then be restored, allowing to switch back and forth complex setups. The combinations can also be applied to composer maps. The link is dynamic, which means that if the combination is updated, the composer map will automatically reflect the modifications. I find it very handy for big projects with many layers and several print composers. Hope you like it ! ___ Qgis-user mailing list qgis-u...@lists.osgeo.orgmailto:qgis-u...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Labels from loadNamedStyle()
Hi, Is anyone else still having problems with this bug http://hub.qgis.org/issues/6468? I am writing a standalone python program, and my code loads a style from a .qml file, but the labels do not display when the maps are rendered to a .jpg. The polygons have the correct styling (border etc), but not the labels. I am using new style labeling. The labels load correctly within QGIS GUI, but not in the python code. I am using QGIS master from OSGeo4W, updated today. Thanks James Stott ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Dev plugin for master
I had quite a few problems getting my plugin to be 2.0 compatible in the plugin installer. I found that I had ‘authorName’ in my metadata.txt file, not ‘author’. I believe you also need ‘email’ filled in too. I would check the metadata.txt file and make sure it’s the same as the example online here: http://hub.qgis.org/wiki/quantum-gis/Python_plugin_API_changes_from_18_to_20 Fra: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av Denis Rouzaud Sendt: 26. juni 2013 14:30 Til: Marco Bernasocchi Kopi: qgis-developer Emne: Re: [Qgis-developer] Dev plugin for master You are correct, you need to set qgisMinimumVersion to 2.0 How old is your master version? Things have changed quickly last weeks... On 06/26/2013 02:26 PM, Marco Bernasocchi wrote: IIRC 2.0 was mentioned to be hardcoded temporarily in plugin manager by Boris. I definitely have a plugin with minVersion=2.0 the warning is different as well IIRC. maybe something else? like sipV1 vs sip v2? (speculation) Marco Bernasocchi (mobile) http://opengis.ch On Jun 26, 2013 2:19 PM, Werner Macho werner.ma...@gmail.commailto:werner.ma...@gmail.com wrote: There is no 2.0 version right now .. IIRC minimum version right now (to be able to use it in master) should be 1.9) hope this solves your problem kind regards Werner On Wed, Jun 26, 2013 at 2:01 PM, PIERRE Sylvain sylvain.pie...@cg67.frmailto:sylvain.pie...@cg67.fr wrote: Hi, I’m trying to develop a small plugin for master. I have set qgisMinimumVersion to 2.0 and stored the plugin in .qgis2\python\plugins but running Qgis does : This plugin is incompatible with this version of QGIS Plugin designed for QGIS 1.x ThemeManager Installed version: ? (in C:/Users/sylvain.pierre/.qgis2/python/plugins/ThemeManager) What should be the solution? Thanks → Sylvain PIERRE Ingénieur Géographe Adjoint au chef du service Direction de l’Agriculture, de l’Espace Rural et de l’Environnement Service Administration Générale Conseil Général du Bas-Rhin http://www.bas-rhin.fr/ Passerelle 67 20 rue Livio / 67000 Strasbourg Tél : +33 3 88 76 68 88 – mobile : Fax : 03 88 76 68 71 Email : sylvain.pie...@cg67.frhttp://www.bas-rhin.fr/ http://www.bas-rhin.fr/ http://www.bas-rhin.fr/ ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developerhttp://www.bas-rhin.fr/ http://www.bas-rhin.fr/ ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developerhttp://www.bas-rhin.fr/ http://www.bas-rhin.fr/ ___http://www.bas-rhin.fr/ Qgis-developer mailing listhttp://www.bas-rhin.fr/ Qgis-developer@lists.osgeo.orghttp://www.bas-rhin.fr/ http://lists.osgeo.org/mailman/listinfo/qgis-developerhttp://www.bas-rhin.fr/ http://www.bas-rhin.fr/ ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Problems with Atlas and Map dimensions on composer using Python
Hi Vincent, Done. http://hub.qgis.org/issues/8154 Thanks, James -Opprinnelig melding- Fra: Vincent Picavet [mailto:vincent...@oslandia.com] Sendt: 24. juni 2013 16:55 Til: qgis-developer@lists.osgeo.org Kopi: Stott James Emne: Re: [Qgis-developer] Problems with Atlas and Map dimensions on composer using Python Hello James, Could you open a ticket for that problem on QGIS bugtracker, and attach your files there ? Thanks, Vincent Le lundi 24 juin 2013 16:44:37, Stott James a écrit : Hi all, Is anyone else having problems with using atlas with python? I am writing some python code that uses the Atlas functionality in master to create a PDF / jpg for each of my 5000 records. I can produce a jpg/pdf for each feature, however the composerMap object does not stay the same size. I found this bug report which describes the issue. This report is listed as fixed: http://hub.qgis.org/issues/6956 I have set the following two lines in my code: myAtlas.setFixedScale( False ) myAtlas.setMargin(0.1) If I set this up from within QGIS, it works perfectly. It is only through Python I have problems. Here are the example exported jpgs: Generated inside QGIS GUI https://docs.google.com/file/d/0B6r5nAOdEBZrbFk0UUdxOVdTRVk/edit?usp=s harin g Generated from python https://docs.google.com/file/d/0B6r5nAOdEBZrZVJmWlpBb1c4Q2M/edit?usp=s harin g I have also included a stripped down version of my code, along with a sample shapefile (this isn't the data I am planning to use it with, but it doesn't work with either the sample or the real data). https://docs.google.com/file/d/0B6r5nAOdEBZrRUpzZm81cU1pUkk/edit?usp=s harin g Using master, updated today from OsGeo4W. Many thanks, James Stott ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Problems with Atlas and Map dimensions on composer using Python
Hi all, Is anyone else having problems with using atlas with python? I am writing some python code that uses the Atlas functionality in master to create a PDF / jpg for each of my 5000 records. I can produce a jpg/pdf for each feature, however the composerMap object does not stay the same size. I found this bug report which describes the issue. This report is listed as fixed: http://hub.qgis.org/issues/6956 I have set the following two lines in my code: myAtlas.setFixedScale( False ) myAtlas.setMargin(0.1) If I set this up from within QGIS, it works perfectly. It is only through Python I have problems. Here are the example exported jpgs: Generated inside QGIS GUI https://docs.google.com/file/d/0B6r5nAOdEBZrbFk0UUdxOVdTRVk/edit?usp=sharing Generated from python https://docs.google.com/file/d/0B6r5nAOdEBZrZVJmWlpBb1c4Q2M/edit?usp=sharing I have also included a stripped down version of my code, along with a sample shapefile (this isn't the data I am planning to use it with, but it doesn't work with either the sample or the real data). https://docs.google.com/file/d/0B6r5nAOdEBZrRUpzZm81cU1pUkk/edit?usp=sharing Using master, updated today from OsGeo4W. Many thanks, James Stott ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] OSGeo4W QGIS 1.8 Doesnt Work
Hi all, I have noticed that since I updated OSGeo4W yesterday, I cannot launch QGIS 1.8. It stops loading when the splash screen gets to Loading Python. I also get the following error when trying to run a python script from the OSGeo4W shell: G:\zip_data_test.py Traceback (most recent call last): File C:\OSGeo4W\\apps\Python27\lib\site.py, line 563, in module main() File C:\OSGeo4W\\apps\Python27\lib\site.py, line 545, in main known_paths = addusersitepackages(known_paths) File C:\OSGeo4W\\apps\Python27\lib\site.py, line 278, in addusersitepackages user_site = getusersitepackages() File C:\OSGeo4W\\apps\Python27\lib\site.py, line 253, in getusersitepackages user_base = getuserbase() # this will also set USER_BASE File C:\OSGeo4W\\apps\Python27\lib\site.py, line 243, in getuserbase USER_BASE = get_config_var('userbase') File C:\OSGeo4W\apps\Python27\lib\sysconfig.py, line 472, in get_config_var return get_config_vars().get(name) File C:\OSGeo4W\apps\Python27\lib\sysconfig.py, line 405, in get_config_vars import re File C:\OSGeo4W\apps\Python27\lib\re.py, line 105, in module import sre_compile File C:\OSGeo4W\apps\Python27\lib\sre_compile.py, line 14, in module import sre_parse File C:\OSGeo4W\apps\Python27\lib\sre_parse.py, line 17, in module from sre_constants import * File C:\OSGeo4W\apps\Python27\lib\sre_constants.py, line 18, in module from _sre import MAXREPEAT ImportError: cannot import name MAXREPEAT Does anyone here know how to fix this? Is this a problem for the OSGeo4W people instead? Many thanks, James ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] OSGeo4W QGIS 1.8 Doesnt Work
I install QGIS from the OSGeo4W installer. Does that mean I need to wait for a rebuild of QGIS to be put out in the installer? James -Opprinnelig melding- Fra: Alexander Bruy [mailto:alexander.b...@gmail.com] Sendt: 24. april 2013 10:13 Til: Stott James Kopi: qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] OSGeo4W QGIS 1.8 Doesnt Work Hi, seems this caused by recent Python upgrade in OSGeo4W. I think rebuilding QGIS will solve this issue. On Wed, 24 Apr 2013 08:09:45 + Stott James fmro...@fylkesmannen.no wrote: Hi all, I have noticed that since I updated OSGeo4W yesterday, I cannot launch QGIS 1.8. It stops loading when the splash screen gets to Loading Python. I also get the following error when trying to run a python script from the OSGeo4W shell: G:\zip_data_test.py Traceback (most recent call last): File C:\OSGeo4W\\apps\Python27\lib\site.py, line 563, in module main() File C:\OSGeo4W\\apps\Python27\lib\site.py, line 545, in main known_paths = addusersitepackages(known_paths) File C:\OSGeo4W\\apps\Python27\lib\site.py, line 278, in addusersitepackages user_site = getusersitepackages() File C:\OSGeo4W\\apps\Python27\lib\site.py, line 253, in getusersitepackages user_base = getuserbase() # this will also set USER_BASE File C:\OSGeo4W\\apps\Python27\lib\site.py, line 243, in getuserbase USER_BASE = get_config_var('userbase') File C:\OSGeo4W\apps\Python27\lib\sysconfig.py, line 472, in get_config_var return get_config_vars().get(name) File C:\OSGeo4W\apps\Python27\lib\sysconfig.py, line 405, in get_config_vars import re File C:\OSGeo4W\apps\Python27\lib\re.py, line 105, in module import sre_compile File C:\OSGeo4W\apps\Python27\lib\sre_compile.py, line 14, in module import sre_parse File C:\OSGeo4W\apps\Python27\lib\sre_parse.py, line 17, in module from sre_constants import * File C:\OSGeo4W\apps\Python27\lib\sre_constants.py, line 18, in module from _sre import MAXREPEAT ImportError: cannot import name MAXREPEAT Does anyone here know how to fix this? Is this a problem for the OSGeo4W people instead? Many thanks, James -- Alexander Bruy ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] OSGeo4W QGIS 1.8 Doesnt Work
Thanks for the reply. I have tried 2. QGIS opens but then complains about sip. This doesn't fix the command line problem. So I am awaiting for 1. to happen :) As suggested on the OSGeo4W mailing list (http://osgeo-org.1560.x6.nabble.com/ANN-Python-2-7-4-td5048404.html), renaming the python27.dll in windows\system32 (or syswow64) works, but it means ArcGIS wont. -Opprinnelig melding- Fra: Ramon Andiñach [mailto:cust...@westnet.com.au] Sendt: 24. april 2013 12:26 Til: Stott James Emne: Re: [Qgis-developer] OSGeo4W QGIS 1.8 Doesnt Work I think it means that for us there are two options, 1. In a little bit they'll rebuild 1.8 and put it on the installer. 2. Find the python upgrade that just changed and run it back a version. (When you run the update, things that you have installed will say either the new version that it's about to install or Keep if there's nothing to do. If you click on the Keep it will cycle through a few things, one of which should be the last installed version) No guarantees about what will happen though - I'd try 1 first. -ramon. On 24/04/2013, at 16:25 , Stott James wrote: I install QGIS from the OSGeo4W installer. Does that mean I need to wait for a rebuild of QGIS to be put out in the installer? James -Opprinnelig melding- Fra: Alexander Bruy [mailto:alexander.b...@gmail.com] Sendt: 24. april 2013 10:13 Til: Stott James Kopi: qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] OSGeo4W QGIS 1.8 Doesnt Work Hi, seems this caused by recent Python upgrade in OSGeo4W. I think rebuilding QGIS will solve this issue. On Wed, 24 Apr 2013 08:09:45 + Stott James fmro...@fylkesmannen.no wrote: Hi all, I have noticed that since I updated OSGeo4W yesterday, I cannot launch QGIS 1.8. It stops loading when the splash screen gets to Loading Python. I also get the following error when trying to run a python script from the OSGeo4W shell: G:\zip_data_test.py Traceback (most recent call last): File C:\OSGeo4W\\apps\Python27\lib\site.py, line 563, in module main() File C:\OSGeo4W\\apps\Python27\lib\site.py, line 545, in main known_paths = addusersitepackages(known_paths) File C:\OSGeo4W\\apps\Python27\lib\site.py, line 278, in addusersitepackages user_site = getusersitepackages() File C:\OSGeo4W\\apps\Python27\lib\site.py, line 253, in getusersitepackages user_base = getuserbase() # this will also set USER_BASE File C:\OSGeo4W\\apps\Python27\lib\site.py, line 243, in getuserbase USER_BASE = get_config_var('userbase') File C:\OSGeo4W\apps\Python27\lib\sysconfig.py, line 472, in get_config_var return get_config_vars().get(name) File C:\OSGeo4W\apps\Python27\lib\sysconfig.py, line 405, in get_config_vars import re File C:\OSGeo4W\apps\Python27\lib\re.py, line 105, in module import sre_compile File C:\OSGeo4W\apps\Python27\lib\sre_compile.py, line 14, in module import sre_parse File C:\OSGeo4W\apps\Python27\lib\sre_parse.py, line 17, in module from sre_constants import * File C:\OSGeo4W\apps\Python27\lib\sre_constants.py, line 18, in module from _sre import MAXREPEAT ImportError: cannot import name MAXREPEAT Does anyone here know how to fix this? Is this a problem for the OSGeo4W people instead? Many thanks, James -- Alexander Bruy ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgsAtlasComposition
Thanks for the reply. I am using QGIS master from OSGeo4W. At the moment I am just trying to get the example in the test to work. But it always falls over at beginRender(). My vector layer is a query from a PostGIS database. Code is below (as you can see it is pretty much the same as the test code): query = (SELECT * From test.tablename WHERE substring(knrgnrbnr from 1 for 4) = ' + KommuneNr + ') vlayer = loadPostGISLayerQuery(localhost, 5432, database, user, password,query,geom,gid,layername) QgsMapLayerRegistry.instance().addMapLayer(vlayer) mMapRenderer = QgsMapRenderer() layerStringList = QStringList() layerStringList.append( vlayer.id() ) mMapRenderer.setLayerSet( layerStringList ) mMapRenderer.setProjectionsEnabled( True ) crs = QgsCoordinateReferenceSystem() crs.createFromSrid( 32632 ) mMapRenderer.setDestinationCrs( crs ) mComposition = QgsComposition( mMapRenderer ) mComposition.setPaperSize( 297, 210 ) props = { color: 0,127,0 } fillSymbol = QgsFillSymbolV2.createSimple( props ) renderer = QgsSingleSymbolRendererV2( fillSymbol ) vlayer.setRendererV2( renderer ) mAtlasMap = QgsComposerMap( mComposition, 20, 20, 130, 130 ) mAtlasMap.setFrameEnabled( True ) mComposition.addComposerMap( mAtlasMap ) mAtlas = QgsAtlasComposition( mComposition ) mAtlas.setCoverageLayer( vlayer ) mAtlas.setComposerMap( mAtlasMap ) mAtlas.setFilenamePattern( 'output_' || $feature ) mAtlas.beginRender() for i in range(0, mAtlas.numFeatures()): mAtlas.prepareForFeature( i ) expected = QString( output_%1 ).arg(i+1) assert mAtlas.currentFilename() == expected mAtlas.endRender() -Opprinnelig melding- Fra: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av Hugo Mercier Sendt: 11. april 2013 10:16 Til: qgis-developer@lists.osgeo.org Emne: Re: [Qgis-developer] qgsAtlasComposition Hi James, Le 11/04/2013 08:37, Stott James a écrit : Hi all, I am trying to use the atlas functionality in a standalone python script. I am using the qgsAtlasComposition class. I get an error running this line: myAtlas.beginRender() I get an unknown exception. Can you share the code you're using ? Or a stack trace or a line number where the error occurs ? What version / git revision are you using ? You have to call setCoverageLayer and setComposerMap before calling beginRender(), is it the case ? I have also found that running myAtlas.numFeatures() always returns 0 even though I have added a layer that has data using setCoverageLayer(). This is linked to the previous issue. Features are iterated over during beginRender() I did take a look at this page and followed the steps in the test: https://github.com/qgis/Quantum-GIS/blob/master/tests/src/python/test_ qgsatlascomposition.py but I cannot get it to work in my script. I cannot get the test to work either. It always errors on the beginRender() line. I was about to say everything work fine here, but ... I realized there is something wrong with the last changes I did. Should be fixed with this: https://github.com/qgis/Quantum-GIS/pull/516 Not sure if it will fix your problem ... -- Hugo Mercier Oslandia ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer