Skip to content
Permalink
Browse files

Rename hillshade renderer in drop down (#3245)

Remove non functioning code for setting resampling automagically for hillshade renderer
  • Loading branch information
AsgerPetersen authored and NathanW2 committed Jun 27, 2016
1 parent 3d319d9 commit 00dc27fd27f9a76ec84e853798b57cee60bf3cbf
Showing with 1 addition and 5 deletions.
  1. +1 −1 src/core/raster/qgsrasterrendererregistry.cpp
  2. +0 −4 src/gui/raster/qgshillshaderendererwidget.cpp
@@ -62,7 +62,7 @@ QgsRasterRendererRegistry::QgsRasterRendererRegistry()
QgsSingleBandPseudoColorRenderer::create, nullptr ) );
insert( QgsRasterRendererRegistryEntry( "singlebandcolordata", QObject::tr( "Singleband color data" ),
QgsSingleBandColorDataRenderer::create, nullptr ) );
insert( QgsRasterRendererRegistryEntry( "hillshade", QObject::tr( "Hillshade renderer" ),
insert( QgsRasterRendererRegistryEntry( "hillshade", QObject::tr( "Hillshade" ),
QgsHillshadeRenderer::create, nullptr ) );
}

@@ -66,10 +66,6 @@ QgsHillshadeRendererWidget::QgsHillshadeRendererWidget( QgsRasterLayer *layer, c
connect( mLightAzimuthDial, SIGNAL( valueChanged( int ) ), this, SLOT( on_mLightAzimuthDail_updated( int ) ) );
connect( mZFactor, SIGNAL( valueChanged( double ) ), this, SIGNAL( widgetChanged() ) );
connect( mMultiDirection, SIGNAL( toggled( bool ) ), this, SIGNAL( widgetChanged() ) );

QgsBilinearRasterResampler* zoomedInResampler = new QgsBilinearRasterResampler();
layer->resampleFilter()->setZoomedInResampler( zoomedInResampler );

}

QgsHillshadeRendererWidget::~QgsHillshadeRendererWidget()

0 comments on commit 00dc27f

Please sign in to comment.
You can’t perform that action at this time.