[Qgis-developer] Re: Display raster fails
Radim Blazek
radim.blazek at gmail.com
Fri Mar 24 07:36:54 EST 2006
On 3/24/06, Marco Hugentobler <marco.hugentobler at autoform.ch> wrote:
>
>
> Radim Blazek wrote:
>
> >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
> >
> The vlayer is 0? When i had a quick look at it yesterday evening, i
> thought that dprovider might be 0 (i think the normal raster layers
> don't use providers, only WMS).
I don't know but I added test for vlayer and it woked.
Now I added also test for driver.
Radim
> Marco
>
>
More information about the Qgis-developer
mailing list