From f776977982fcac5f834bb45dcb4ac7e6204d1ed9 Mon Sep 17 00:00:00 2001 From: Peter Hicks Date: Sun, 19 Feb 2017 20:46:30 +0000 Subject: [PATCH] Rename PostGIS' ST_Estimate_Extent to ST_EstimateExtent --- plugins/input/pgraster/pgraster_datasource.cpp | 2 +- plugins/input/postgis/postgis_datasource.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/input/pgraster/pgraster_datasource.cpp b/plugins/input/pgraster/pgraster_datasource.cpp index 2841a1da7..093c8bd00 100644 --- a/plugins/input/pgraster/pgraster_datasource.cpp +++ b/plugins/input/pgraster/pgraster_datasource.cpp @@ -1143,7 +1143,7 @@ box2d pgraster_datasource::envelope() const throw mapnik::datasource_exception("Pgraster Plugin: " + s_error.str()); } 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()) { diff --git a/plugins/input/postgis/postgis_datasource.cpp b/plugins/input/postgis/postgis_datasource.cpp index 6a1a9b645..c9f20b76d 100644 --- a/plugins/input/postgis/postgis_datasource.cpp +++ b/plugins/input/postgis/postgis_datasource.cpp @@ -1069,7 +1069,7 @@ box2d postgis_datasource::envelope() const if (estimate_extent_) { 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()) {