[Qgis-developer] 2.6.1
Hi, next friday four weeks after the release have passed. Preponing the release plan starting with 2.8 (see not yet adopted QEP #3) this would be a time for a point release (as there wasn't a week without backports before) - although the nightly builds of the release are not yet inplace. Please check if all your fixes that apply to 2.6 are applied to the release before Friday 1200 UTC. Jürgen [1] https://github.com/timlinux/QGIS-Enhancement-Proposals/blob/master/QEP-3-QGIS_Long_Term_Releases.rst -- 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 signature.asc Description: Digital signature ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] 2.6.1
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 24/11/2014 10:56, Jürgen E. Fischer ha scritto: > next friday four weeks after the release have passed. Preponing the release > plan starting with 2.8 (see not yet adopted QEP #3) this would be a time for a > point release (as there wasn't a week without backports before) - although the > nightly builds of the release are not yet inplace. Good news, thanks Juergen. - -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html -BEGIN PGP SIGNATURE- Version: GnuPG v1 iEYEARECAAYFAlRzAacACgkQ/NedwLUzIr6y1QCguBsUI9IDj+3xkgxVF9xDr6hp 7bsAnRVgdeYaOkgmm1A4ZvJbUH4zcHJY =ZmMK -END PGP SIGNATURE- ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] QEP - inheritable property collections
Hi all, I've created a QEP (in very early draft stage) for a system for overridable property collections for QGIS: https://github.com/qgis/QGIS-Enhancement-Proposals/pull/12 This need is being driven by both labelling and layout work, and should pave the way for features like text styles and layout master templates. I'm after feedback/discussion on whether the proposed implementation would work or if there's a better way to implement this. Nyall ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QGIS 2.6 compilation on Windows
Dear Larry, 2014-11-19 23:09 GMT+01:00 Larry Shaffer : > I think I ran into this recently. There was a commit in 2.6 [0] that > apparently requires a newer version of flex or bison (bison 3.x, I think?) for record osgeo4w environment reports: > flex --version flex version 2.5.4 > bison --version bison (GNU Bison) 2.4.1 > than is available with the GnuWin32 project as noted in INSTALL [1]. Instead > I used the precompiled binaries available from the 'Win flex-bison' project > [2] and specified the CMake paths: > > -D BISON_EXECUTABLE=C:/path/to/win_flex_bison-latest/win_bison \ > -D FLEX_EXECUTABLE=C:/path/to/win_flex_bison-latest/win_flex OK, I downloaded executables from [2] and placed to my osgeo4w environment, then modified `package.cmd` -D BISON_EXECUTABLE=%O4W_ROOT%/bin/win_bison ^ -D FLEX_EXECUTABLE=%O4W_ROOT%/bin/win_flex > win_flex --version win_flex 2.5.37 > win_bison --version bison (GNU Bison) 2.7 > Looks like the CMake find modules need updated to look for those binaries. I > suppose you could also build the latest packages yourself. But I am still getting the same error. Rather that updating CMake file it would make sense to include required version of flex and bison into OSgeo4W environment I would say. Any idea how to solve this problem? Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.eu/mentors/landa ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QGIS 2.6 compilation on Windows
Hi, I encountered the same problem while building QGIS 2.6 from sources, to fix it I use flex and bison from http://cygwin.com Regards, Nejia -Message d'origine- De : qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] De la part de Martin Landa Envoyé : lundi 24 novembre 2014 15:46 À : Larry Shaffer Cc : qgis-dev Objet : Re: [Qgis-developer] QGIS 2.6 compilation on Windows Dear Larry, 2014-11-19 23:09 GMT+01:00 Larry Shaffer : > I think I ran into this recently. There was a commit in 2.6 [0] that > apparently requires a newer version of flex or bison (bison 3.x, I > think?) for record osgeo4w environment reports: > flex --version flex version 2.5.4 > bison --version bison (GNU Bison) 2.4.1 > than is available with the GnuWin32 project as noted in INSTALL [1]. > Instead I used the precompiled binaries available from the 'Win > flex-bison' project [2] and specified the CMake paths: > > -D BISON_EXECUTABLE=C:/path/to/win_flex_bison-latest/win_bison \ -D > FLEX_EXECUTABLE=C:/path/to/win_flex_bison-latest/win_flex OK, I downloaded executables from [2] and placed to my osgeo4w environment, then modified `package.cmd` -D BISON_EXECUTABLE=%O4W_ROOT%/bin/win_bison ^ -D FLEX_EXECUTABLE=%O4W_ROOT%/bin/win_flex > win_flex --version win_flex 2.5.37 > win_bison --version bison (GNU Bison) 2.7 > Looks like the CMake find modules need updated to look for those > binaries. I suppose you could also build the latest packages yourself. But I am still getting the same error. Rather that updating CMake file it would make sense to include required version of flex and bison into OSgeo4W environment I would say. Any idea how to solve this problem? Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.eu/mentors/landa ___ 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 2.6 compilation on Windows
Hi Martin, On Mon, 24. Nov 2014 at 15:46:26 +0100, Martin Landa wrote: > > flex --version > flex version 2.5.4 flex NEWS says "Support for reentrant C scanners has been added" for 2.5.6 I use flex from cygwin on Windows. > > Looks like the CMake find modules need updated to look for those binaries. I > > suppose you could also build the latest packages yourself. > But I am still getting the same error. Rather that updating CMake file > it would make sense to include required version of flex and bison into > OSgeo4W environment I would say. Any idea how to solve this problem? We don't include all build tools in OSGeo4W anyway. I updated INSTALL to point out the required version and added links to cygwin instead. 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 signature.asc Description: Digital signature ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Problems with developing custom c++ qgis application with QtCreator and MSVC2008 on Windows
QgisInterface is an abstract class. How are you initializing it? Or do you just declare it and add a raster layer directly? Because from that link, I see the addRasterLayer method is a pure virtual function. Nejia wrote > QgisInterface *m_ptInterface; > See > http://qgis.org/api/2.6/classQgisInterface.html#a808a34b507a8c4204d607a5857d62748 > > Regards, > Nejia > > -Message d'origine- > De : > qgis-developer-bounces@.osgeo > [mailto: > qgis-developer-bounces@.osgeo > ] De la part de eliu1234 > Envoyé : vendredi 21 novembre 2014 21:36 > À : > qgis-developer@.osgeo > Objet : Re: [Qgis-developer] Problems with developing custom c++ qgis > application with QtCreator and MSVC2008 on Windows > > What is the m_ptInterface in your code? > > > Nejia wrote >> I use the same environment of Qgis to write c++ plugins: >> http://htmlpreview.github.io/?https://raw.github.com/qgis/QGIS/master/ >> doc/INSTALL.html#toc14 >> >> to add raster layer: >> m_ptInterface->addRasterLayer("http://server.arcgisonline.com/ArcGIS/r >> est/services/World_Imagery/MapServer?f=json&pretty=true","raster"); >> >> Regards, >> Nejia >> >> -Message d'origine- >> De : > >> qgis-developer-bounces@.osgeo > >> [mailto: > >> qgis-developer-bounces@.osgeo > >> ] De la part de eliu1234 >> Envoyé : jeudi 20 novembre 2014 21:40 >> À : > >> qgis-developer@.osgeo > >> Objet : Re: [Qgis-developer] Problems with developing custom c++ qgis >> application with QtCreator and MSVC2008 on Windows >> >> Do you have a system setup that can write qgis c++ application? If you >> do, can you create a valid raster layer from that? >> >> >> Nejia wrote >>> 1- see my response here >>> http://stackoverflow.com/questions/26920574/cannot-find-qgsapplicatio >>> n >>> -h-and >>> -other-header-files/27035138#27035138 >>> >>> -Message d'origine- >>> De : >> >>> qgis-developer-bounces@.osgeo >> >>> [mailto: >> >>> qgis-developer-bounces@.osgeo >> >>> ] De la part de eliu1234 >>> Envoyé : mercredi 19 novembre 2014 17:39 À : >> >>> qgis-developer@.osgeo >> >>> Objet : Re: [Qgis-developer] Problems with developing custom c++ qgis >>> application with QtCreator and MSVC2008 on Windows >>> >>> 1. So in the .proj file, what do i need to change? >>> >>> 2. My Python works in this case, it is the C++ part that is not working. >>> >>> >>> Nejia wrote Hi, 1- QGIS and Qt libraries shipped with Osgeo4W are compiled using release mode so if you want to debug your application you can use RelWithDebInfo mode. 2- see: http://gis.stackexchange.com/questions/120823/how-to-load-a-wms-laye r - using- pyqgis http://ieqgis.wordpress.com/2014/08/09/adding-esris-online-world-ima g e ry-dat aset-to-qgis/ Cheers Nejia >>> >>> >>> >>> >>> >>> -- >>> View this message in context: >>> http://osgeo-org.1560.x6.nabble.com/Problems-with-developing-custom-c >>> - >>> qgis-a >>> pplication-with-QtCreator-and-MSVC2008-on-Windows-tp5173711p5173838.h >>> t ml Sent from the Quantum GIS - Developer mailing list archive at >>> Nabble.com. >>> ___ >>> Qgis-developer mailing list >> >>> Qgis-developer@.osgeo >> >>> http://lists.osgeo.org/mailman/listinfo/qgis-developer >>> >>> ___ >>> Qgis-developer mailing list >> >>> Qgis-developer@.osgeo >> >>> http://lists.osgeo.org/mailman/listinfo/qgis-developer >> >> >> >> >> >> -- >> View this message in context: >> http://osgeo-org.1560.x6.nabble.com/Problems-with-developing-custom-c- >> qgis-application-with-QtCreator-and-MSVC2008-on-Windows-tp5173711p5174 >> 130.html Sent from the Quantum GIS - Developer mailing list archive at >> Nabble.com. >> ___ >> Qgis-developer mailing list > >> Qgis-developer@.osgeo > >> http://lists.osgeo.org/mailman/listinfo/qgis-developer >> >> ___ >> Qgis-developer mailing list > >> Qgis-developer@.osgeo > >> http://lists.osgeo.org/mailman/listinfo/qgis-developer > > > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Problems-with-developing-custom-c-qgis-application-with-QtCreator-and-MSVC2008-on-Windows-tp5173711p5174285.html > Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. > ___ > Qgis-developer mailing list > Qgis-developer@.osgeo > http://lists.osgeo.org/mailman/listinfo/qgis-developer > > ___ > Qgis-developer mailing list > Qgis-developer@.osgeo > http://lists.osgeo.org/mailman/listinfo/qgis-developer -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Problems-with-developing-custom-c-qgis-application-with-QtCreator-and-MSVC2008-on-Windows-tp5173711p5174568.html Sent from the Quantum GIS - Developer mail
Re: [Qgis-developer] Problems with developing custom c++ qgis application with QtCreator and MSVC2008 on Windows
QgisInterface is an abstract class. How are you initializing it? Or do you just declare it and add a raster layer directly? Because from that link, I see the addRasterLayer method is a pure virtual function and QgisInterface is abstract class. I want to add this layer into a QgsMapCanvas, how should I do that? Also, is it possible for you to test my code before to see if it works on your system? QgsRasterLayer * rlayer = new QgsRasterLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer?f=json&pretty=true","raster";); qDebug() << rlayer->isValid(); Nejia wrote > QgisInterface *m_ptInterface; > See > http://qgis.org/api/2.6/classQgisInterface.html#a808a34b507a8c4204d607a5857d62748 > > Regards, > Nejia > > -Message d'origine- > De : > qgis-developer-bounces@.osgeo > [mailto: > qgis-developer-bounces@.osgeo > ] De la part de eliu1234 > Envoyé : vendredi 21 novembre 2014 21:36 > À : > qgis-developer@.osgeo > Objet : Re: [Qgis-developer] Problems with developing custom c++ qgis > application with QtCreator and MSVC2008 on Windows > > What is the m_ptInterface in your code? > > > Nejia wrote >> I use the same environment of Qgis to write c++ plugins: >> http://htmlpreview.github.io/?https://raw.github.com/qgis/QGIS/master/ >> doc/INSTALL.html#toc14 >> >> to add raster layer: >> m_ptInterface->addRasterLayer("http://server.arcgisonline.com/ArcGIS/r >> est/services/World_Imagery/MapServer?f=json&pretty=true","raster"); >> >> Regards, >> Nejia >> >> -Message d'origine- >> De : > >> qgis-developer-bounces@.osgeo > >> [mailto: > >> qgis-developer-bounces@.osgeo > >> ] De la part de eliu1234 >> Envoyé : jeudi 20 novembre 2014 21:40 >> À : > >> qgis-developer@.osgeo > >> Objet : Re: [Qgis-developer] Problems with developing custom c++ qgis >> application with QtCreator and MSVC2008 on Windows >> >> Do you have a system setup that can write qgis c++ application? If you >> do, can you create a valid raster layer from that? >> >> >> Nejia wrote >>> 1- see my response here >>> http://stackoverflow.com/questions/26920574/cannot-find-qgsapplicatio >>> n >>> -h-and >>> -other-header-files/27035138#27035138 >>> >>> -Message d'origine- >>> De : >> >>> qgis-developer-bounces@.osgeo >> >>> [mailto: >> >>> qgis-developer-bounces@.osgeo >> >>> ] De la part de eliu1234 >>> Envoyé : mercredi 19 novembre 2014 17:39 À : >> >>> qgis-developer@.osgeo >> >>> Objet : Re: [Qgis-developer] Problems with developing custom c++ qgis >>> application with QtCreator and MSVC2008 on Windows >>> >>> 1. So in the .proj file, what do i need to change? >>> >>> 2. My Python works in this case, it is the C++ part that is not working. >>> >>> >>> Nejia wrote Hi, 1- QGIS and Qt libraries shipped with Osgeo4W are compiled using release mode so if you want to debug your application you can use RelWithDebInfo mode. 2- see: http://gis.stackexchange.com/questions/120823/how-to-load-a-wms-laye r - using- pyqgis http://ieqgis.wordpress.com/2014/08/09/adding-esris-online-world-ima g e ry-dat aset-to-qgis/ Cheers Nejia >>> >>> >>> >>> >>> >>> -- >>> View this message in context: >>> http://osgeo-org.1560.x6.nabble.com/Problems-with-developing-custom-c >>> - >>> qgis-a >>> pplication-with-QtCreator-and-MSVC2008-on-Windows-tp5173711p5173838.h >>> t ml Sent from the Quantum GIS - Developer mailing list archive at >>> Nabble.com. >>> ___ >>> Qgis-developer mailing list >> >>> Qgis-developer@.osgeo >> >>> http://lists.osgeo.org/mailman/listinfo/qgis-developer >>> >>> ___ >>> Qgis-developer mailing list >> >>> Qgis-developer@.osgeo >> >>> http://lists.osgeo.org/mailman/listinfo/qgis-developer >> >> >> >> >> >> -- >> View this message in context: >> http://osgeo-org.1560.x6.nabble.com/Problems-with-developing-custom-c- >> qgis-application-with-QtCreator-and-MSVC2008-on-Windows-tp5173711p5174 >> 130.html Sent from the Quantum GIS - Developer mailing list archive at >> Nabble.com. >> ___ >> Qgis-developer mailing list > >> Qgis-developer@.osgeo > >> http://lists.osgeo.org/mailman/listinfo/qgis-developer >> >> ___ >> Qgis-developer mailing list > >> Qgis-developer@.osgeo > >> http://lists.osgeo.org/mailman/listinfo/qgis-developer > > > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Problems-with-developing-custom-c-qgis-application-with-QtCreator-and-MSVC2008-on-Windows-tp5173711p5174285.html > Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. > ___ > Qgis-developer mailing list > Qgis-developer@.osgeo > http://lists.osgeo.org/mailman/listinfo/qgis-developer > > _
[Qgis-developer] Viewport rotation status report
I've just pushed new code to the "rotation" branch in my fork [1] that makes panning and zooming supported at the MapToPixel level. The MapToPixel class is used by the renderer to transform inputs to output coordinate space, right after performing geographical projection transformations. Rendering wise, the rotation doesn't seem to give nice results. Arrow decorations and labels are "flattened", and "parallel" labels are parallel to the original (non-rotated) lines. [1] https://github.com/strk/qgis/tree/rotation I suspect there's some redundancy I'm missing out, whereas local classes have local view on what the canvas extent or scale is. For example I saw QgsMapRenderer has mExtent and mMapUnitsPerPixel members but also a mRendererContext which can provide a MapToPixel object having another copy of that information (extent and scale). What are these duplications for ? Could we get rid of them to have a unified configuration for coordinate transforms ? --strk; () ASCII ribbon campaign -- Keep it simple ! /\ http://strk.keybit.net/rants/ascii_mails.txt ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] [Plugin] Processing-Workflow
hi, when i launch "create a new workflow", this error is produced. also, there are not the three examples of land cover modules. my OS is windows 8. in windows 7 all works well and i see the three examples thank you in advance ticket opened in proper github repository (https://github.com/TIGER-NET/Processing-Workflow/issues) stefano An error has occured while executing Python code: Traceback (most recent call last): File "C:/OSGeo4W/apps/qgis/./python/plugins\processing\gui\ProcessingToolbox.py", line 214, in executeAlgorithm action.execute() File "C:/Users/11186cs/.qgis2/python/plugins\processing_workflow\CreateNewWorkflowAction.py", line 45, in execute dlg = WorkflowCreatorDialog(None) File "C:/Users/11186cs/.qgis2/python/plugins\processing_workflow\WorkflowCreatorDialog.py", line 67, in init self.setupUi() File "C:/Users/11186cs/.qgis2/python/plugins\processing_workflow\WorkflowCreatorDialog.py", line 101, in setupUi self.fillAlgorithmTree() File "C:/Users/11186cs/.qgis2/python/plugins\processing_workflow\WorkflowCreatorDialog.py", line 323, in fillAlgorithmTree providerItem.setText(0, providers[providerName].getDescription()) KeyError: 'modelertools' Python version: 2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)] QGIS version: 2.6.0-Brighton Brighton, exported -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Plugin-Processing-Workflow-tp5174616.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
Re: [Qgis-developer] [plugins] refreshing canvas
I understand that you don't have a use case that reproduce the problem! Can you explain better what the meaning of "customized version of Dockable Mirror Map"? May you file an issue for the plugin with all data displayed in help-about of qgis? Just an idea, may you also test if this append with multithread rendering disabled? Regards Luigi Pirelli On 24 November 2014 at 01:16, Alexia Mondot wrote: > Hi all, > > I have a plugin using a customized version of Dockable Mirror Map. > I use it to display each processing result in a new view. > > I get a strange behaviour with my plugin : > Some times, the canvas stays white. A scroll in it is fine to reload it and > my image is displayed. > I get this problem since the beginning of the development on QIGS 2.2. It is > for me a "random" problem, because I can't say why I get these white canvas. > But, when I get it I save the projet with the white view, and when reloaded, > the canvas is still white. > > I've played with canvas.refresh(), canvas renderer flags and even with > canvas.freeze(). > I can't understand the behaviour I get, maybe I have a wrong usage of the > properties above. > I also thought about triggerRepaint()... > > Thanks by advance, > Alexia > > > ___ > 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] [plugins] refreshing canvas
may you also test with the last 2.6version? regards, Luigi Pirelli On 24 November 2014 at 01:16, Alexia Mondot wrote: > Hi all, > > I have a plugin using a customized version of Dockable Mirror Map. > I use it to display each processing result in a new view. > > I get a strange behaviour with my plugin : > Some times, the canvas stays white. A scroll in it is fine to reload it and > my image is displayed. > I get this problem since the beginning of the development on QIGS 2.2. It is > for me a "random" problem, because I can't say why I get these white canvas. > But, when I get it I save the projet with the white view, and when reloaded, > the canvas is still white. > > I've played with canvas.refresh(), canvas renderer flags and even with > canvas.freeze(). > I can't understand the behaviour I get, maybe I have a wrong usage of the > properties above. > I also thought about triggerRepaint()... > > Thanks by advance, > Alexia > > > ___ > 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] [plugins] refreshing canvas
could be related with this? https://hub.qgis.org/issues/9799 check OTF reprojection combination regards, Luigi Pirelli On 24 November 2014 at 23:49, Luigi Pirelli wrote: > may you also test with the last 2.6version? > > regards, Luigi Pirelli > > On 24 November 2014 at 01:16, Alexia Mondot wrote: >> Hi all, >> >> I have a plugin using a customized version of Dockable Mirror Map. >> I use it to display each processing result in a new view. >> >> I get a strange behaviour with my plugin : >> Some times, the canvas stays white. A scroll in it is fine to reload it and >> my image is displayed. >> I get this problem since the beginning of the development on QIGS 2.2. It is >> for me a "random" problem, because I can't say why I get these white canvas. >> But, when I get it I save the projet with the white view, and when reloaded, >> the canvas is still white. >> >> I've played with canvas.refresh(), canvas renderer flags and even with >> canvas.freeze(). >> I can't understand the behaviour I get, maybe I have a wrong usage of the >> properties above. >> I also thought about triggerRepaint()... >> >> Thanks by advance, >> Alexia >> >> >> ___ >> 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] [plugins] refreshing canvas
Thanks for your answer. Actually, I wonder if my refresh problem is not only on QGIS 2.2. I believe I had not reproduce this behaviour on QGIS 2.4 and 2.6. And I didn't know about the bug. I have these two points to analyse. The multithread rendering was available in QGIS 2.2 ?? I'm going to work on the two previous points. Thanks again, Alexia On 24/11/2014 23:52, Luigi Pirelli wrote: could be related with this? https://hub.qgis.org/issues/9799 check OTF reprojection combination regards, Luigi Pirelli On 24 November 2014 at 23:49, Luigi Pirelli wrote: may you also test with the last 2.6version? regards, Luigi Pirelli On 24 November 2014 at 01:16, Alexia Mondot wrote: Hi all, I have a plugin using a customized version of Dockable Mirror Map. I use it to display each processing result in a new view. I get a strange behaviour with my plugin : Some times, the canvas stays white. A scroll in it is fine to reload it and my image is displayed. I get this problem since the beginning of the development on QIGS 2.2. It is for me a "random" problem, because I can't say why I get these white canvas. But, when I get it I save the projet with the white view, and when reloaded, the canvas is still white. I've played with canvas.refresh(), canvas renderer flags and even with canvas.freeze(). I can't understand the behaviour I get, maybe I have a wrong usage of the properties above. I also thought about triggerRepaint()... Thanks by advance, Alexia ___ 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] [plugins] refreshing canvas
Hey, I suspect you are running into this http://gis.stackexchange.com/questions/87841/why-qgsmapcanvas-only-appear-after-lost-focus Here is a "fix" http://gis.stackexchange.com/a/92734/97 - Nathan On Tue Nov 25 2014 at 9:34:14 AM Alexia Mondot wrote: > Thanks for your answer. > > Actually, I wonder if my refresh problem is not only on QGIS 2.2. I > believe I had not reproduce this behaviour on QGIS 2.4 and 2.6. And I > didn't know about the bug. > I have these two points to analyse. > > The multithread rendering was available in QGIS 2.2 ?? > > I'm going to work on the two previous points. > > Thanks again, > Alexia > > > > On 24/11/2014 23:52, Luigi Pirelli wrote: > > could be related with this? > https://hub.qgis.org/issues/9799 > > check OTF reprojection combination > > regards, Luigi Pirelli > > On 24 November 2014 at 23:49, Luigi Pirelli > wrote: > > may you also test with the last 2.6version? > > regards, Luigi Pirelli > > On 24 November 2014 at 01:16, Alexia Mondot > wrote: > > Hi all, > > I have a plugin using a customized version of Dockable Mirror Map. > I use it to display each processing result in a new view. > > I get a strange behaviour with my plugin : > Some times, the canvas stays white. A scroll in it is fine to reload it and > my image is displayed. > I get this problem since the beginning of the development on QIGS 2.2. It is > for me a "random" problem, because I can't say why I get these white canvas. > But, when I get it I save the projet with the white view, and when reloaded, > the canvas is still white. > > I've played with canvas.refresh(), canvas renderer flags and even with > canvas.freeze(). > I can't understand the behaviour I get, maybe I have a wrong usage of the > properties above. > I also thought about triggerRepaint()... > > Thanks by advance, > Alexia > > > ___ > Qgis-developer mailing > listQgis-developer@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/qgis-developer > > ___ > Qgis-developer mailing > listQgis-developer@lists.osgeo.orghttp://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] Problems with developing custom c++ qgis application with QtCreator and MSVC2008 on Windows
To write QGIS C++ plugin see : http://download.osgeo.org/qgis/doc/manual/qgis-1.1.0_coding-compilation_guide_en.pdf (2.2 Programming a QGIS C++ Plugin in four steps) And you can find some C++ plugin examples here: https://github.com/qgis/QGIS-Code-Examples and https://github.com/qgis/QGIS-Code-Examples/tree/master/4_adding_rasters_to_canvas Regards, Nejia -Message d'origine- De : qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] De la part de eliu1234 Envoyé : lundi 24 novembre 2014 17:52 À : qgis-developer@lists.osgeo.org Objet : Re: [Qgis-developer] Problems with developing custom c++ qgis application with QtCreator and MSVC2008 on Windows QgisInterface is an abstract class. How are you initializing it? Or do you just declare it and add a raster layer directly? Because from that link, I see the addRasterLayer method is a pure virtual function and QgisInterface is abstract class. I want to add this layer into a QgsMapCanvas, how should I do that? Also, is it possible for you to test my code before to see if it works on your system? QgsRasterLayer * rlayer = new QgsRasterLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer?f=json&pretty=true","raster";); qDebug() << rlayer->isValid(); Nejia wrote > QgisInterface *m_ptInterface; > See > http://qgis.org/api/2.6/classQgisInterface.html#a808a34b507a8c4204d607 > a5857d62748 > > Regards, > Nejia > > -Message d'origine- > De : > qgis-developer-bounces@.osgeo > [mailto: > qgis-developer-bounces@.osgeo > ] De la part de eliu1234 > Envoyé : vendredi 21 novembre 2014 21:36 À : > qgis-developer@.osgeo > Objet : Re: [Qgis-developer] Problems with developing custom c++ qgis > application with QtCreator and MSVC2008 on Windows > > What is the m_ptInterface in your code? > > > Nejia wrote >> I use the same environment of Qgis to write c++ plugins: >> http://htmlpreview.github.io/?https://raw.github.com/qgis/QGIS/master >> / >> doc/INSTALL.html#toc14 >> >> to add raster layer: >> m_ptInterface->addRasterLayer("http://server.arcgisonline.com/ArcGIS/ >> r est/services/World_Imagery/MapServer?f=json&pretty=true","raster"); >> >> Regards, >> Nejia >> >> -Message d'origine- >> De : > >> qgis-developer-bounces@.osgeo > >> [mailto: > >> qgis-developer-bounces@.osgeo > >> ] De la part de eliu1234 >> Envoyé : jeudi 20 novembre 2014 21:40 À : > >> qgis-developer@.osgeo > >> Objet : Re: [Qgis-developer] Problems with developing custom c++ qgis >> application with QtCreator and MSVC2008 on Windows >> >> Do you have a system setup that can write qgis c++ application? If >> you do, can you create a valid raster layer from that? >> >> >> Nejia wrote >>> 1- see my response here >>> http://stackoverflow.com/questions/26920574/cannot-find-qgsapplicati >>> o >>> n >>> -h-and >>> -other-header-files/27035138#27035138 >>> >>> -Message d'origine- >>> De : >> >>> qgis-developer-bounces@.osgeo >> >>> [mailto: >> >>> qgis-developer-bounces@.osgeo >> >>> ] De la part de eliu1234 >>> Envoyé : mercredi 19 novembre 2014 17:39 À : >> >>> qgis-developer@.osgeo >> >>> Objet : Re: [Qgis-developer] Problems with developing custom c++ >>> qgis application with QtCreator and MSVC2008 on Windows >>> >>> 1. So in the .proj file, what do i need to change? >>> >>> 2. My Python works in this case, it is the C++ part that is not working. >>> >>> >>> Nejia wrote Hi, 1- QGIS and Qt libraries shipped with Osgeo4W are compiled using release mode so if you want to debug your application you can use RelWithDebInfo mode. 2- see: http://gis.stackexchange.com/questions/120823/how-to-load-a-wms-lay e r - using- pyqgis http://ieqgis.wordpress.com/2014/08/09/adding-esris-online-world-im a g e ry-dat aset-to-qgis/ Cheers Nejia >>> >>> >>> >>> >>> >>> -- >>> View this message in context: >>> http://osgeo-org.1560.x6.nabble.com/Problems-with-developing-custom- >>> c >>> - >>> qgis-a >>> pplication-with-QtCreator-and-MSVC2008-on-Windows-tp5173711p5173838. >>> h t ml Sent from the Quantum GIS - Developer mailing list archive at >>> Nabble.com. >>> ___ >>> Qgis-developer mailing list >> >>> Qgis-developer@.osgeo >> >>> http://lists.osgeo.org/mailman/listinfo/qgis-developer >>> >>> ___ >>> Qgis-developer mailing list >> >>> Qgis-developer@.osgeo >> >>> http://lists.osgeo.org/mailman/listinfo/qgis-developer >> >> >> >> >> >> -- >> View this message in context: >> http://osgeo-org.1560.x6.nabble.com/Problems-with-developing-custom-c >> - >> qgis-application-with-QtCreator-and-MSVC2008-on-Windows-tp5173711p517 >> 4 130.html Sent from the Quantum GIS - Developer mailing list archive >> at Nabble.com. >> ___ >> Qgis-develope