Re: [Qgis-developer] Object owner design in QgsGraphBuilder
Just figured out that the sip option /Factory/ tells python that it takes ownership of this object. So there won't be any memory loss. I'd still say this should be changed and if not at least stated in the API so anybody using this in C++ will be aware of this without reading the code. On Thu, 2012-08-23 at 12:47 +, Kuhn Matthias, Vermessung wrote: Hi I've recently been working with the network analysis library. When I had a look at the code I noticed the following: In the constructor a new QgsGraph() mGraph is instantiated In the destructor mGraph is deleted if not null In the method graph() mGraph is returned and set to null This leads to the effect, that if I request the graph() from the QgsGraphBuilder ( and I normally will, as that's the only purpose of using the QgsGraphBuilder ) I get the full ownership and have to delete the graph-object, when I'm finished with it. But this is not stated in the API. So without looking at the code there is no way to know this. - How does python handle this? Does the following code delete this object? graph = graphBuilder.graph() graph = null - In my opinion, this is a wrong design. I would rather pass a graph-object to the graphbuilder in the constructor and let it fill this object. Then I know, that is my responsibility to delete it afterwards. I would provide a patch to change this if there are no good reasons to keep it the way it is. Regards, Matthias ___ 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] Its Test Friday!
Hi All Look at our beautifully growing number of tests: http://jenkins.linfiniti.com/job/QGIS/test/?width=800height=600 How about making the chart inch up a little higher today and join us in Test Friday! Regards -- Tim Sutton - QGIS Project Steering Committee Member (Release Manager) == 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. Visit http://linfiniti.com to find out about: * QGIS programming and support services * Mapserver and PostGIS based hosting plans * FOSS Consulting Services Skype: timlinux Irc: timlinux on #qgis at freenode.net == ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Fwd: [GRASS-user] What distance is being measured and used for buffers ?
An interesting issue from GRASS ML. How do we deal with this issue? All the best. Messaggio originale Oggetto:[GRASS-user] What distance is being measured and used for buffers ? Data: Fri, 17 Aug 2012 17:35:00 +0200 Mittente: Moritz Lennert mlenn...@club.worldonline.be A: GRASS user list grass-u...@lists.osgeo.org Hello, I have a fundamental question about distances in GRASS, also in relation to buffers, that I stumbled upon trying to help a student who tried to draw buffers around cities indicating the maximum distance airplanes could fly at different times in history. To test, I used the World Mercator projection: +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +no_defs +a=6378137 +rf=298.257223563 +towgs84=0.000,0.000,0.000 +to_meter=1 This projection has obvious deformations the further you get from the equator, and thus distances are seriously distorted[1]. Using GRASS 6.5 to create a buffer of 6000km around Belgium gives a map which shows a circular buffer [2]. Using the distance measuring tool in the wxGUI confirms that the distance from Belgium to the buffer line in all directions is around 6000km. However, the actual distance is very different, especially towards the North: According to CloudMade's routing website based on OSM data northern tip of Norway is only ~3500km by car from Brussels, so very far from 6000km. I get exactly the same results using r.grow.distance and r.cost. For comparison, I used a simple Plate Carree projection: +proj=eqc +lat_ts=0 +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +no_defs +a=6371007 +b=6371007 +to_meter=1 Distortions are obviously different [3]. And the 6000km buffer is also positioned differently compared to the land masses [4]. Again, measuring the distances with the wxGUI distance tool gives me ~6000km in all directions. So, my question: which distance is used for measurement and for buffer creation ? A distance based buffer in map units should lead to deformed buffers in most projection systems. Is there anyway to achieve such deformed buffers and correct distance measures ? Moritz [1] http://164.15.12.207/grass/distances/worldmercator.png [2] http://164.15.12.207/grass/distances/buffer_worldmercator.png [3] http://164.15.12.207/grass/distances/platecarree.png [4] http://164.15.12.207/grass/distances/buffer_platecarree.png ___ grass-user mailing list grass-u...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Fwd: [GRASS-user] What distance is being measured and used for buffers ?
Hi, This problem doesn't sound GRASS or QGIS specific. As far as I know, all GIS act like that. Compare http://gis.stackexchange.com/a/8031/187 for what happens if users (analysts at the Economist in that case) are not aware of it. Regards, Anita On Fri, Aug 24, 2012 at 10:16 AM, Paolo Cavallini cavall...@faunalia.itwrote: An interesting issue from GRASS ML. How do we deal with this issue? All the best. Messaggio originale Oggetto: [GRASS-user] What distance is being measured and used for buffers ? Data: Fri, 17 Aug 2012 17:35:00 +0200 Mittente: Moritz Lennert mlenn...@club.worldonline.bemlenn...@club.worldonline.be A: GRASS user list grass-u...@lists.osgeo.org grass-u...@lists.osgeo.org Hello, I have a fundamental question about distances in GRASS, also in relation to buffers, that I stumbled upon trying to help a student who tried to draw buffers around cities indicating the maximum distance airplanes could fly at different times in history. To test, I used the World Mercator projection: +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +no_defs +a=6378137 +rf=298.257223563 +towgs84=0.000,0.000,0.000 +to_meter=1 This projection has obvious deformations the further you get from the equator, and thus distances are seriously distorted[1]. Using GRASS 6.5 to create a buffer of 6000km around Belgium gives a map which shows a circular buffer [2]. Using the distance measuring tool in the wxGUI confirms that the distance from Belgium to the buffer line in all directions is around 6000km. However, the actual distance is very different, especially towards the North: According to CloudMade's routing website based on OSM data northern tip of Norway is only ~3500km by car from Brussels, so very far from 6000km. I get exactly the same results using r.grow.distance and r.cost. For comparison, I used a simple Plate Carree projection: +proj=eqc +lat_ts=0 +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +no_defs +a=6371007 +b=6371007 +to_meter=1 Distortions are obviously different [3]. And the 6000km buffer is also positioned differently compared to the land masses [4]. Again, measuring the distances with the wxGUI distance tool gives me ~6000km in all directions. So, my question: which distance is used for measurement and for buffer creation ? A distance based buffer in map units should lead to deformed buffers in most projection systems. Is there anyway to achieve such deformed buffers and correct distance measures ? Moritz [1] http://164.15.12.207/grass/distances/worldmercator.png [2] http://164.15.12.207/grass/distances/buffer_worldmercator.png [3] http://164.15.12.207/grass/distances/platecarree.png [4] http://164.15.12.207/grass/distances/buffer_platecarree.png ___ grass-user mailing listgrass-user@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/grass-user ___ 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] No nightly build today on osgeo4w?
Hi all , this morning stands the same version as yesterday 1.9.52, despites commited revisions yesterday.. I just had a few fugs to test. Does this occurs often? régis -- View this message in context: http://osgeo-org.1560.n6.nabble.com/No-nightly-build-today-on-osgeo4w-tp4997541.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] Fwd: [GRASS-user] What distance is being measured and used for buffers ?
Hi! To my knowledge - if you are doing some kind of global investigations you have to know which projection you choose (some fit better - some fit less) .. Anita is right when saying you have to be aware of the specialities of GIS. I'd say that's why there are GIS-Specialists .. Otherwise everybody could just take a GIS Software and there would not be any need for experienced people .. IIRC the first thing I learned in GIS was the difference between direct and direct connection of points depending on projection .. So for the answer to the question .. probably a self defined equidistant projection might be a solution (depending on the point of view). with a global view it might be hard to find a correct solution for different towns worldwide .. just my 2¢ kind regards Werner On Fri, Aug 24, 2012 at 10:32 AM, Anita Graser anitagra...@gmx.at wrote: Hi, This problem doesn't sound GRASS or QGIS specific. As far as I know, all GIS act like that. Compare http://gis.stackexchange.com/a/8031/187 for what happens if users (analysts at the Economist in that case) are not aware of it. Regards, Anita On Fri, Aug 24, 2012 at 10:16 AM, Paolo Cavallini cavall...@faunalia.itwrote: An interesting issue from GRASS ML. How do we deal with this issue? All the best. Messaggio originale Oggetto: [GRASS-user] What distance is being measured and used for buffers ? Data: Fri, 17 Aug 2012 17:35:00 +0200 Mittente: Moritz Lennert mlenn...@club.worldonline.be mlenn...@club.worldonline.be A: GRASS user list grass-u...@lists.osgeo.org grass-u...@lists.osgeo.org Hello, I have a fundamental question about distances in GRASS, also in relation to buffers, that I stumbled upon trying to help a student who tried to draw buffers around cities indicating the maximum distance airplanes could fly at different times in history. To test, I used the World Mercator projection: +proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +no_defs +a=6378137 +rf=298.257223563 +towgs84=0.000,0.000,0.000 +to_meter=1 This projection has obvious deformations the further you get from the equator, and thus distances are seriously distorted[1]. Using GRASS 6.5 to create a buffer of 6000km around Belgium gives a map which shows a circular buffer [2]. Using the distance measuring tool in the wxGUI confirms that the distance from Belgium to the buffer line in all directions is around 6000km. However, the actual distance is very different, especially towards the North: According to CloudMade's routing website based on OSM data northern tip of Norway is only ~3500km by car from Brussels, so very far from 6000km. I get exactly the same results using r.grow.distance and r.cost. For comparison, I used a simple Plate Carree projection: +proj=eqc +lat_ts=0 +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +no_defs +a=6371007 +b=6371007 +to_meter=1 Distortions are obviously different [3]. And the 6000km buffer is also positioned differently compared to the land masses [4]. Again, measuring the distances with the wxGUI distance tool gives me ~6000km in all directions. So, my question: which distance is used for measurement and for buffer creation ? A distance based buffer in map units should lead to deformed buffers in most projection systems. Is there anyway to achieve such deformed buffers and correct distance measures ? Moritz [1] http://164.15.12.207/grass/distances/worldmercator.png [2] http://164.15.12.207/grass/distances/buffer_worldmercator.png [3] http://164.15.12.207/grass/distances/platecarree.png [4] http://164.15.12.207/grass/distances/buffer_platecarree.png ___ grass-user mailing listgrass-user@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/grass-user ___ 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] No data value in raster transparency list
Hi Radim I don't have a strong opinion about wether to show nodata value in transparency list in the GUI or not. After all, the renderer sees only the transparency list and does not care which of them is the nodata value (except for the decision if the renderer is using transparency or not). If you think it is a big useability plus to hide that from the user, that's ok for me. we have to add support for it in GUI (set color) and renderers. Currently there is no such support. There is. If you e.g. have - as nodata value and configure singleband pseudocolor renderer to render this as red, you can do it in the dialog. There are other standard ways to highlight nodata: - set background color - set nodata pixels to a different value (r.null) and assign a color to it Yes, but it is less convenient. But nodata analysis does not happen to often for me, so I could live with a workaround. Regards, Marco Am 23.08.2012 13:59, schrieb Radim Blazek: On Thu, Aug 23, 2012 at 8:15 AM, Marco Hugentobler marco.hugentob...@sourcepole.ch wrote: Hi Radim Nodata should be rendered transparent in most cases. But it could also be possible you want to render it differently. E.g. the interpolation plugin writes nodata value in case it encounters numerical problems. Then it is useful to have the nodata values coloured to see where problems happened. There are other standard ways to highlight nodata: - set background color - set nodata pixels to a different value (r.null) and assign a color to it If you and other users insist that it should be possible to render nodata with a color, we have to add support for it in GUI (set color) and renderers. Currently there is no such support. Radim Maybe there are other use cases as well. Regards, Marco Am 22.08.2012 17:49, schrieb Radim Blazek: Hi, does anybody know why raster no data value is automatically added to transparency list in properties dialog? It makes no sense IMO. No data values are always rendered as transparent, no need to define them also in transparent list. Radim ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Dr. Marco Hugentobler Sourcepole - Linux Open Source Solutions Weberstrasse 5, CH-8004 Zürich, Switzerland marco.hugentob...@sourcepole.ch http://www.sourcepole.ch Technical Advisor QGIS Project Steering Committee ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Dr. Marco Hugentobler Sourcepole - Linux Open Source Solutions Weberstrasse 5, CH-8004 Zürich, Switzerland marco.hugentob...@sourcepole.ch http://www.sourcepole.ch Technical Advisor QGIS Project Steering Committee ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] dynamic (live processed) layers , a very bad idea?
Sometimes I would like to have the possibility to have dynamic layers. This term has a wide use, with different meanings, in the plethora of GIS softwares. With dynamic layer I mean a layer whose provider is some code acting on the original data, e.g. a spatial operator, a map algebra, etc. I know that it can implicate heavy workloads, depending on the processing involved, the amount of data, etc. In general I feel it would be nice being able to expose (in a qgs project, and so for QGis Server too) live processed layers. I know it's not an original idea. I simply wondered if it has been ever dicussed for QGis. giovanni ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] No data value in raster transparency list
On Fri, Aug 24, 2012 at 10:49 AM, Marco Hugentobler marco.hugentob...@sourcepole.ch wrote: Hi Radim I don't have a strong opinion about wether to show nodata value in transparency list in the GUI or not. After all, the renderer sees only the transparency list and does not care which of them is the nodata value (except for the decision if the renderer is using transparency or not). As I removed nodata from transparency list, I also added nodata check to renderers. If you think it is a big useability plus to hide that from the user, that's ok for me. It is a bit confusing I think, especially with no data values added internally by QGIS (out of data range). But especially it would be problem if for example, original data type is integer, but QGIS internally uses float, in that case it would not be possible to use QIntValidator in transparency list. we have to add support for it in GUI (set color) and renderers. Currently there is no such support. There is. If you e.g. have - as nodata value and configure singleband pseudocolor renderer to render this as red, you can do it in the dialog. Yes, but with gray and RGB? Radim There are other standard ways to highlight nodata: - set background color - set nodata pixels to a different value (r.null) and assign a color to it Yes, but it is less convenient. But nodata analysis does not happen to often for me, so I could live with a workaround. Regards, Marco Am 23.08.2012 13:59, schrieb Radim Blazek: On Thu, Aug 23, 2012 at 8:15 AM, Marco Hugentobler marco.hugentob...@sourcepole.ch wrote: Hi Radim Nodata should be rendered transparent in most cases. But it could also be possible you want to render it differently. E.g. the interpolation plugin writes nodata value in case it encounters numerical problems. Then it is useful to have the nodata values coloured to see where problems happened. There are other standard ways to highlight nodata: - set background color - set nodata pixels to a different value (r.null) and assign a color to it If you and other users insist that it should be possible to render nodata with a color, we have to add support for it in GUI (set color) and renderers. Currently there is no such support. Radim Maybe there are other use cases as well. Regards, Marco Am 22.08.2012 17:49, schrieb Radim Blazek: Hi, does anybody know why raster no data value is automatically added to transparency list in properties dialog? It makes no sense IMO. No data values are always rendered as transparent, no need to define them also in transparent list. Radim ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Dr. Marco Hugentobler Sourcepole - Linux Open Source Solutions Weberstrasse 5, CH-8004 Zürich, Switzerland marco.hugentob...@sourcepole.ch http://www.sourcepole.ch Technical Advisor QGIS Project Steering Committee ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Dr. Marco Hugentobler Sourcepole - Linux Open Source Solutions Weberstrasse 5, CH-8004 Zürich, Switzerland marco.hugentob...@sourcepole.ch http://www.sourcepole.ch Technical Advisor QGIS Project Steering Committee ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] (no subject)
Hi all I try to start the developpement for a custom application with qgis, so I try simple things like add a vector layer but I have some problems. In a python console when I try to do something like that : core.QgsApplication.setPrefixPath('/usr',True) core.QgsApplication.initQgis() l = core.QgsVectorLayer('/home/ludo/data/test.shp', 'test', 'ogr') l.isValid() I always have a False result But if I try in the python console of qgis : l = QgsVectorLayer('/home/ludo/data/test.shp', 'test', 'ogr') l.isValid() The result is True Is someone have an idea ? Are there any other documentation that http://qgis.org/pyqgis-cookbook/ Thanks a lot Ludovic___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Moving providers to core
Hi all. Now all data providers in QGIS implemented as plugins and have no Python (some of them also C++) bindings. Having bindings for providers will allow to work with complex datasources from plugins. For example, now it is impossible to get response from WMS server in Python plugin using only QGIS API. Maybe we should provide bindings for plugins? But here another problem appears: where to place this bindings? Core is wrong place because availability of plugins are not guaranteed. As possible solution plugins can be linked to core library. Any opinions? -- Alexander Bruy ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Moving providers to core
Hi All On Fri, Aug 24, 2012 at 4:27 PM, Alexander Bruy alexander.b...@gmail.com wrote: Hi all. Now all data providers in QGIS implemented as plugins and have no Python (some of them also C++) bindings. Having bindings for providers will allow to work with complex datasources from plugins. For example, now it is impossible to get response from WMS server in Python plugin using only QGIS API. Maybe we should provide bindings for plugins? But here another problem appears: where to place this bindings? Core is wrong place because availability of plugins are not guaranteed. As possible solution plugins can be linked to core library. Any opinions? When chatting about this to Alex earlier, I was also wondering is there really any need to have the providers be plugins? Maybe things would be simpler if they were compiled directly into core (or a single providers lib with python bindings)? Regards Tim -- Alexander Bruy ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Tim Sutton - QGIS Project Steering Committee Member (Release Manager) == 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. Visit http://linfiniti.com to find out about: * QGIS programming and support services * Mapserver and PostGIS based hosting plans * FOSS Consulting Services Skype: timlinux Irc: timlinux on #qgis at freenode.net == ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Moving providers to core
On Fri, Aug 24, 2012 at 11:51 AM, Tim Sutton li...@linfiniti.com wrote: Hi All On Fri, Aug 24, 2012 at 4:27 PM, Alexander Bruy alexander.b...@gmail.com wrote: Hi all. Now all data providers in QGIS implemented as plugins and have no Python (some of them also C++) bindings. Having bindings for providers will allow to work with complex datasources from plugins. For example, now it is impossible to get response from WMS server in Python plugin using only QGIS API. Maybe we should provide bindings for plugins? But here another problem appears: where to place this bindings? Core is wrong place because availability of plugins are not guaranteed. As possible solution plugins can be linked to core library. Any opinions? When chatting about this to Alex earlier, I was also wondering is there really any need to have the providers be plugins? Maybe things would be simpler if they were compiled directly into core (or a single providers lib with python bindings)? It would be easier, but one has to be able to know which provider(s) are available at runtime. Regards Tim -- Alexander Bruy ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Tim Sutton - QGIS Project Steering Committee Member (Release Manager) == 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. Visit http://linfiniti.com to find out about: * QGIS programming and support services * Mapserver and PostGIS based hosting plans * FOSS Consulting Services Skype: timlinux Irc: timlinux on #qgis at freenode.net == ___ 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] Python ogr driver issue (was ---- (no subject))
Hi (adding a proper subject line to your messages is always nice) On Fri, Aug 24, 2012 at 12:09 PM, ludo ludovic.gran...@wanadoo.fr wrote: Hi all I try to start the developpement for a custom application with qgis, so I try simple things like add a vector layer but I have some problems. In a python console when I try to do something like that : core.QgsApplication.setPrefixPath('/usr',True) core.QgsApplication.initQgis() l = core.QgsVectorLayer('/home/ludo/data/test.shp', 'test', 'ogr') l.isValid() I always have a False result But if I try in the python console of qgis : l = QgsVectorLayer('/home/ludo/data/test.shp', 'test', 'ogr') l.isValid() The result is True Is someone have an idea ? Are there any other documentation that http://qgis.org/pyqgis-cookbook/ There is a growing set of python unit tests that you can consult for ideas. Providiing the stdout from your console might help us to understand where your problem originates. Here is a little sript I often use: - import os import sys from qgis.core import QgsApplication, QgsProviderRegistry myUseDefaultPathFlag = True QGISAPP.setPrefixPath('/usr', myUseDefaultPathFlag) QGISAPP.initQgis() s = QGISAPP.showSettings() print s r = QgsProviderRegistry.instance() if not 'ogr' in r.providerList(): print 'Could not find OGR provider!' else: print 'Providers found ok!' - Hope that helps! Tim Thanks a lot Ludovic ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Tim Sutton - QGIS Project Steering Committee Member (Release Manager) == 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. Visit http://linfiniti.com to find out about: * QGIS programming and support services * Mapserver and PostGIS based hosting plans * FOSS Consulting Services Skype: timlinux Irc: timlinux on #qgis at freenode.net == ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Object owner design in QgsGraphBuilder
Hi On Fri, Aug 24, 2012 at 9:32 AM, Matthias Kuhn matthias.k...@gmx.ch wrote: Just figured out that the sip option /Factory/ tells python that it takes ownership of this object. So there won't be any memory loss. I'd still say this should be changed and if not at least stated in the API so anybody using this in C++ will be aware of this without reading the code. Patches to the code that document things better will be welome. Regards Tim On Thu, 2012-08-23 at 12:47 +, Kuhn Matthias, Vermessung wrote: Hi I've recently been working with the network analysis library. When I had a look at the code I noticed the following: In the constructor a new QgsGraph() mGraph is instantiated In the destructor mGraph is deleted if not null In the method graph() mGraph is returned and set to null This leads to the effect, that if I request the graph() from the QgsGraphBuilder ( and I normally will, as that's the only purpose of using the QgsGraphBuilder ) I get the full ownership and have to delete the graph-object, when I'm finished with it. But this is not stated in the API. So without looking at the code there is no way to know this. - How does python handle this? Does the following code delete this object? graph = graphBuilder.graph() graph = null - In my opinion, this is a wrong design. I would rather pass a graph-object to the graphbuilder in the constructor and let it fill this object. Then I know, that is my responsibility to delete it afterwards. I would provide a patch to change this if there are no good reasons to keep it the way it is. Regards, Matthias ___ 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 -- Tim Sutton - QGIS Project Steering Committee Member (Release Manager) == 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. Visit http://linfiniti.com to find out about: * QGIS programming and support services * Mapserver and PostGIS based hosting plans * FOSS Consulting Services Skype: timlinux Irc: timlinux on #qgis at freenode.net == ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] [gdal-dev] Large raster (ecw) identify very long
On Fri, Aug 24, 2012 at 1:45 PM, Even Rouault even.roua...@mines-paris.org wrote: I've fixed that in http://trac.osgeo.org/gdal/ticket/4790 in trunk and 1.9 branch. So it will be in GDAL 1.9.2. Actually, as I think that the ECW driver is generally available through a plugin (and not built-in in GDAL DLL), this could be available sooner if the ECW plugin is rebuilt with the fixed sources. Folks, I have created a calendar item for me on the weekend to rebuild the 1.9 ECW plugin for OSGeo4W. Hopefully I'll get it done soon. Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Software Developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] improvements to (cpt-city) color ramps and download plugin ColorRampManager
Hi all, I have just commited a few improvements to the cpt-city color ramp management, as well as the associated plugin used to download the svg color ramps - ColorRampManager 0.2. I have been working with the maintainer of the cpt-city archive in order to better organize the files and information/metadata, as well as creating a free-to-distribution selection within qgis. To see these changes you must - use latest master version of qgis - update ColorRampManager to 0.2 and download wither cpt-city entire archive or qgis selection Highlights are - dramatic speed improvement when loading many ramps - display of author and copyright information - better descriptions of directories and selections (via new xml files) Changes to ColorRampManager - 3 sets of ramps: builtin (no download), qgis selection (700KB ) and full cpt-city archive (3MB) - select where you want the archives to be saved: qgis user dir or qgis install dir - save the changes, then go the the style manager, it will use the archive + location you selected in the color ramp manager. - for now qgis-selection is hosted on my website, need to find a place on qgis.org to put those files. debug/dev stuff - internal refactoring - svg preview for debugging (left-click on the preview, this shows the builtin svg preview) - script to make a zip file out of a given selection - this will be the base of final selection that will ship with qgis. Please post any comments/feedback/bugs here Etienne ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Python support in project file
No objections from me. - Nathan On Thu, Aug 23, 2012 at 8:58 AM, Giuseppe Sucameli sucam...@faunalia.it wrote: I'll push it to master if nobody enter objections. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgisstyle binary file created in scripts folder and QGIS stalls
Hi, On Thu, Aug 23, 2012 at 10:36 PM, Bob and Deb bobd...@gmail.com wrote: I've noticed qgis hanging when you have a debug build. When I go to the console and click in it, the debug output unfreezes and qgis once again is responsive. Not sure if this is your problem? I think it is the same. But that, my system being a small netbook with atom processor, I cannot even move my cursor and unfreeze it as you say. :( Any idea what makes the debug build to hang up? Perhaps there is a fix. -- Regards Arunmozhi Twitter: @tecoholic Website: http://arunmozhi.in IRC Nick: teco ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Aruns work: hierarchical SVG symbol display issue
Hi, On Thu, Aug 23, 2012 at 10:33 PM, Bob and Deb bobd...@gmail.com wrote: It would be cool to have a folder called Recently Used with the same hierarchy as the svg folder and have that folder opened by default. We have something like this with the projection selector. On Thu, Aug 23, 2012 at 5:06 AM, Andreas Neumann a.neum...@carto.netwrote: Hi, I noticed that the cache seems to better work if a symbol was already an SVG symbols (only 4-5 seconds) whereas, if a symbol was e.g. a simple marker before and I change it to an SVG symbol I have to wait 8-9 seconds for the list to load. Getting your ideas. Better open a ticket in the bug tracker and put it in the SymbolV2 category so that it falls in the TODO list or is there one ticket already? -- Regards Arunmozhi Twitter: @tecoholic Website: http://arunmozhi.in IRC Nick: teco ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Aruns work: hierarchical SVG symbol display issue
I just created the ticket. Now you can run with it :) On Fri, Aug 24, 2012 at 7:57 PM, arunthe...@gmail.com arunthe...@gmail.comwrote: Hi, On Thu, Aug 23, 2012 at 10:33 PM, Bob and Deb bobd...@gmail.com wrote: It would be cool to have a folder called Recently Used with the same hierarchy as the svg folder and have that folder opened by default. We have something like this with the projection selector. On Thu, Aug 23, 2012 at 5:06 AM, Andreas Neumann a.neum...@carto.netwrote: Hi, I noticed that the cache seems to better work if a symbol was already an SVG symbols (only 4-5 seconds) whereas, if a symbol was e.g. a simple marker before and I change it to an SVG symbol I have to wait 8-9 seconds for the list to load. Getting your ideas. Better open a ticket in the bug tracker and put it in the SymbolV2 category so that it falls in the TODO list or is there one ticket already? -- Regards Arunmozhi Twitter: @tecoholic Website: http://arunmozhi.in IRC Nick: teco ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgisstyle binary file created in scripts folder and QGIS stalls
I wish I know what causes this problem. If this problem does not have a ticket, I'll make one. On Fri, Aug 24, 2012 at 7:51 PM, arunthe...@gmail.com arunthe...@gmail.comwrote: Hi, On Thu, Aug 23, 2012 at 10:36 PM, Bob and Deb bobd...@gmail.com wrote: I've noticed qgis hanging when you have a debug build. When I go to the console and click in it, the debug output unfreezes and qgis once again is responsive. Not sure if this is your problem? I think it is the same. But that, my system being a small netbook with atom processor, I cannot even move my cursor and unfreeze it as you say. :( Any idea what makes the debug build to hang up? Perhaps there is a fix. -- Regards Arunmozhi Twitter: @tecoholic Website: http://arunmozhi.in IRC Nick: teco ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer