Merge pull request #864 from Algunenano/master_metrics

Add metrics option to Mapnik renderer (off by default)
This commit is contained in:
Raúl Marín 2018-02-06 16:48:22 +01:00 committed by GitHub
commit b32a0a6547
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 30 additions and 19 deletions

View File

@ -3,9 +3,9 @@
## 5.3.0 ## 5.3.0
Released 2018-mm-dd Released 2018-mm-dd
- Upgrades redis-mpool to 0.5.0 - Upgrades redis-mpool to 0.5.0
- Upgrades windshaft to 4.4.0 - Upgrades windshaft to 4.5.0
- Upgrades cartodb-redis to 0.15.0 - Upgrades cartodb-redis to 0.15.0
- Adds metrics option to the Mapnik renderer
## 5.2.1 ## 5.2.1
Released 2018-02-01 Released 2018-02-01

View File

@ -205,11 +205,12 @@ var config = {
// much closer to the original geometry // much closer to the original geometry
removeRepeatedPoints: false // this requires postgis >=2.2 removeRepeatedPoints: false // this requires postgis >=2.2
}, },
// If enabled Mapnik will reuse the features retrieved from the database // If enabled Mapnik will reuse the features retrieved from the database
// instead of requesting them once per style inside a layer // instead of requesting them once per style inside a layer
'cache-features': true 'cache-features': true,
// Require metrics to the renderer
metrics: false
}, },
http: { http: {
timeout: 2000, // the timeout in ms for a http tile request timeout: 2000, // the timeout in ms for a http tile request

View File

@ -202,7 +202,10 @@ var config = {
// If enabled Mapnik will reuse the features retrieved from the database // If enabled Mapnik will reuse the features retrieved from the database
// instead of requesting them once per style inside a layer // instead of requesting them once per style inside a layer
'cache-features': true 'cache-features': true,
// Require metrics to the renderer
metrics: false
}, },
http: { http: {

View File

@ -202,7 +202,10 @@ var config = {
// If enabled Mapnik will reuse the features retrieved from the database // If enabled Mapnik will reuse the features retrieved from the database
// instead of requesting them once per style inside a layer // instead of requesting them once per style inside a layer
'cache-features': true 'cache-features': true,
// Require metrics to the renderer
metrics: false
}, },
http: { http: {

View File

@ -201,8 +201,10 @@ var config = {
// If enabled Mapnik will reuse the features retrieved from the database // If enabled Mapnik will reuse the features retrieved from the database
// instead of requesting them once per style inside a layer // instead of requesting them once per style inside a layer
'cache-features': true 'cache-features': true,
// Require metrics to the renderer
metrics: false
}, },
http: { http: {
timeout: 2000, // the timeout in ms for a http tile request timeout: 2000, // the timeout in ms for a http tile request

View File

@ -15,6 +15,7 @@ var rendererConfig = _.defaults(global.environment.renderer || {}, {
bufferSize: 64, bufferSize: 64,
snapToGrid: false, snapToGrid: false,
clipByBox2d: false, clipByBox2d: false,
metrics: false,
limits: {} limits: {}
}, },
http: {} http: {}

View File

@ -47,7 +47,7 @@
"step-profiler": "~0.3.0", "step-profiler": "~0.3.0",
"turbo-carto": "0.20.2", "turbo-carto": "0.20.2",
"underscore": "~1.6.0", "underscore": "~1.6.0",
"windshaft": "4.4.0", "windshaft": "4.5.0",
"yargs": "~5.0.0" "yargs": "~5.0.0"
}, },
"devDependencies": { "devDependencies": {

View File

@ -27,6 +27,7 @@ module.exports = _.extend({}, serverOptions, {
snapToGrid: false, snapToGrid: false,
clipByBox2d: false, // this requires postgis >=2.2 and geos >=3.5 clipByBox2d: false, // this requires postgis >=2.2 and geos >=3.5
scale_factors: [1, 2], scale_factors: [1, 2],
metrics: false,
limits: { limits: {
render: 0, render: 0,
cacheOnTimeout: true cacheOnTimeout: true

View File

@ -1335,9 +1335,9 @@ mime@~1.2.11:
version "1.2.11" version "1.2.11"
resolved "https://registry.yarnpkg.com/mime/-/mime-1.2.11.tgz#58203eed86e3a5ef17aed2b7d9ebd47f0a60dd10" resolved "https://registry.yarnpkg.com/mime/-/mime-1.2.11.tgz#58203eed86e3a5ef17aed2b7d9ebd47f0a60dd10"
mime@~1.3.4: mime@~1.6.0:
version "1.3.6" version "1.6.0"
resolved "https://registry.yarnpkg.com/mime/-/mime-1.3.6.tgz#591d84d3653a6b0b4a3b9df8de5aa8108e72e5e0" resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1"
"minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4, minimatch@~3.0.2: "minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4, minimatch@~3.0.2:
version "3.0.4" version "3.0.4"
@ -2206,13 +2206,13 @@ through@2:
version "2.3.8" version "2.3.8"
resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
"tilelive-mapnik@github:cartodb/tilelive-mapnik#0.6.18-cdb4": "tilelive-mapnik@github:cartodb/tilelive-mapnik#0.6.18-cdb5":
version "0.6.18-cdb4" version "0.6.18-cdb5"
resolved "https://codeload.github.com/cartodb/tilelive-mapnik/tar.gz/510cfb6f033f7551f973886751643202d4cb5f4a" resolved "https://codeload.github.com/cartodb/tilelive-mapnik/tar.gz/cec846025e60837c60af193d600d972917ea8d35"
dependencies: dependencies:
"@carto/mapnik" "~3.6.2-carto.0" "@carto/mapnik" "~3.6.2-carto.0"
generic-pool "~2.4.0" generic-pool "~2.4.0"
mime "~1.3.4" mime "~1.6.0"
sphericalmercator "~1.0.4" sphericalmercator "~1.0.4"
step "~0.0.5" step "~0.0.5"
@ -2367,9 +2367,9 @@ window-size@^0.2.0:
version "0.2.0" version "0.2.0"
resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.2.0.tgz#b4315bb4214a3d7058ebeee892e13fa24d98b075" resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.2.0.tgz#b4315bb4214a3d7058ebeee892e13fa24d98b075"
windshaft@4.4.0: windshaft@4.5.0:
version "4.4.0" version "4.5.0"
resolved "https://registry.yarnpkg.com/windshaft/-/windshaft-4.4.0.tgz#16ecfa0fbda97347a061d3928c54d327be682e49" resolved "https://registry.yarnpkg.com/windshaft/-/windshaft-4.5.0.tgz#44f17073267d459c9a2b9f213250210b89d4d35d"
dependencies: dependencies:
"@carto/mapnik" "3.6.2-carto.2" "@carto/mapnik" "3.6.2-carto.2"
"@carto/tilelive-bridge" cartodb/tilelive-bridge#2.5.1-cdb1 "@carto/tilelive-bridge" cartodb/tilelive-bridge#2.5.1-cdb1
@ -2387,7 +2387,7 @@ windshaft@4.4.0:
sphericalmercator "1.0.4" sphericalmercator "1.0.4"
step "~0.0.6" step "~0.0.6"
tilelive "5.12.2" tilelive "5.12.2"
tilelive-mapnik cartodb/tilelive-mapnik#0.6.18-cdb4 tilelive-mapnik cartodb/tilelive-mapnik#0.6.18-cdb5
torque.js "~2.11.0" torque.js "~2.11.0"
underscore "~1.6.0" underscore "~1.6.0"