Skip to content

Commit fede75f

Browse files
committedFeb 12, 2019
fixed spellcheck
1 parent 67599c4 commit fede75f

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed
 

‎src/core/raster/qgscontrastenhancement.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,8 @@ void QgsContrastEnhancement::toSld( QDomDocument &doc, QDomElement &element ) co
399399
case NoEnhancement:
400400
return;
401401
default:
402-
QgsDebugMsgLevel( QStringLiteral( "No SLD1.0 convertion yet for stretch algorithm %1" ).arg( contrastEnhancementAlgorithmString( contrastEnhancementAlgorithm() ) ), 4 );
402+
QString algName = contrastEnhancementAlgorithmString( contrastEnhancementAlgorithm() );
403+
QgsDebugMsg( QObject::tr( "No SLD1.0 conversion yet for stretch algorithm %1" ).arg( algName ) );
403404
return;
404405
}
405406

‎src/core/raster/qgsmultibandcolorrenderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ void QgsMultiBandColorRenderer::toSld( QDomDocument &doc, QDomElement &element,
433433
// TODO: the following jumped code is necessary to avoid to export channelSelection in
434434
// case it's set as default value. The drawback is that it's necessary to calc band
435435
// statistics that can be really slow depending on dataProvider and rastr localtion.
436-
// this is the reason this part of code is commented and the channelSlection is
436+
// this is the reason this part of code is commented and the channelSelection is
437437
// always exported.
438438
//
439439
// before to export check if the band combination and contrast setting are the

‎src/core/raster/qgsrasterlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ bool QgsRasterLayer::writeSld( QDomNode &node, QDomDocument &doc, QString &error
12331233

12341234
if ( isSpatial() ) // TODO: does it make sense this control?
12351235
{
1236-
// store contraints
1236+
// store constraints
12371237
QDomElement constraintElem = doc.createElement( QStringLiteral( "sld:LayerFeatureConstraints" ) );
12381238
node.appendChild( constraintElem );
12391239

‎src/core/raster/qgssinglebandgrayrenderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ void QgsSingleBandGrayRenderer::toSld( QDomDocument &doc, QDomElement &element,
322322
// min/max calculation again that can takes a lot for remote or big images
323323
//
324324
// contrast enhancement against a color map can be SLD simulated playing with ColorMapEntryies
325-
// each ContrastEnhancementAlgorithm need a specfic management.
325+
// each ContrastEnhancementAlgorithm need a specific management.
326326
// set type of ColorMap ramp [ramp, intervals, values]
327327
// basing on interpolation algorithm of the raster shader
328328
QList< QPair< QString, QColor > > colorMapping( classes );

‎tests/src/python/test_qgsrasterlayer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ def testWriteSld(self):
747747
vendorOptions = rasterSymbolizer.elementsByTagName('sld:VendorOption')
748748
self.assertTrue(vendorOptions.size() == 0)
749749

750-
# set no defalt values and check exported sld
750+
# set no default values and check exported sld
751751
myRasterLayer.setName('')
752752
myRasterLayer.setAbstract('fake')
753753
myRasterLayer.setTitle('fake')

0 commit comments

Comments
 (0)
Please sign in to comment.