Fixing build of tools

This commit is contained in:
Dennis Luxen
2013-08-06 12:28:19 +02:00
parent 13f5baf608
commit 0f8239bc8e
2 changed files with 9 additions and 6 deletions
+4 -3
View File
@@ -350,9 +350,10 @@ public:
OGRFeature *poFeature;
poFeature = OGRFeature::CreateFeature( poLayer->GetLayerDefn() );
poFeature->SetGeometry( &lineString );
if( poLayer->CreateFeature( poFeature ) != OGRERR_NONE )
{
ERR( "Failed to create feature in shapefile.\n" );
if( poLayer->CreateFeature( poFeature ) != OGRERR_NONE ) {
throw OSRMException(
"Failed to create feature in shapefile."
);
}
OGRFeature::DestroyFeature( poFeature );
}