unconditionally emit the SRID via @pnorman (https://github.com/mapnik/mapnik/pull/3319#issuecomment-189263651)
This commit is contained in:
parent
442cc281e1
commit
63df9eecff
2 changed files with 4 additions and 12 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue