fix compile with older OGR

This commit is contained in:
Dane Springmeyer 2014-08-18 21:33:18 -07:00
parent 0be6c2d7e1
commit 542deba997

View file

@ -267,12 +267,12 @@ void ogr_datasource::init(mapnik::parameters const& params)
{ {
if (layer->GetFeatureCount() == 0) 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 else
{ {
std::ostringstream s; 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()); throw datasource_exception(s.str());
} }
} }