From 24dde1e4d06dcdab388a462a31705d09684289a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Mon, 7 Mar 2016 15:27:46 +0100 Subject: [PATCH] Added config parameter to windshaft in order to use postgres' function ST_RemoveRepeatedPoints (set false by the default) Conflicts: lib/cartodb/server_options.js --- config/environments/development.js.example | 4 ++++ config/environments/production.js.example | 4 ++++ config/environments/staging.js.example | 4 ++++ config/environments/test.js.example | 6 +++++- 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/config/environments/development.js.example b/config/environments/development.js.example index 480f15b8..24a2f847 100644 --- a/config/environments/development.js.example +++ b/config/environments/development.js.example @@ -163,6 +163,10 @@ var config = { // 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 + // geometries will be simplified using ST_RemoveRepeatedPoints + // which cost is no more expensive than snapping and results are + // much closer to the original geometry + removeRepeatedPoints: false // this requires postgis >=2.2 } }, diff --git a/config/environments/production.js.example b/config/environments/production.js.example index 2a457768..5ffdf712 100644 --- a/config/environments/production.js.example +++ b/config/environments/production.js.example @@ -157,6 +157,10 @@ var config = { // 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 + // geometries will be simplified using ST_RemoveRepeatedPoints + // which cost is no more expensive than snapping and results are + // much closer to the original geometry + removeRepeatedPoints: false // this requires postgis >=2.2 } }, diff --git a/config/environments/staging.js.example b/config/environments/staging.js.example index 72195fef..056e94cb 100644 --- a/config/environments/staging.js.example +++ b/config/environments/staging.js.example @@ -157,6 +157,10 @@ var config = { // 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 + // geometries will be simplified using ST_RemoveRepeatedPoints + // which cost is no more expensive than snapping and results are + // much closer to the original geometry + removeRepeatedPoints: false // this requires postgis >=2.2 } }, diff --git a/config/environments/test.js.example b/config/environments/test.js.example index 00c19628..9ab940f4 100644 --- a/config/environments/test.js.example +++ b/config/environments/test.js.example @@ -156,7 +156,11 @@ 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: false, // this requires postgis >=2.2 and geos >=3.5 + // geometries will be simplified using ST_RemoveRepeatedPoints + // which cost is no more expensive than snapping and results are + // much closer to the original geometry + removeRepeatedPoints: false // this requires postgis >=2.2 } }, http: {