fix compile with older OGR
This commit is contained in:
parent
51baf411c3
commit
7c1f9b1490
1 changed files with 2 additions and 2 deletions
|
@ -266,12 +266,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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue