Skip to content

Commit

Permalink
Title case the resampling options
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ authored and nyalldawson committed May 19, 2019
1 parent bd2fc75 commit 6e5976e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions python/plugins/processing/algs/gdal/buildvrt.py
Expand Up @@ -76,11 +76,11 @@ def type(self):
def defaultFileExtension(self):
return 'vrt'

self.RESAMPLING_OPTIONS = ((self.tr('Nearest neighbour'), 'nearest'),
self.RESAMPLING_OPTIONS = ((self.tr('Nearest Neighbour'), 'nearest'),
(self.tr('Bilinear'), 'bilinear'),
(self.tr('Cubic convolution'), 'cubic'),
(self.tr('B-Spline convolution'), 'cubicspline'),
(self.tr('Lanczos windowed sinc'), 'lanczos'),
(self.tr('Cubic Convolution'), 'cubic'),
(self.tr('B-Spline Convolution'), 'cubicspline'),
(self.tr('Lanczos Windowed Sinc'), 'lanczos'),
(self.tr('Average'), 'average'),
(self.tr('Mode'), 'mode'))

Expand Down
6 changes: 3 additions & 3 deletions python/plugins/processing/algs/gdal/pansharp.py
Expand Up @@ -52,11 +52,11 @@ def __init__(self):
super().__init__()

def initAlgorithm(self, config=None):
self.methods = ((self.tr('Nearest neighbour'), 'nearest'),
self.methods = ((self.tr('Nearest Neighbour'), 'nearest'),
(self.tr('Bilinear'), 'bilinear'),
(self.tr('Cubic'), 'cubic'),
(self.tr('Cubic spline'), 'cubicspline'),
(self.tr('Lanczos windowed sinc'), 'lanczos'),
(self.tr('Cubic Spline'), 'cubicspline'),
(self.tr('Lanczos Windowed Sinc'), 'lanczos'),
(self.tr('Average'), 'average'))

self.addParameter(QgsProcessingParameterRasterLayer(self.SPECTRAL,
Expand Down
6 changes: 3 additions & 3 deletions python/plugins/processing/algs/gdal/retile.py
Expand Up @@ -61,11 +61,11 @@ def __init__(self):
super().__init__()

def initAlgorithm(self, config=None):
self.methods = ((self.tr('Nearest neighbour'), 'near'),
self.methods = ((self.tr('Nearest Neighbour'), 'near'),
(self.tr('Bilinear'), 'bilinear'),
(self.tr('Cubic'), 'cubic'),
(self.tr('Cubic spline'), 'cubicspline'),
(self.tr('Lanczos windowed sinc'), 'lanczos'),)
(self.tr('Cubic Spline'), 'cubicspline'),
(self.tr('Lanczos Windowed Sinc'), 'lanczos'),)

self.addParameter(QgsProcessingParameterMultipleLayers(self.INPUT,
self.tr('Input files'),
Expand Down
10 changes: 5 additions & 5 deletions python/plugins/processing/algs/gdal/warp.py
Expand Up @@ -63,18 +63,18 @@ def __init__(self):
super().__init__()

def initAlgorithm(self, config=None):
self.methods = ((self.tr('Nearest neighbour'), 'near'),
self.methods = ((self.tr('Nearest Neighbour'), 'near'),
(self.tr('Bilinear'), 'bilinear'),
(self.tr('Cubic'), 'cubic'),
(self.tr('Cubic spline'), 'cubicspline'),
(self.tr('Lanczos windowed sinc'), 'lanczos'),
(self.tr('Cubic Spline'), 'cubicspline'),
(self.tr('Lanczos Windowed Sinc'), 'lanczos'),
(self.tr('Average'), 'average'),
(self.tr('Mode'), 'mode'),
(self.tr('Maximum'), 'max'),
(self.tr('Minimum'), 'min'),
(self.tr('Median'), 'med'),
(self.tr('First quartile'), 'q1'),
(self.tr('Third quartile'), 'q3'))
(self.tr('First Quartile'), 'q1'),
(self.tr('Third Quartile'), 'q3'))

self.TYPES = [self.tr('Use Input Layer Data Type'), 'Byte', 'Int16', 'UInt16', 'UInt32', 'Int32', 'Float32', 'Float64', 'CInt16', 'CInt32', 'CFloat32', 'CFloat64']

Expand Down

0 comments on commit 6e5976e

Please sign in to comment.