Skip to content
Permalink
Browse files

[processing] fixed commandline names in gdal algorithms

  • Loading branch information
volaya committed Oct 6, 2013
1 parent acbd165 commit 1b04c518254717a30f25ae18dc81f15f4325b90f
@@ -64,6 +64,9 @@ class gdaladdo(GeoAlgorithm):
def getIcon(self):
filepath = os.path.dirname(__file__) + '/icons/raster-overview.png'
return QtGui.QIcon(filepath)

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

def defineCharacteristics(self):
self.name = 'Build overviews (pyramids)'
@@ -27,13 +27,10 @@

import os
from PyQt4 import QtGui

from processing.core.GeoAlgorithm import GeoAlgorithm

from processing.parameters.ParameterRaster import ParameterRaster
from processing.parameters.ParameterBoolean import ParameterBoolean
from processing.outputs.OutputHTML import OutputHTML

from processing.gdal.GdalUtils import GdalUtils


@@ -47,6 +44,9 @@ class information(GeoAlgorithm):
def getIcon(self):
filepath = os.path.dirname(__file__) + '/icons/raster-info.png'
return QtGui.QIcon(filepath)

def commandLineName(self):
return "gdalorg:rasterinfo"

def defineCharacteristics(self):
self.name = 'Information'
@@ -110,6 +110,10 @@ def defineCharacteristics(self):
''))

self.addOutput(OutputVector(self.OUTPUT_LAYER, 'Output layer'))

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


def processAlgorithm(self, progress):
if not gdalAvailable:
@@ -56,6 +56,9 @@ def defineCharacteristics(self):
[ParameterVector.VECTOR_TYPE_ANY], False))

self.addOutput(OutputHTML(self.OUTPUT, 'Layer information'))

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

def processAlgorithm(self, progress):

@@ -25,15 +25,11 @@

__revision__ = '$Format:%H$'

import os
from PyQt4 import QtGui, QtCore

from processing.core.GeoAlgorithm import GeoAlgorithm

from processing.parameters.ParameterRaster import ParameterRaster
from processing.parameters.ParameterString import ParameterString
from processing.outputs.OutputVector import OutputVector

from processing.tools.system import *

from processing.gdal.GdalUtils import GdalUtils
@@ -48,6 +44,9 @@ class polygonize(GeoAlgorithm):
def getIcon(self):
filepath = os.path.dirname(__file__) + '/icons/polygonize.png'
return QtGui.QIcon(filepath)

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

def defineCharacteristics(self):
self.name = 'Polygonize (raster to vector)'
@@ -26,18 +26,14 @@
__revision__ = '$Format:%H$'

import os
from PyQt4 import QtGui, QtCore

from PyQt4 import QtGui
from processing.core.GeoAlgorithm import GeoAlgorithm

from processing.parameters.ParameterRaster import ParameterRaster
from processing.parameters.ParameterString import ParameterString
from processing.parameters.ParameterSelection import ParameterSelection
from processing.parameters.ParameterNumber import ParameterNumber
from processing.outputs.OutputRaster import OutputRaster

from processing.tools.system import *

from processing.gdal.GdalUtils import GdalUtils


@@ -56,6 +52,9 @@ class proximity(GeoAlgorithm):
def getIcon(self):
filepath = os.path.dirname(__file__) + '/icons/proximity.png'
return QtGui.QIcon(filepath)

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

def defineCharacteristics(self):
self.name = 'Proximity (raster distance)'
@@ -25,19 +25,16 @@

__revision__ = '$Format:%H$'

import os
from PyQt4 import QtGui, QtCore

from PyQt4 import QtGui

from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.tools.system import *

from processing.parameters.ParameterVector import ParameterVector
from processing.parameters.ParameterTableField import ParameterTableField
from processing.parameters.ParameterSelection import ParameterSelection
from processing.parameters.ParameterNumber import ParameterNumber

from processing.outputs.OutputRaster import OutputRaster

from processing.gdal.GdalUtils import GdalUtils


@@ -53,6 +50,9 @@ class rasterize(GeoAlgorithm):
def getIcon(self):
filepath = os.path.dirname(__file__) + '/icons/rasterize.png'
return QtGui.QIcon(filepath)

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

def defineCharacteristics(self):
self.name = 'Rasterize (vector to raster)'
@@ -57,6 +57,9 @@ class translate(GeoAlgorithm):
def getIcon(self):
filepath = os.path.dirname(__file__) + '/icons/translate.png'
return QtGui.QIcon(filepath)

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

def defineCharacteristics(self):
self.name = 'Translate (convert format)'
@@ -1,15 +1,15 @@
gdalogr:buildpyramidsoverviews,USE_ORIGINAL_NAME,Raster/Creation
gdalogr:overviews,USE_ORIGINAL_NAME,Raster/Creation
gdalogr:executesql,Execute SQL on vector layer,Vector/General tools
gdalogr:information,Raster layer information,Raster/General tools
gdalogr:rasterinfo,Raster layer information,Raster/General tools
gdalogr:merge,USE_ORIGINAL_NAME,Raster/General tools
gdalogr:nearblack,USE_ORIGINAL_NAME,Raster/Analysis
gdalogr:ogr2ogr,Export vector layer,Vector/General tools
gdalogr:ogrinfo,Vector layer information,Vector/Statistics
gdalogr:pct2rgb,PCT to RGB,Images/Image Manipulation
gdalogr:vectorinfo,Vector layer information,Vector/Statistics
gdalogr:pcttorgb,PCT to RGB,Images/Image Manipulation
gdalogr:proximity,USE_ORIGINAL_NAME,Raster/Analysis
gdalogr:rgb2pct,RGB to PCT,Images/Image Manipulation
gdalogr:rgbtopct,RGB to PCT,Images/Image Manipulation
gdalogr:sieve,Remove small pixel clumps (nearest neighbour),Raster/Edition
gdalogr:translateconvertformat,Export raster layer,Raster/General tools
gdalogr:translate,Export raster layer,Raster/General tools
gdalogr:warpreproject,Reproject raster layer,Raster/General tools
otb:bandmath,USE_ORIGINAL_NAME,Images/Miscellaneous
otb:binarymorphologicaloperation,USE_ORIGINAL_NAME,Images/Image Filtering

0 comments on commit 1b04c51

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