Skip to content
Snippets Groups Projects
Commit b046cb8a authored by Cédric Traizet's avatar Cédric Traizet
Browse files

ENH: remove complex image parameter from qgis descriptor

parent 7bd94bf9
Branches 1980-upgrade-gdal-proj-and-geotiff-in-superbuild
No related tags found
No related merge requests found
......@@ -71,8 +71,6 @@ int main(int argc, char* argv[])
parameterTypeToString[ParameterType_OutputVectorData] = "QgsProcessingParameterVectorDestination";
parameterTypeToString[ParameterType_OutputFilename] = "QgsProcessingParameterFileDestination";
parameterTypeToString[ParameterType_Directory] = "QgsProcessingParameterFile";
parameterTypeToString[ParameterType_ComplexInputImage] = "QgsProcessingParameterRasterLayer";
parameterTypeToString[ParameterType_ComplexOutputImage] = "QgsProcessingParameterRasterDestination";
// TODO
parameterTypeToString[ParameterType_StringList] = "QgsProcessingParameterString";
// ListView parameters are treated as plain string (QLineEdit) in qgis processing ui.
......@@ -258,8 +256,7 @@ int main(int argc, char* argv[])
// setting default_value this way is an exception for ParameterType_StringList and ParameterType_String
default_value = "None|True";
}
else if (type == ParameterType_InputImage ||
type == ParameterType_ComplexInputImage)
else if (type == ParameterType_InputImage)
{
// default is None and nothing to add to dFile
}
......@@ -285,8 +282,7 @@ int main(int argc, char* argv[])
}
else if(type == ParameterType_OutputVectorData ||
type == ParameterType_OutputImage ||
type == ParameterType_OutputFilename ||
type == ParameterType_ComplexOutputImage)
type == ParameterType_OutputFilename)
{
// No need for default_value, optional and extra fields in dFile.
// If parameter is a destination type. qgis_type|name|description is enough.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment