Skip to content
Permalink
Browse files

integrate processing into update_ts.sh (also includes all translations

in the repository and none outside of it).
  • Loading branch information
jef-n committed Jul 26, 2015
1 parent 89e9980 commit 66a3d02240870da893918522596370cbddc770f2
Showing 526 changed files with 965 additions and 1,451 deletions.
@@ -19,8 +19,6 @@
.pydevproject
/CMakeLists.txt.user
/CMakeLists.txt.user.*
/python/plugins/sextante/about/ui_aboutdialogbase.py
/python/plugins/sextante/resources_rc.py
api_doc
build*
debian/*.debhelper
@@ -60,10 +60,10 @@ def defineCharacteristics(self):
"""

# The name that the user will see in the toolbox
self.name = 'Create copy of layer'
self.name, self.i18n_name = self.trAlgorithm('Create copy of layer')

# The branch of the toolbox under which the algorithm will appear
self.group = 'Algorithms for vector layers'
self.group, self.i18n_group = self.trAlgorithm('Algorithms for vector layers')

# We add the input vector layer. It can have any kind of geometry
# It is a mandatory (not optional) one, hence the False argument
@@ -44,8 +44,8 @@ class ClipByExtent(GdalAlgorithm):
EXTRA = 'EXTRA'

def defineCharacteristics(self):
self.name = 'Clip raster by extent'
self.group = '[GDAL] Extraction'
self.name, self.i18n_name = self.trAlgorithm('Clip raster by extent')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Extraction')
self.addParameter(ParameterRaster(
self.INPUT, self.tr('Input layer'), False))
self.addParameter(ParameterString(self.NO_DATA,
@@ -50,8 +50,8 @@ class ClipByMask(GdalAlgorithm):
EXTRA = 'EXTRA'

def defineCharacteristics(self):
self.name = 'Clip raster by mask layer'
self.group = '[GDAL] Extraction'
self.name, self.i18n_name = self.trAlgorithm('Clip raster by mask layer')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Extraction')
self.addParameter(ParameterRaster(self.INPUT, self.tr('Input layer'), False))
self.addParameter(ParameterVector(self.MASK, self.tr('Mask layer'),
[ParameterVector.VECTOR_TYPE_POLYGON]))
@@ -51,8 +51,8 @@ class ColorRelief(GdalAlgorithm):
# return QIcon(filepath)

def defineCharacteristics(self):
self.name = 'Color relief'
self.group = '[GDAL] Analysis'
self.name, self.i18n_name = self.trAlgorithm('Color relief')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Analysis')
self.addParameter(ParameterRaster(self.INPUT, self.tr('Input layer')))
self.addParameter(ParameterNumber(
self.BAND, self.tr('Band number'), 1, 99, 1))
@@ -54,8 +54,8 @@ def commandLineName(self):
return "gdalogr:gridaverage"

def defineCharacteristics(self):
self.name = 'Grid (Moving average)'
self.group = '[GDAL] Analysis'
self.name, self.i18n_name = self.trAlgorithm('Grid (Moving average)')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Analysis')
self.addParameter(ParameterVector(self.INPUT,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_POINT]))
self.addParameter(ParameterTableField(self.Z_FIELD,
@@ -58,8 +58,8 @@ def commandLineName(self):
return "gdalogr:griddatametrics"

def defineCharacteristics(self):
self.name = 'Grid (Data metrics)'
self.group = '[GDAL] Analysis'
self.name, self.i18n_name = self.trAlgorithm('Grid (Data metrics)')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Analysis')
self.addParameter(ParameterVector(self.INPUT,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_POINT]))
self.addParameter(ParameterTableField(self.Z_FIELD,
@@ -58,8 +58,8 @@ def commandLineName(self):
return "gdalogr:gridinvdist"

def defineCharacteristics(self):
self.name = 'Grid (Inverse distance to a power)'
self.group = '[GDAL] Analysis'
self.name, self.i18n_name = self.trAlgorithm('Grid (Inverse distance to a power)')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Analysis')
self.addParameter(ParameterVector(self.INPUT,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_POINT]))
self.addParameter(ParameterTableField(self.Z_FIELD,
@@ -54,8 +54,8 @@ def commandLineName(self):
return "gdalogr:gridnearestneighbor"

def defineCharacteristics(self):
self.name = 'Grid (Nearest neighbor)'
self.group = '[GDAL] Analysis'
self.name, self.i18n_name = self.trAlgorithm('Grid (Nearest neighbor)')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Analysis')
self.addParameter(ParameterVector(self.INPUT,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_POINT]))
self.addParameter(ParameterTableField(self.Z_FIELD,
@@ -49,8 +49,8 @@ class aspect(GdalAlgorithm):
# return QIcon(filepath)

def defineCharacteristics(self):
self.name = 'Aspect'
self.group = '[GDAL] Analysis'
self.name, self.i18n_name = self.trAlgorithm('Aspect')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Analysis')
self.addParameter(ParameterRaster(self.INPUT, self.tr('Input layer')))
self.addParameter(ParameterNumber(
self.BAND, self.tr('Band number'), 1, 99, 1))
@@ -92,4 +92,4 @@ def getConsoleCommands(self):
arguments.append('-zero_for_flat')

return ['gdaldem', GdalUtils.escapeAndJoin(arguments)]

@@ -47,8 +47,8 @@ class buildvrt(GdalAlgorithm):
RESOLUTION_OPTIONS = ['average', 'highest', 'lowest']

def defineCharacteristics(self):
self.name = 'Build Virtual Raster'
self.group = '[GDAL] Miscellaneous'
self.name, self.i18n_name = self.trAlgorithm('Build Virtual Raster')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Miscellaneous')
self.addParameter(ParameterMultipleInput(self.INPUT,
self.tr('Input layers'), ParameterMultipleInput.TYPE_RASTER))
self.addParameter(ParameterSelection(self.RESOLUTION,
@@ -45,8 +45,8 @@ class contour(GdalAlgorithm):
EXTRA = 'EXTRA'

def defineCharacteristics(self):
self.name = 'Contour'
self.group = '[GDAL] Extraction'
self.name, self.i18n_name = self.trAlgorithm('Contour')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Extraction')
self.addParameter(ParameterRaster(self.INPUT_RASTER,
self.tr('Input layer'), False))
self.addParameter(ParameterNumber(self.INTERVAL,
@@ -40,8 +40,8 @@ class ExtractProjection(GdalAlgorithm):
PRJ_FILE = 'PRJ_FILE'

def defineCharacteristics(self):
self.name = 'Extract projection'
self.group = '[GDAL] Projections'
self.name, self.i18n_name = self.trAlgorithm('Extract projection')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Projections')
self.addParameter(ParameterRaster(self.INPUT, self.tr('Input file')))
self.addParameter(ParameterBoolean(self.PRJ_FILE,
self.tr('Create also .prj file'), False))
@@ -49,8 +49,8 @@ class fillnodata(GdalAlgorithm):
OUTPUT = 'OUTPUT'

def defineCharacteristics(self):
self.name = 'Fill nodata'
self.group = '[GDAL] Analysis'
self.name, self.i18n_name = self.trAlgorithm('Fill nodata')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Analysis')
self.addParameter(ParameterRaster(
self.INPUT, self.tr('Input layer'), False))
self.addParameter(ParameterNumber(self.DISTANCE,
@@ -43,8 +43,8 @@ class gdal2xyz(GdalAlgorithm):
OUTPUT = 'OUTPUT'

def defineCharacteristics(self):
self.name = 'gdal2xyz'
self.group = '[GDAL] Conversion'
self.name, self.i18n_name = self.trAlgorithm('gdal2xyz')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Conversion')
self.addParameter(ParameterRaster(
self.INPUT, self.tr('Input layer'), False))
self.addParameter(ParameterNumber(self.BAND,
@@ -61,8 +61,8 @@ def commandLineName(self):
return "gdalogr:overviews"

def defineCharacteristics(self):
self.name = 'Build overviews (pyramids)'
self.group = '[GDAL] Miscellaneous'
self.name, self.i18n_name = self.trAlgorithm('Build overviews (pyramids)')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Miscellaneous')
self.addParameter(ParameterRaster(
self.INPUT, self.tr('Input layer'), False))
self.addParameter(ParameterString(self.LEVELS,
@@ -62,8 +62,8 @@ class gdalcalc(GdalAlgorithm):
#DEBUG = 'DEBUG'

def defineCharacteristics(self):
self.name = 'Raster calculator'
self.group = '[GDAL] Miscellaneous'
self.name, self.i18n_name = self.trAlgorithm('Raster calculator')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Miscellaneous')
self.addParameter(ParameterRaster(
self.INPUT_A, self.tr('Input layer A'), False))
self.addParameter(ParameterString(self.BAND_A,
@@ -43,8 +43,8 @@ class gdaltindex(GdalAlgorithm):
PROJ_DIFFERENCE = 'PROJ_DIFFERENCE'

def defineCharacteristics(self):
self.name = 'Tile Index'
self.group = '[GDAL] Miscellaneous'
self.name, self.i18n_name = self.trAlgorithm('Tile Index')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Miscellaneous')
self.addParameter(ParameterMultipleInput(self.INPUT,
self.tr('Input layers'), ParameterMultipleInput.TYPE_RASTER))
self.addParameter(ParameterString(self.FIELD_NAME,
@@ -47,8 +47,8 @@ class hillshade(GdalAlgorithm):
OUTPUT = 'OUTPUT'

def defineCharacteristics(self):
self.name = 'Hillshade'
self.group = '[GDAL] Analysis'
self.name, self.i18n_name = self.trAlgorithm('Hillshade')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Analysis')
self.addParameter(ParameterRaster(self.INPUT, self.tr('Input layer')))
self.addParameter(ParameterNumber(self.BAND,
self.tr('Band number'), 1, 99, 1))
@@ -43,8 +43,8 @@ def commandLineName(self):
return "gdalorg:rasterinfo"

def defineCharacteristics(self):
self.name = 'Information'
self.group = '[GDAL] Miscellaneous'
self.name, self.i18n_name = self.trAlgorithm('Information')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Miscellaneous')
self.addParameter(ParameterRaster(information.INPUT,
self.tr('Input layer'), False))
self.addParameter(ParameterBoolean(information.NOGCP,
@@ -46,8 +46,8 @@ class merge(GdalAlgorithm):
TYPE = ['Byte', 'Int16', 'UInt16', 'UInt32', 'Int32', 'Float32', 'Float64']

def defineCharacteristics(self):
self.name = 'Merge'
self.group = '[GDAL] Miscellaneous'
self.name, self.i18n_name = self.trAlgorithm('Merge')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Miscellaneous')
self.addParameter(ParameterMultipleInput(merge.INPUT,
self.tr('Input layers'), ParameterMultipleInput.TYPE_RASTER))
self.addParameter(ParameterBoolean(merge.PCT,
@@ -41,8 +41,8 @@ class nearblack(GdalAlgorithm):
WHITE = 'WHITE'

def defineCharacteristics(self):
self.name = 'Near black'
self.group = '[GDAL] Analysis'
self.name, self.i18n_name = self.trAlgorithm('Near black')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Analysis')
self.addParameter(ParameterRaster(nearblack.INPUT,
self.tr('Input layer'), False))
self.addParameter(ParameterNumber(nearblack.NEAR,
@@ -96,8 +96,8 @@ class Ogr2Ogr(OgrAlgorithm):
OPTIONS = 'OPTIONS'

def defineCharacteristics(self):
self.name = 'Convert format'
self.group = '[OGR] Conversion'
self.name, self.i18n_name = self.trAlgorithm('Convert format')
self.group, self.i18n_group = self.trAlgorithm('[OGR] Conversion')

self.addParameter(ParameterVector(self.INPUT_LAYER,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_ANY], False))
@@ -49,8 +49,8 @@ class Ogr2OgrBuffer(OgrAlgorithm):
OPTIONS = 'OPTIONS'

def defineCharacteristics(self):
self.name = 'Buffer vectors'
self.group = '[OGR] Geoprocessing'
self.name, self.i18n_name = self.trAlgorithm('Buffer vectors')
self.group, self.i18n_group = self.trAlgorithm('[OGR] Geoprocessing')

self.addParameter(ParameterVector(self.INPUT_LAYER,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_ANY], False))
@@ -123,6 +123,6 @@ def getConsoleCommands(self):
commands = ['ogr2ogr', GdalUtils.escapeAndJoin(arguments)]

return commands

def commandName(self):
return "ogr2ogr"
@@ -42,8 +42,8 @@ class Ogr2OgrClip(OgrAlgorithm):
OPTIONS = 'OPTIONS'

def defineCharacteristics(self):
self.name = 'Clip vectors by polygon'
self.group = '[OGR] Geoprocessing'
self.name, self.i18n_name = self.trAlgorithm('Clip vectors by polygon')
self.group, self.i18n_group = self.trAlgorithm('[OGR] Geoprocessing')

self.addParameter(ParameterVector(self.INPUT_LAYER,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_ANY], False))
@@ -86,6 +86,6 @@ def getConsoleCommands(self):
commands = ['ogr2ogr', GdalUtils.escapeAndJoin(arguments)]

return commands

def commandName(self):
return "ogr2ogr"
@@ -43,8 +43,8 @@ class Ogr2OgrClipExtent(OgrAlgorithm):
OPTIONS = 'OPTIONS'

def defineCharacteristics(self):
self.name = 'Clip vectors by extent'
self.group = '[OGR] Geoprocessing'
self.name, self.i18n_name = self.trAlgorithm('Clip vectors by extent')
self.group, self.i18n_group = self.trAlgorithm('[OGR] Geoprocessing')

self.addParameter(ParameterVector(self.INPUT_LAYER,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_ANY], False))
@@ -52,8 +52,8 @@ class Ogr2OgrDissolve(OgrAlgorithm):
OPTIONS = 'OPTIONS'

def defineCharacteristics(self):
self.name = 'Dissolve polygons'
self.group = '[OGR] Geoprocessing'
self.name, self.i18n_name = self.trAlgorithm('Dissolve polygons')
self.group, self.i18n_group = self.trAlgorithm('[OGR] Geoprocessing')

self.addParameter(ParameterVector(self.INPUT_LAYER,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_POLYGON], False))
@@ -138,6 +138,6 @@ def getConsoleCommands(self):
commands = ['ogr2ogr', GdalUtils.escapeAndJoin(arguments)]

return commands

def commandName(self):
return "ogr2ogr"
@@ -54,8 +54,8 @@ class Ogr2OgrOneSideBuffer(OgrAlgorithm):
OPTIONS = 'OPTIONS'

def defineCharacteristics(self):
self.name = 'Single sided buffers (and offset lines) for lines'
self.group = '[OGR] Geoprocessing'
self.name, self.i18n_name = self.trAlgorithm('Single sided buffers (and offset lines) for lines')
self.group, self.i18n_group = self.trAlgorithm('[OGR] Geoprocessing')

self.addParameter(ParameterVector(self.INPUT_LAYER,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_LINE], False))
@@ -45,8 +45,8 @@ class Ogr2OgrPointsOnLines(OgrAlgorithm):
OPTIONS = 'OPTIONS'

def defineCharacteristics(self):
self.name = 'Create points along lines'
self.group = '[OGR] Geoprocessing'
self.name, self.i18n_name = self.trAlgorithm('Create points along lines')
self.group, self.i18n_group = self.trAlgorithm('[OGR] Geoprocessing')

self.addParameter(ParameterVector(self.INPUT_LAYER,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_LINE], False))
@@ -70,8 +70,8 @@ def dbConnectionNames(self):
return settings.childGroups()

def defineCharacteristics(self):
self.name = 'Import layer/table as geometryless table into PostgreSQL database'
self.group = '[OGR] Miscellaneous'
self.name, self.i18n_name = self.trAlgorithm('Import layer/table as geometryless table into PostgreSQL database')
self.group, self.i18n_group = self.trAlgorithm('[OGR] Miscellaneous')
self.DB_CONNECTIONS = self.dbConnectionNames()
self.addParameter(ParameterSelection(self.DATABASE,
self.tr('Database (connection name)'), self.DB_CONNECTIONS))
@@ -193,6 +193,6 @@ def getConsoleCommands(self):
commands = ['ogr2ogr', GdalUtils.escapeAndJoin(arguments)]

return commands

def commandName(self):
return "ogr2ogr"
@@ -75,8 +75,8 @@ class Ogr2OgrToPostGis(OgrAlgorithm):
OPTIONS = 'OPTIONS'

def defineCharacteristics(self):
self.name = 'Import Vector into PostGIS database (new connection)'
self.group = '[OGR] Miscellaneous'
self.name, self.i18n_name = self.trAlgorithm('Import Vector into PostGIS database (new connection)')
self.group, self.i18n_group = self.trAlgorithm('[OGR] Miscellaneous')
self.addParameter(ParameterVector(self.INPUT_LAYER,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_ANY], False))
self.addParameter(ParameterSelection(self.GTYPE,
@@ -84,8 +84,8 @@ def dbConnectionNames(self):
return settings.childGroups()

def defineCharacteristics(self):
self.name = 'Import Vector into PostGIS database (available connections)'
self.group = '[OGR] Miscellaneous'
self.name, self.i18n_name = self.trAlgorithm('Import Vector into PostGIS database (available connections)')
self.group, self.i18n_group = self.trAlgorithm('[OGR] Miscellaneous')
self.DB_CONNECTIONS = self.dbConnectionNames()
self.addParameter(ParameterSelection(self.DATABASE,
self.tr('Database (connection name)'), self.DB_CONNECTIONS))

0 comments on commit 66a3d02

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