Commit 601412fc authored by Marina Bertolino's avatar Marina Bertolino

ENH: add KMeansFileNamesHandler constructor

parent ef594380
......@@ -100,12 +100,10 @@ private:
{
if (IsParameterEnabled("vm") && HasValue("vm")) ConnectKMClassificationMask();
KMeansFileNamesHandler fileNames;
KMeansFileNamesHandler fileNames(GetParameterString("out"));
const std::string fieldName = "field";
fileNames.CreateTemporaryFileNames(GetParameterString( "out" ));
// Create an image envelope
ComputeImageEnvelope(fileNames.tmpVectorFile);
// Add a new field at the ImageEnvelope output file
......
......@@ -147,7 +147,7 @@ public:
class KMeansFileNamesHandler
{
public :
void CreateTemporaryFileNames(const std::string &outPath)
KMeansFileNamesHandler(const std::string &outPath)
{
tmpVectorFile = outPath + "_imgEnvelope.shp";
polyStatOutput = outPath + "_polyStats.xml";
......
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