Skip to content

Commit

Permalink
Fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis DELFORGES committed Jan 21, 2025
1 parent 059282d commit bf6b661
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions ogr/ogrsf_frmts/dwg/ogrdwglayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,29 @@

void OGRDWGLayer::AddSRSIfPresent()
{
if(!poDS) return;
if (!poDS)
return;

OdRxModulePtr pOdSpatialReferenceModule = odrxDynamicLinker()->loadModule(L"OdSpatialReference");
OdRxModulePtr pOdSpatialReferenceModule =
odrxDynamicLinker()->loadModule(L"OdSpatialReference");
if (pOdSpatialReferenceModule.isNull())
{
CPLError(CE_Failure, CPLE_AppDefined, "Cannot load OdSpatialReference.tx The setup of MENTOR_DICTIONARY_PATH (or CS_MAP_DIR) is probably missing");
CPLError(CE_Failure, CPLE_AppDefined,
"Cannot load OdSpatialReference.tx The setup of "
"MENTOR_DICTIONARY_PATH (or CS_MAP_DIR) is probably missing");
return;
}

OdRxModulePtr pOdGeoDataModule = odrxDynamicLinker()->loadModule(L"OdGeoData");
OdRxModulePtr pOdGeoDataModule =
odrxDynamicLinker()->loadModule(L"OdGeoData");
if (pOdGeoDataModule.isNull())
{
CPLError(CE_Failure, CPLE_AppDefined, "Cannot load OdGeoData.tx . GEO Protocol Extension (PE) interfaces couldn't have been loaded");
CPLError(CE_Failure, CPLE_AppDefined,
"Cannot load OdGeoData.tx . GEO Protocol Extension (PE) "
"interfaces couldn't have been loaded");
return;
}


OdDbDatabasePtr pDb = poDS->GetDB();
if (pDb.isNull())
{
Expand Down Expand Up @@ -62,7 +68,8 @@ void OGRDWGLayer::AddSRSIfPresent()
OdDbGeoCoordinateSystem::create(pGeoData->coordinateSystem(), pCS);
if (pCS.isNull())
{
CPLError(CE_Failure, CPLE_AppDefined, "Failed to create GeoCoordinateSystem.");
CPLError(CE_Failure, CPLE_AppDefined,
"Failed to create GeoCoordinateSystem.");
return;
}

Expand All @@ -82,14 +89,14 @@ void OGRDWGLayer::AddSRSIfPresent()
}
else
{
CPLError(CE_Warning, CPLE_AppDefined, "Invalid WKT format extracted.");
CPLError(CE_Warning, CPLE_AppDefined,
"Invalid WKT format extracted.");
}
}else
}
else
{
CPLError(CE_Warning, CPLE_AppDefined, "Cannot get WKT Representation ");
}


}

/************************************************************************/
Expand Down

0 comments on commit bf6b661

Please sign in to comment.