[Qgis-developer] Re: Display raster fails

Radim Blazek radim.blazek at gmail.com
Fri Mar 24 09:19:26 EST 2006


On 3/24/06, Luca Casagrande <luca.casagrande at gmail.com> wrote:
> Hi guys!
> I am currently working with latest SVN , but after the today sync ( i know
> that it's not a good way of work using the unstable edition, but bug-testing
> had to be done) i can't display raster anymore...
> How can I use the previus SVN?

It is already fixed in SVN.
You can get older revision with -r flag, for example
svn update -r 999

Radim

> Thx
> Luca
>
> Alle 10:51, venerdì 24 marzo 2006, Radim Blazek ha scritto:
> > On 3/24/06, Marco Hugentobler <marco.hugentobler at autoform.ch> wrote:
> > > Hi Radim,
> > >
> > > This fails because of a recent change (i think of morb_au).
> > > To fix it right now, go to
> > > QgisApp::activateDeactivateLayerRelatedActions near the bottom and add a
> > > test for null pointer of the raster provider.
> >
> > Sorry for CC, I had seen QgsLegend..., I have also found that it is
> > probably caused by  http://svn.qgis.org/trac/changeset/5080
> >
> > I dont understand how can this:
> >
> > else if(layer->type() == QgsMapLayer::RASTER) {
> >     const QgsRasterLayer* vlayer = dynamic_cast<const QgsRasterLayer*>
> > (layer);
> >
> > result in null vlayer.
> >
> > Radim
> >
> > > Marco
> > >
> > > Radim Blazek wrote:
> > > >Fresh SVN version crashes if a raster is opened.
> > > >
> > > >Last debug:
> > > >
> > > >QgsMapCanvas::drawContents
> > > >QgsMapCanvas::render: canvas is frozen
> > > >panning: extent to widget: [12,0] [42x36]
> > > >QgsMapCanvasItem::updatePosition: <AUTO> [11,0]-[268x245]
> > > >/ssi0/ssi/blazek/bin/myqgis-head: line 6:  8774 Segmentation fault
> > > > (core dumped)
> > > >
> > > >Back trace:
> > > >
> > > >#0  QgisApp::activateDeactivateLayerRelatedActions (this=0x5c37c0,
> > > >layer=Variable "layer" is not available.
> > > >)
> > > >    at qgisapp.cpp:4961
> > > >#1  0x0000002a9569e4b1 in QgsLegend::handleCurrentItemChanged (
> > > >    this=0x6a9590, current=Variable "current" is not available.
> > > >) at qgslegend.cpp:95
> > > >#2  0x0000002a956aeeee in QgsLegend::qt_metacall (this=0x6a9590,
> > > >    _c=QMetaObject::InvokeMetaMethod, _id=-5, _a=0x7fbfffc4a0)
> > > >    at qgslegend.moc.cpp:112
> > > >#3  0x0000002a984f65e2 in QMetaObject::activate ()
> > > >
> > > >Radim
>
> --
> "E' molto più bello sapere qualcosa di tutto, che tutto di una cosa (Blaise
> Pascal)."
>
> GENTOO-GIS Development Team
> jabber: casagrande at jabber.linux.it
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.qgis.org
> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
>



More information about the Qgis-developer mailing list