Commit 2d255ae8 authored by Antoine Regimbeau's avatar Antoine Regimbeau

REFAC: rmv unused function and .c_str

parent 28715c84
......@@ -115,10 +115,8 @@ private:
// Apply SQL query, we use 'WHERE NOT' to delete element verifying the
// filtering expression
std::ostringstream sqloss;
sqloss.str("");
sqloss<<"SELECT * FROM \""<<layerName<<"\" WHERE NOT "<< expr;
auto layerTmp=buffer->ExecuteSQL(sqloss.str().c_str(), nullptr, nullptr);
std::string sqloss = "SELECT * FROM \""+layerName+"\" WHERE NOT "+ expr;
auto layerTmp=buffer->ExecuteSQL(sqloss , nullptr, nullptr);
// Get Ouput path (new File or Update)
std::string outPath(this->GetParameterString("in"));
......
......@@ -101,8 +101,6 @@ protected:
, ogr::DataSource* outputDS);
/** Multi-threading implementation */
virtual void BeforeThreadedGenerateVectorData();
/** Method to split the input OGRDataSource between several containers
* for each thread. Default is to put the same number of features for
......@@ -119,8 +117,6 @@ protected:
/** Fill output vectors for a particular output */
virtual void FillOneOutput( ogr::DataSource* outDS, bool update);
virtual void AfterThreadedGenerateVectorData();
/** Start of main processing loop */
virtual void ThreadedGenerateVectorData(const ogr::Layer& layerForThread,
itk::ThreadIdType threadid);
......@@ -164,9 +160,6 @@ protected:
/** Get a reference over the additional fields */
const std::vector<SimpleFieldDefn>& GetAdditionalFields() const;
/** PrintSelf method */
void PrintSelf(std::ostream& os, itk::Indent indent) const override;
/** Give access to in-memory input layers */
ogr::Layer GetInMemoryInput(unsigned int threadId);
......
......@@ -258,7 +258,7 @@ OGRDataToPolygonGeometricFeaturesFilter
// Call a method that can be overridden by a subclass to perform
// some calculations prior to splitting the main computations into
// separate threads
this->BeforeThreadedGenerateVectorData();
// this->BeforeThreadedGenerateVectorData();
// Split the data into in-memory layers
this->DispatchInputVectors();
......@@ -279,7 +279,7 @@ OGRDataToPolygonGeometricFeaturesFilter
// Call a method that can be overridden by a subclass to perform
// some calculations after all the threads have completed
this->AfterThreadedGenerateVectorData();
// this->AfterThreadedGenerateVectorData();
}
void
......@@ -417,18 +417,6 @@ OGRDataToPolygonGeometricFeaturesFilter
}
void
OGRDataToPolygonGeometricFeaturesFilter
::BeforeThreadedGenerateVectorData()
{
}
void
OGRDataToPolygonGeometricFeaturesFilter
::AfterThreadedGenerateVectorData()
{
}
// Callback routine used by the threading library. This routine just calls
// the ThreadedGenerateData method after setting the correct region for this
// thread.
......@@ -476,12 +464,5 @@ OGRDataToPolygonGeometricFeaturesFilter
return m_InMemoryOutputs[threadId]->GetLayerChecked(0);
}
void
OGRDataToPolygonGeometricFeaturesFilter
::PrintSelf(std::ostream& os, itk::Indent indent) const
{
Superclass::PrintSelf(os, indent);
}
} // end namespace otb
#endif
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