Skip to content
Snippets Groups Projects
Commit 9da20479 authored by OTB Bot's avatar OTB Bot
Browse files

STYLE

parent 87784e82
No related branches found
No related tags found
No related merge requests found
......@@ -725,23 +725,23 @@ private:
AddProcess(fusionFilter, "Stitching polygons");
fusionFilter->GenerateData();
//REPACK the Layer in case of Shapefile.
//This request will remove features marked as deleted in the .dbf filename,
//and recomputed FID for each features (without holes).
//REPACK the Layer in case of Shapefile.
//This request will remove features marked as deleted in the .dbf filename,
//and recomputed FID for each features (without holes).
//Note : the GetDriver() Method has not been encapsulated in otb::ogr::DataSource,
//so we must access the OGR pointer by using .ogr()
std::string driverName(ogrDS->ogr().GetDriver()->GetName());
if ( driverName.find("ESRI Shapefile") != std::string::npos)
{
otbAppLogINFO(<<"REPACK the Shapefile ..."<<std::endl);
//In Shapefile format, the name of the DaaSource is also the name of the Layer.
std::string shpLayerName = itksys::SystemTools::GetFilenameWithoutExtension(GetParameterString("mode.vector.out"));
std::string repack("REPACK ");
repack = repack + shpLayerName;
ogrDS->ExecuteSQL(repack, NULL, NULL);
}
}
std::string driverName(ogrDS->ogr().GetDriver()->GetName());
if ( driverName.find("ESRI Shapefile") != std::string::npos)
{
otbAppLogINFO(<<"REPACK the Shapefile ..."<<std::endl);
//In Shapefile format, the name of the DaaSource is also the name of the Layer.
std::string shpLayerName = itksys::SystemTools::GetFilenameWithoutExtension(GetParameterString("mode.vector.out"));
std::string repack("REPACK ");
repack = repack + shpLayerName;
ogrDS->ExecuteSQL(repack, NULL, NULL);
}
}
}
}
EdisonSegmentationFilterType::Pointer m_Filter;
......
......@@ -123,7 +123,7 @@ OGRLayerStreamStitchingFilter<TInputImage>
startReporter = 50;
stopReporter = 100;
}
itk::ProgressReporter progress(this,0,2*nbRowStream*nbColStream,100,startReporter);*/
itk::ProgressReporter progress(this,0,2*nbRowStream*nbColStream,100,startReporter); */
for(unsigned int x=1; x<=nbColStream; x++)
{
......
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