diff --git a/src/filter_grid_decimation/grid_decimationFilter.cpp b/src/filter_grid_decimation/grid_decimationFilter.cpp index 30ded38..60f03a9 100755 --- a/src/filter_grid_decimation/grid_decimationFilter.cpp +++ b/src/filter_grid_decimation/grid_decimationFilter.cpp @@ -63,6 +63,9 @@ void GridDecimationFilter::ready(PointTableRef table) if (m_args->m_nameAddAttribut.empty()) throwError("The output_name_attribut must be given."); + + if (!m_args->m_nameWktgrid.empty()) + std::remove(m_args->m_nameWktgrid.c_str()); } void GridDecimationFilter::addDimensions(PointLayoutPtr layout)