This commit is contained in:
artemp 2016-02-26 14:14:47 +01:00
parent 442cc281e1
commit 63df9eecff
2 changed files with 4 additions and 12 deletions

View file

@ -624,12 +624,8 @@ std::string pgraster_datasource::sql_bbox(box2d<double> const& env) const
b << "ST_MakeEnvelope(";
b << std::setprecision(16);
b << env.minx() << "," << env.miny() << ",";
b << env.maxx() << "," << env.maxy();
if (srid_ > 0)
{
b << ", " << srid_;
}
b << ")";
b << env.maxx() << "," << env.maxy() << ",";
b << srid_ << ")";
return b.str();
}

View file

@ -516,12 +516,8 @@ std::string postgis_datasource::sql_bbox(box2d<double> const& env) const
b << "ST_MakeEnvelope(";
b << std::setprecision(16);
b << env.minx() << "," << env.miny() << ",";
b << env.maxx() << "," << env.maxy();
if (srid_ > 0)
{
b << ", " << srid_;
}
b << ")";
b << env.maxx() << "," << env.maxy() << ",";
b << srid_ << ")";
return b.str();
}