[Qgis-developer] segfault
Ghislain Picard
ghislain.picard at lgge.obs.ujf-grenoble.fr
Sat Sep 27 15:45:30 EDT 2008
Hi,
I have now a corrected version of valuetool. Every plugins that use
identify needs upgrade.
However, I have not uploaded the new version on the repository because
the preview 1.0.0 version uses the former identify method...
How to deal with these different versions ?
Do we really need a repository for the HEAD, one for the last stable,
and one for the to be released soon... Any idea ?
valuetool.zip for the HEAD is attached.
Ghislain
Peter Ersts wrote:
> 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
>>
>
>
--
Ghislain Picard
Laboratoire Glaciologie et Geophysique de l'Environnement
54 rue Molière
38400 St Martin d'Hères, FRANCE
tel : +33 476 82 42 42
fax : +33 476 82 42 01
-------------- next part --------------
A non-text attachment was scrubbed...
Name: valuetool.zip
Type: application/zip
Size: 5324 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/qgis-developer/attachments/20080927/0f3e347f/valuetool.zip
More information about the Qgis-developer
mailing list