[Qgis-developer] segfault

Peter Ersts ersts at amnh.org
Fri Sep 26 15:14:49 EDT 2008


Paolo,
Actually just deactivating is not enough to get the plugin to stop until 
you restart QIS. So I am sure it is still that plugin that is causing 
the problem.

However, with my recent changes to QgsRasterLayer::identify(), plugin 
does need to be updated.
my hack looked something like this (note it is just four lines at the 
beginning that are actually different...

Starting on line 114 of valuewidget.py
        for layer in rasterlayers:
            identifyResults = layer.identify(mapPos)
            isValid = identifyResults[0]
            ident = identifyResults[1]
            if isValid:
                layername=str(layer.name())
                iband=1
                for j in ident:  # loop over the bands
                    layernamewithband=layername
                    if len(ident)>1:
                        layernamewithband+=' '+j

                    self.values.append((layernamewithband,ident[j]))

                    cstr=layer.getContrastEnhancement(iband)
                    self.ymin=min(self.ymin,cstr.getMinimumValue())
                    self.ymax=max(self.ymax,cstr.getMaximumValue())
                    iband+=1

        self.printInTable()
        self.plot()


cheers
-pete


Paolo Cavallini wrote:
> Borys Jurgiel ha scritto:
>   
>> Friday 26 of September 2008 18:42:24 Paolo Cavallini napisał(a):
>>     
>>> Deactivating the Value tools plugin seems to cure the problem.
>>> All the best.
>>> pc
>>>       
>> Right! I'll contact the Author.
>>     
>
>
> Talked too early: still get the same erro, even after deactivating it.
> Perhaps I should uninstall it.
> All the best.
> pc
>   


-- 
====================================
Peter J. Ersts, Project Specialist
American Museum of Natural History
Center for Biodiversity and Conservation
Central Park West at 79th Street
New York, New York 10024
Tel: Home Office (518)-632-4745 or NYC Office (212)-496-3488
Web: http://biodiversityinformatics.amnh.org
Web: http://cbc.amnh.org

Quantum GIS Raster Development Team. Visit http://www.qgis.org
to learn more about QGIS, a free and open source desktop GIS

Open Source,
...evolving through community cooperation to change the world bit by bit



More information about the Qgis-developer mailing list