+ use ST_xxx

This commit is contained in:
artemp 2012-07-02 17:59:47 +01:00 committed by Dane Springmeyer
parent 51bf0ef2a5
commit 47e5b3c95e

View file

@ -136,7 +136,7 @@ void pgsql2sqlite(Connection conn,
// add AsBinary(<geometry_column>) modifier
std::string select_sql_str = select_sql.str();
boost::algorithm::replace_all(select_sql_str, "\"" + geom_col + "\"","AsBinary(" + geom_col+") as " + geom_col);
boost::algorithm::replace_all(select_sql_str, "\"" + geom_col + "\"","ST_AsBinary(" + geom_col+") as " + geom_col);
#ifdef MAPNIK_DEBUG
std::cout << select_sql_str << "\n";