[Qgis-developer] visualizing 3D data (Z values) or data with z attribute: a solution

2012-09-29 Thread gene
After the post of Etienne Tourigny about "Using/visualizing 3D data (Z values)", I realized that it was relatively easy from the Python console with matplotlib or visvis (new pure Python library for visualization of 1D to 4D data, http://code.google.com/p/visvis/

Re: [Qgis-developer] Inconsistant use of VSIMalloc() / malloc() and VSIFree() / free()

2012-09-29 Thread Etienne Tourigny
Hello, On Sat, Sep 29, 2012 at 10:59 AM, Even Rouault wrote: > Le samedi 29 septembre 2012 15:24:59, Etienne Tourigny a écrit : >> Hi, >> >> my opinion is that VSIMalloc/VSIFree should be used mainly by the >> gdal/ogr providers, and if needed elsewhere (e.g. when calling >> gdal/ogr code) > > Th

[Qgis-developer] Sharing development

2012-09-29 Thread Paolo Cavallini
Hi all. It is quite evident that QGIS ecosystem, and the speed of development, is rapidly expanding. Obviously this is a most welcome news. I notice that it is happening that more and more often our paths are crossing, and the potential for duplicating work is high. I would therefore invite ever

Re: [Qgis-developer] Making QgsProject available to python plugins

2012-09-29 Thread Sandro Santilli
On Sat, Sep 29, 2012 at 02:45:10PM +0200, Sandro Santilli wrote: > On Sat, Sep 29, 2012 at 02:36:37PM +0200, Sandro Santilli wrote: > > On Sat, Sep 29, 2012 at 03:32:58PM +0300, Alexander Bruy wrote: > > > AFAIK, QgsProject already available from Python. Just use > > > QgsProject.instance() to acce

Re: [Qgis-developer] Inconsistant use of VSIMalloc() / malloc() and VSIFree() / free()

2012-09-29 Thread Even Rouault
Le samedi 29 septembre 2012 15:24:59, Etienne Tourigny a écrit : > Hi, > > my opinion is that VSIMalloc/VSIFree should be used mainly by the > gdal/ogr providers, and if needed elsewhere (e.g. when calling > gdal/ogr code) This is even not needed for code that interact with GDAL/OGR. GDAL/OGR fu

Re: [Qgis-developer] Inconsistant use of VSIMalloc() / malloc() and VSIFree() / free()

2012-09-29 Thread Etienne Tourigny
Hi, my opinion is that VSIMalloc/VSIFree should be used mainly by the gdal/ogr providers, and if needed elsewhere (e.g. when calling gdal/ogr code), but alloc/free only internally to a function/class. Basically, following Even's recommendations. for example, in QgsRasterDataProvider::readBlock :

Re: [Qgis-developer] Making QgsProject available to python plugins

2012-09-29 Thread Sandro Santilli
On Sat, Sep 29, 2012 at 02:36:37PM +0200, Sandro Santilli wrote: > On Sat, Sep 29, 2012 at 03:32:58PM +0300, Alexander Bruy wrote: > > AFAIK, QgsProject already available from Python. Just use > > QgsProject.instance() to access it. Maybe you mean that > > some methods currently not exposed in Pyth

Re: [Qgis-developer] Making QgsProject available to python plugins

2012-09-29 Thread Sandro Santilli
On Sat, Sep 29, 2012 at 03:32:58PM +0300, Alexander Bruy wrote: > AFAIK, QgsProject already available from Python. Just use > QgsProject.instance() to access it. Maybe you mean that > some methods currently not exposed in Python API? NameError: global name 'QgsProject' is not defined Do I need to

Re: [Qgis-developer] Making QgsProject available to python plugins

2012-09-29 Thread Alexander Bruy
AFAIK, QgsProject already available from Python. Just use QgsProject.instance() to access it. Maybe you mean that some methods currently not exposed in Python API? 2012/9/29 Sandro Santilli : > How do I make QgsProject available to python plugins ? > I read on API docs it's not available but I do

[Qgis-developer] Making QgsProject available to python plugins

2012-09-29 Thread Sandro Santilli
How do I make QgsProject available to python plugins ? I read on API docs it's not available but I do see a qgsproject.sip file under python/core so I'm wondering what's missing. I'd like to use it to add layers in another project file to the currently loaded project. --strk; ___

Re: [Qgis-developer] Inconsistant use of VSIMalloc() / malloc() and VSIFree() / free()

2012-09-29 Thread Even Rouault
Le samedi 29 septembre 2012 12:58:09, Paolo Cavallini a écrit : > Il 28/09/2012 22:45, Even Rouault ha scritto: > > Hi, > > > > I'm running QGIS master with a GDAL trunk built with a mechanism to > > detect unbalanced use of VSIMalloc() and VSIFree(). > > Hi Even, > thanks for pointing this ou. P

Re: [Qgis-developer] Inconsistant use of VSIMalloc() / malloc() and VSIFree() / free()

2012-09-29 Thread Paolo Cavallini
Il 28/09/2012 22:45, Even Rouault ha scritto: > Hi, > > I'm running QGIS master with a GDAL trunk built with a mechanism to detect > unbalanced use of VSIMalloc() and VSIFree(). Hi Even, thanks for pointing this ou. Perhaps better opening a ticket, not to forget about this? And/or adding it to