Commit df25faaf authored by Mickael Savinaud's avatar Mickael Savinaud

ENH: move the input parameter of the app from inputfilename to inputvectordata...

ENH: move the input parameter of the app from inputfilename to inputvectordata one, to support a better intagration in QGIS processing framework
parent 92b02acb
......@@ -54,7 +54,7 @@ private:
SetDocSeeAlso("OGRLayerClassifier,TrainOGRLayersClassifier");
AddDocTag(Tags::Segmentation);
AddParameter(ParameterType_InputFilename, "inshp", "Name of the input shapefile");
AddParameter(ParameterType_InputVectorData, "inshp", "Name of the input shapefile");
SetParameterDescription("inshp","Name of the input shapefile");
AddParameter(ParameterType_InputFilename, "outstats", "XML file containing mean and variance of each feature.");
......
......@@ -63,7 +63,7 @@ private:
SetDocSeeAlso("ComputeOGRLayersFeaturesStatistics,TrainOGRLayersClassifier");
AddDocTag(Tags::Segmentation);
AddParameter(ParameterType_InputFilename, "inshp", "Name of the input shapefile");
AddParameter(ParameterType_InputVectorData, "inshp", "Name of the input shapefile");
SetParameterDescription("inshp","Name of the input shapefile");
AddParameter(ParameterType_InputFilename, "instats", "XML file containing mean and variance of each feature.");
......@@ -122,8 +122,8 @@ private:
void DoExecute()
{
#ifdef OTB_USE_LIBSVM
#ifdef OTB_USE_LIBSVM
clock_t tic = clock();
std::string shapefile = GetParameterString("inshp").c_str();
......@@ -221,8 +221,8 @@ private:
otbAppLogINFO( "Elapsed: "<< ((double)(toc - tic) / CLOCKS_PER_SEC)<<" seconds.");
#else
otbAppLogFATAL("Module LIBSVM is not installed. You should consider turning OTB_USE_LIBSVM on during cmake configuration.");
#endif
otbAppLogFATAL("Module LIBSVM is not installed. You should consider turning OTB_USE_LIBSVM on during cmake configuration.");
#endif
}
......
......@@ -63,7 +63,7 @@ private:
SetDocSeeAlso("OGRLayerClassifier,ComputeOGRLayersFeaturesStatistics");
AddDocTag(Tags::Segmentation);
AddParameter(ParameterType_InputFilename, "inshp", "Name of the input shapefile");
AddParameter(ParameterType_InputVectorData, "inshp", "Name of the input shapefile");
SetParameterDescription("inshp","Name of the input shapefile");
AddParameter(ParameterType_InputFilename, "instats", "XML file containing mean and variance of each feature.");
......@@ -121,7 +121,7 @@ private:
void DoExecute()
{
#ifdef OTB_USE_LIBSVM
#ifdef OTB_USE_LIBSVM
clock_t tic = clock();
std::string shapefile = GetParameterString("inshp");
......@@ -203,9 +203,9 @@ private:
otbAppLogINFO( "Elapsed: "<< ((double)(toc - tic) / CLOCKS_PER_SEC)<<" seconds.");
#else
otbAppLogFATAL("Module LIBSVM is not installed. You should consider turning OTB_USE_LIBSVM on during cmake configuration.");
#endif
otbAppLogFATAL("Module LIBSVM is not installed. You should consider turning OTB_USE_LIBSVM on during cmake configuration.");
#endif
}
};
......
......@@ -70,7 +70,7 @@ private:
AddDocTag(Tags::Vector);
AddParameter(ParameterType_InputFilename, "in", "Input vector dataset");
AddParameter(ParameterType_InputVectorData, "in", "Input vector dataset");
SetParameterDescription( "in", "The input vector dataset to be rasterized" );
AddParameter(ParameterType_OutputImage, "out", "Ouptut image");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment