trim tokens when parsing extent
This commit is contained in:
parent
4226f293b2
commit
be1d437e8b
1 changed files with 3 additions and 3 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue