trim tokens when parsing extent

This commit is contained in:
Artem Pavlenko 2009-04-27 18:39:33 +00:00
parent 4226f293b2
commit be1d437e8b

View file

@ -89,11 +89,11 @@ postgis_datasource::postgis_datasource(parameters const& params)
{
try
{
d[i] = boost::lexical_cast<double>(*beg);
d[i] = boost::lexical_cast<double>(boost::trim_copy(*beg));
}
catch (boost::bad_lexical_cast & ex)
{
std::clog << ex.what() << "\n";
std::clog << *beg << " : " << ex.what() << "\n";
break;
}
if (i==3)
@ -156,7 +156,7 @@ postgis_datasource::postgis_datasource(parameters const& params)
}
catch (bad_lexical_cast &ex)
{
clog << ex.what() << endl;
clog << rs->getValue("srid") << ":" << ex.what() << endl;
}
geometryColumn_=rs->getValue("f_geometry_column");
std::string postgisType=rs->getValue("type");