Skip to content
Snippets Groups Projects
Commit 0821bb9e authored by Julien Michel's avatar Julien Michel
Browse files

ENH: Avoid explicit calls to OGRVersionProxy member types

parent d2969376
No related branches found
No related tags found
No related merge requests found
...@@ -675,10 +675,8 @@ private: ...@@ -675,10 +675,8 @@ private:
//and recomputed FID for each features (without holes). //and recomputed FID for each features (without holes).
//Note : the GetDriver() Method has not been encapsulated in otb::ogr::DataSource, //Note : the GetDriver() Method has not been encapsulated in otb::ogr::DataSource,
//so we must access the OGR pointer by using .ogr() //so we must access the OGR pointer by using .ogr()
otb::OGRVersionProxy::GDALDatasetType & gdalDS = ogrDS->ogr(); std::string driverName(ogrDS->ogr().GetDriver()->GetName());
otb::OGRVersionProxy::GDALDriverType * gdalDriver = gdalDS.GetDriver();
std::string driverName(gdalDriver->GetName());
if ( driverName.find("ESRI Shapefile") != std::string::npos) if ( driverName.find("ESRI Shapefile") != std::string::npos)
{ {
otbAppLogINFO(<<"REPACK the Shapefile ..."<<std::endl); otbAppLogINFO(<<"REPACK the Shapefile ..."<<std::endl);
......
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