diff --git a/NEWS.md b/NEWS.md index a6889830..f7f738bb 100644 --- a/NEWS.md +++ b/NEWS.md @@ -12,6 +12,7 @@ Breaking changes: - Drop support for Redis 3 Announcements: +- In configuration, set `clipByBox2d` to true by default - Update docs: compatible Node.js and npm versions - Report fine-grained Garbage Collector stats - Adding Authorization to Access-Control-Allow-Headers (https://github.com/CartoDB/CartoDB-SQL-API/issues/534) diff --git a/config/environments/development.js.example b/config/environments/development.js.example index 0cddec6c..ed0aaf58 100644 --- a/config/environments/development.js.example +++ b/config/environments/development.js.example @@ -127,9 +127,8 @@ var config = { cache_ttl: 60000, statsInterval: 5000, // milliseconds between each report to statsd about number of renderers and mapnik pool status mvt: { - //If enabled, MVTs will be generated with PostGIS directly, instead of using Mapnik, - //PostGIS 2.4 is required for this to work - //If disabled it will use Mapnik MVT generation + //If enabled, MVTs will be generated with PostGIS directly + //If disabled, MVTs will be generated with Mapnik MVT usePostGIS: true }, mapnik: { @@ -186,7 +185,7 @@ var config = { // SQL queries will be wrapped with ST_ClipByBox2D // Returning the portion of a geometry falling within a rectangle // It will only work if snapToGrid is enabled - clipByBox2d: false, // this requires postgis >=2.2 and geos >=3.5 + clipByBox2d: true, postgis: { // Parameters to pass to datasource plugin of mapnik diff --git a/config/environments/production.js.example b/config/environments/production.js.example index f73a095c..bc34db81 100644 --- a/config/environments/production.js.example +++ b/config/environments/production.js.example @@ -127,9 +127,8 @@ var config = { cache_ttl: 60000, statsInterval: 5000, // milliseconds between each report to statsd about number of renderers and mapnik pool status mvt: { - //If enabled, MVTs will be generated with PostGIS directly, instead of using Mapnik, - //PostGIS 2.4 is required for this to work - //If disabled it will use Mapnik MVT generation + //If enabled, MVTs will be generated with PostGIS directly + //If disabled, MVTs will be generated with Mapnik MVT usePostGIS: true }, mapnik: { @@ -186,7 +185,7 @@ var config = { // SQL queries will be wrapped with ST_ClipByBox2D // Returning the portion of a geometry falling within a rectangle // It will only work if snapToGrid is enabled - clipByBox2d: false, // this requires postgis >=2.2 and geos >=3.5 + clipByBox2d: true, postgis: { // Parameters to pass to datasource plugin of mapnik diff --git a/config/environments/staging.js.example b/config/environments/staging.js.example index 9bef903d..41f8e281 100644 --- a/config/environments/staging.js.example +++ b/config/environments/staging.js.example @@ -127,9 +127,8 @@ var config = { cache_ttl: 60000, statsInterval: 5000, // milliseconds between each report to statsd about number of renderers and mapnik pool status mvt: { - //If enabled, MVTs will be generated with PostGIS directly, instead of using Mapnik, - //PostGIS 2.4 is required for this to work - //If disabled it will use Mapnik MVT generation + //If enabled, MVTs will be generated with PostGIS directly + //If disabled, MVTs will be generated with Mapnik MVT usePostGIS: true }, mapnik: { @@ -186,7 +185,7 @@ var config = { // SQL queries will be wrapped with ST_ClipByBox2D // Returning the portion of a geometry falling within a rectangle // It will only work if snapToGrid is enabled - clipByBox2d: false, // this requires postgis >=2.2 and geos >=3.5 + clipByBox2d: true, postgis: { // Parameters to pass to datasource plugin of mapnik diff --git a/config/environments/test.js.example b/config/environments/test.js.example index 7f4e4149..05c5e94c 100644 --- a/config/environments/test.js.example +++ b/config/environments/test.js.example @@ -127,9 +127,8 @@ var config = { cache_ttl: 60000, statsInterval: 5000, // milliseconds between each report to statsd about number of renderers and mapnik pool status mvt: { - //If enabled, MVTs will be generated with PostGIS directly, instead of using Mapnik, - //PostGIS 2.4 is required for this to work - //If disabled it will use Mapnik MVT generation + //If enabled, MVTs will be generated with PostGIS directly + //If disabled, MVTs will be generated with Mapnik MVT usePostGIS: true }, mapnik: { @@ -186,7 +185,7 @@ var config = { // SQL queries will be wrapped with ST_ClipByBox2D // Returning the portion of a geometry falling within a rectangle // It will only work if snapToGrid is enabled - clipByBox2d: false, // this requires postgis >=2.2 and geos >=3.5 + clipByBox2d: true, postgis: { // Parameters to pass to datasource plugin of mapnik