Navigation Menu

Skip to content

Commit

Permalink
fixed spellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
luipir committed Feb 12, 2019
1 parent 67599c4 commit fede75f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/core/raster/qgscontrastenhancement.cpp
Expand Up @@ -399,7 +399,8 @@ void QgsContrastEnhancement::toSld( QDomDocument &doc, QDomElement &element ) co
case NoEnhancement: case NoEnhancement:
return; return;
default: default:
QgsDebugMsgLevel( QStringLiteral( "No SLD1.0 convertion yet for stretch algorithm %1" ).arg( contrastEnhancementAlgorithmString( contrastEnhancementAlgorithm() ) ), 4 ); QString algName = contrastEnhancementAlgorithmString( contrastEnhancementAlgorithm() );
QgsDebugMsg( QObject::tr( "No SLD1.0 conversion yet for stretch algorithm %1" ).arg( algName ) );
return; return;
} }


Expand Down
2 changes: 1 addition & 1 deletion src/core/raster/qgsmultibandcolorrenderer.cpp
Expand Up @@ -433,7 +433,7 @@ void QgsMultiBandColorRenderer::toSld( QDomDocument &doc, QDomElement &element,
// TODO: the following jumped code is necessary to avoid to export channelSelection in // TODO: the following jumped code is necessary to avoid to export channelSelection in
// case it's set as default value. The drawback is that it's necessary to calc band // case it's set as default value. The drawback is that it's necessary to calc band
// statistics that can be really slow depending on dataProvider and rastr localtion. // statistics that can be really slow depending on dataProvider and rastr localtion.
// this is the reason this part of code is commented and the channelSlection is // this is the reason this part of code is commented and the channelSelection is
// always exported. // always exported.
// //
// before to export check if the band combination and contrast setting are the // before to export check if the band combination and contrast setting are the
Expand Down
2 changes: 1 addition & 1 deletion src/core/raster/qgsrasterlayer.cpp
Expand Up @@ -1233,7 +1233,7 @@ bool QgsRasterLayer::writeSld( QDomNode &node, QDomDocument &doc, QString &error


if ( isSpatial() ) // TODO: does it make sense this control? if ( isSpatial() ) // TODO: does it make sense this control?
{ {
// store contraints // store constraints
QDomElement constraintElem = doc.createElement( QStringLiteral( "sld:LayerFeatureConstraints" ) ); QDomElement constraintElem = doc.createElement( QStringLiteral( "sld:LayerFeatureConstraints" ) );
node.appendChild( constraintElem ); node.appendChild( constraintElem );


Expand Down
2 changes: 1 addition & 1 deletion src/core/raster/qgssinglebandgrayrenderer.cpp
Expand Up @@ -322,7 +322,7 @@ void QgsSingleBandGrayRenderer::toSld( QDomDocument &doc, QDomElement &element,
// min/max calculation again that can takes a lot for remote or big images // min/max calculation again that can takes a lot for remote or big images
// //
// contrast enhancement against a color map can be SLD simulated playing with ColorMapEntryies // contrast enhancement against a color map can be SLD simulated playing with ColorMapEntryies
// each ContrastEnhancementAlgorithm need a specfic management. // each ContrastEnhancementAlgorithm need a specific management.
// set type of ColorMap ramp [ramp, intervals, values] // set type of ColorMap ramp [ramp, intervals, values]
// basing on interpolation algorithm of the raster shader // basing on interpolation algorithm of the raster shader
QList< QPair< QString, QColor > > colorMapping( classes ); QList< QPair< QString, QColor > > colorMapping( classes );
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsrasterlayer.py
Expand Up @@ -747,7 +747,7 @@ def testWriteSld(self):
vendorOptions = rasterSymbolizer.elementsByTagName('sld:VendorOption') vendorOptions = rasterSymbolizer.elementsByTagName('sld:VendorOption')
self.assertTrue(vendorOptions.size() == 0) self.assertTrue(vendorOptions.size() == 0)


# set no defalt values and check exported sld # set no default values and check exported sld
myRasterLayer.setName('') myRasterLayer.setName('')
myRasterLayer.setAbstract('fake') myRasterLayer.setAbstract('fake')
myRasterLayer.setTitle('fake') myRasterLayer.setTitle('fake')
Expand Down

0 comments on commit fede75f

Please sign in to comment.