postgis: do not attempt to parse an empty extent string

This commit is contained in:
Dane Springmeyer 2012-08-30 15:04:05 -07:00
parent 90391f3bee
commit 2e44e8c470

View file

@ -91,7 +91,7 @@ postgis_datasource::postgis_datasource(parameters const& params, bool bind)
}
boost::optional<std::string> ext = params_.get<std::string>("extent");
if (ext)
if (ext && !ext->empty())
{
extent_initialized_ = extent_.from_string(*ext);
}