From 542deba997bba8c87978299d6482db72be12ebad Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Mon, 18 Aug 2014 21:33:18 -0700 Subject: [PATCH] fix compile with older OGR --- plugins/input/ogr/ogr_datasource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/input/ogr/ogr_datasource.cpp b/plugins/input/ogr/ogr_datasource.cpp index 61dad3920..99b95daed 100644 --- a/plugins/input/ogr/ogr_datasource.cpp +++ b/plugins/input/ogr/ogr_datasource.cpp @@ -267,12 +267,12 @@ void ogr_datasource::init(mapnik::parameters const& params) { if (layer->GetFeatureCount() == 0) { - MAPNIK_LOG_ERROR(ogr) << "could not determine extent, layer '" << layer->GetName() << "' appears to have no features"; + MAPNIK_LOG_ERROR(ogr) << "could not determine extent, layer '" << layer->GetLayerDefn()->GetName() << "' appears to have no features"; } else { std::ostringstream s; - s << "OGR Plugin: Cannot determine extent for layer '" << layer->GetName() << "'. Please provide a manual extent string (minx,miny,maxx,maxy)."; + s << "OGR Plugin: Cannot determine extent for layer '" << layer->GetLayerDefn()->GetName() << "'. Please provide a manual extent string (minx,miny,maxx,maxy)."; throw datasource_exception(s.str()); } }