Rename PostGIS' ST_Estimate_Extent to ST_EstimateExtent

This commit is contained in:
Peter Hicks 2017-02-19 20:46:30 +00:00
parent 4b17a417dc
commit f776977982
2 changed files with 2 additions and 2 deletions

View file

@ -1143,7 +1143,7 @@ box2d<double> pgraster_datasource::envelope() const
throw mapnik::datasource_exception("Pgraster Plugin: " + s_error.str()); throw mapnik::datasource_exception("Pgraster Plugin: " + s_error.str());
} }
s << "SELECT ST_XMin(ext),ST_YMin(ext),ST_XMax(ext),ST_YMax(ext)" s << "SELECT ST_XMin(ext),ST_YMin(ext),ST_XMax(ext),ST_YMax(ext)"
<< " FROM (SELECT ST_Estimated_Extent('"; << " FROM (SELECT ST_EstimatedExtent('";
if (! sch.empty()) if (! sch.empty())
{ {

View file

@ -1069,7 +1069,7 @@ box2d<double> postgis_datasource::envelope() const
if (estimate_extent_) if (estimate_extent_)
{ {
s << "SELECT ST_XMin(ext),ST_YMin(ext),ST_XMax(ext),ST_YMax(ext)" s << "SELECT ST_XMin(ext),ST_YMin(ext),ST_XMax(ext),ST_YMax(ext)"
<< " FROM (SELECT ST_Estimated_Extent('"; << " FROM (SELECT ST_EstimatedExtent('";
if (! schema_.empty()) if (! schema_.empty())
{ {