Skip to content

Commit

Permalink
[processing] added gdal algs to simplified interface, replacing saga …
Browse files Browse the repository at this point in the history
…ones
  • Loading branch information
volaya committed Jun 8, 2014
1 parent 7f11ca4 commit dc0f349
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/gdal/GridAverage.py
Expand Up @@ -47,6 +47,9 @@ class GridAverage(GdalAlgorithm):
ANGLE = 'ANGLE'
NODATA = 'NODATA'
OUTPUT = 'OUTPUT'

def commandLineName(self):
return "gdalogr:gridaverage"

def defineCharacteristics(self):
self.name = 'Grid (Moving average)'
Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/gdal/GridDataMetrics.py
Expand Up @@ -53,6 +53,9 @@ class GridDataMetrics(GdalAlgorithm):
DATA_METRICS = ['Minimum', 'Maximum', 'Range', 'Count', 'Average distance',
'Average distance between points']

def commandLineName(self):
return "gdalogr:griddatametrics"

def defineCharacteristics(self):
self.name = 'Grid (Data metrics)'
self.group = '[GDAL] Analysis'
Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/gdal/GridInvDist.py
Expand Up @@ -51,6 +51,9 @@ class GridInvDist(GdalAlgorithm):
NODATA = 'NODATA'
OUTPUT = 'OUTPUT'

def commandLineName(self):
return "gdalogr:gridinvdist"

def defineCharacteristics(self):
self.name = 'Grid (Inverse distance to a power)'
self.group = '[GDAL] Analysis'
Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/gdal/GridNearest.py
Expand Up @@ -47,6 +47,9 @@ class GridNearest(GdalAlgorithm):
NODATA = 'NODATA'
OUTPUT = 'OUTPUT'

def commandLineName(self):
return "gdalogr:gridnearestneighbor"

def defineCharacteristics(self):
self.name = 'Grid (Nearest neighbor)'
self.group = '[GDAL] Analysis'
Expand Down
16 changes: 9 additions & 7 deletions python/plugins/processing/gui/help/algclasssification.txt
Expand Up @@ -15,7 +15,12 @@ gdalogr:slope,USE_ORIGINAL_NAME,Domain specific/Terrain analysis and geomorphome
gdalogr:aspect,USE_ORIGINAL_NAME,Domain specific/Terrain analysis and geomorphometry
gdalogr:hillshade,USE_ORIGINAL_NAME,Domain specific/Viewsheds\Lighting
gdalogr:polygonize,Vectorize raster layer,Raster - vector/Raster -> Vector
gdalogr:rasterize,Rasterize vector layer,Raster - vector/Vector -> Raster
gdalogr:gridrasterize,Rasterize vector layer,Raster - vector/Vector -> Raster
gdalogr:gridnearestneighbor, Interpolate (Nearest Neighbor),Raster - vector/Vector -> Raster
gdalogr:griddatametrics, Interpolate (Data metrics),Raster - vector/Vector -> Raster
gdalogr:gridinvdist, Interpolate (Inverse distance weighting),Raster - vector/Vector -> Raster
gdalogr:gridaverage, Interpolate (Average),Raster - vector/Vector -> Raster
gdalogr:contour, Contour lines,Raster - vector/Raster -> Vector
otb:bandmath,USE_ORIGINAL_NAME,Images/Miscellaneous
otb:binarymorphologicaloperation,USE_ORIGINAL_NAME,Images/Image Filtering
otb:bundletoperfectsensor,USE_ORIGINAL_NAME,Images/Geometry
Expand Down Expand Up @@ -185,7 +190,6 @@ saga:closeonecellgaps,USE_ORIGINAL_NAME,Raster/General tools
saga:clusteranalysis,USE_ORIGINAL_NAME,Vector/General tools
saga:clusteranalysisforgrids,USE_ORIGINAL_NAME,Raster/Analysis
saga:combinegrids,USE_ORIGINAL_NAME,Raster/General tools
saga:contourlinesfromgrid,USE_ORIGINAL_NAME,Raster - vector/Raster -> Vector
saga:convergenceindex,USE_ORIGINAL_NAME,Domain specific/Terrain analysis and geomorphometry
saga:convergenceindexsearchradius,USE_ORIGINAL_NAME,Domain specific/Terrain analysis and geomorphometry
saga:convertdatastoragetype,USE_ORIGINAL_NAME,Raster/General tools
Expand All @@ -205,7 +209,7 @@ saga:creategraticule,Create graticule from extent,Vector/Creation
saga:croptodata,USE_ORIGINAL_NAME,Raster/General tools
saga:crossclassificationandtabulation,USE_ORIGINAL_NAME,Raster/General tools
saga:crossprofiles,USE_ORIGINAL_NAME,Domain specific/Terrain analysis and geomorphometry
saga:cubicsplineapproximation,USE_ORIGINAL_NAME,Raster - vector/Vector -> Raster
saga:cubicsplineapproximation, Interpolate (Cubic spline),Raster - vector/Vector -> Raster
saga:curvatureclassification,USE_ORIGINAL_NAME,Domain specific/Terrain analysis and geomorphometry
saga:cutshapeslayer,USE_ORIGINAL_NAME,Vector/Overlay
saga:dailytohourlypet,USE_ORIGINAL_NAME,Domain specific/Miscellaneous
Expand Down Expand Up @@ -267,7 +271,6 @@ saga:gridvaluestopoints,USE_ORIGINAL_NAME,Raster - vector/Raster -> Vector
saga:gridvaluestopointsrandomly,USE_ORIGINAL_NAME,Raster - vector/Raster -> Vector
saga:gridvolume,USE_ORIGINAL_NAME,Raster/Miscellaneous
saga:hypsometry,USE_ORIGINAL_NAME,Domain specific/Terrain analysis and geomorphometry
saga:inversedistanceweighted,USE_ORIGINAL_NAME,Raster - vector/Vector -> Raster
saga:invertdatanodata,USE_ORIGINAL_NAME,Raster/General tools
saga:kerneldensityestimation,USE_ORIGINAL_NAME,Raster/Statistics
saga:lakeflood,USE_ORIGINAL_NAME,Raster/Miscellaneous
Expand All @@ -287,7 +290,7 @@ saga:mergeshapeslayers,USE_ORIGINAL_NAME,Vector/General tools
saga:mergerasterlayers,USE_ORIGINAL_NAME,Raster/General tools
saga:metricconversions,USE_ORIGINAL_NAME,Raster/Edition
saga:minimumdistanceanalysis,USE_ORIGINAL_NAME,Vector/Points
saga:modifedquadraticshepard,USE_ORIGINAL_NAME,Raster - vector/Vector -> Raster
saga:modifedquadraticshepard,Interpolate (Modified quadratic shepard),Raster - vector/Vector -> Raster
saga:morphologicalfilter,USE_ORIGINAL_NAME,Raster/Filters
saga:morphometricprotectionindex,USE_ORIGINAL_NAME,Domain specific/Terrain analysis and geomorphometry
saga:multibandvariation,USE_ORIGINAL_NAME,Raster/Analysis
Expand All @@ -297,8 +300,7 @@ saga:multilevelbsplineinterpolationfromgrid,USE_ORIGINAL_NAME,Raster - vector/Ve
saga:multipleregressionanalysisgridgrids,USE_ORIGINAL_NAME,Raster/Statistics
saga:multipleregressionanalysispointsgrid,USE_ORIGINAL_NAME,Raster - vector/Raster - vector statistics
saga:multiresolutionindexofvalleybottomflatnessmrvbf,USE_ORIGINAL_NAME,Domain specific/Terrain analysis and geomorphometry
saga:naturalneighbour,USE_ORIGINAL_NAME,Raster - vector/Vector -> Raster
saga:nearestneighbour,USE_ORIGINAL_NAME,Raster - vector/Vector -> Raster
saga:naturalneighbour, Interpolate (Natural neighbor),Raster - vector/Vector -> Raster
saga:orderedweightedaveragingowa,USE_ORIGINAL_NAME,Raster/Analysis
saga:ordinarykriging,USE_ORIGINAL_NAME,Raster - vector/Vector -> Raster
saga:ordinarykrigingglobal,USE_ORIGINAL_NAME,Raster - vector/Vector -> Raster
Expand Down

0 comments on commit dc0f349

Please sign in to comment.