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 22, 2019
1 parent 48f837a commit 00972e0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions python/plugins/processing/algs/gdal/buildvrt.py
Expand Up @@ -80,11 +80,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/retile.py
Expand Up @@ -65,11 +65,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 @@ -67,18 +67,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 00972e0

Please sign in to comment.