Compare commits

...

3 Commits

Author SHA1 Message Date
Sandro Santilli
4baff6e018 Release 1.14.1 2013-11-08 12:43:47 +01:00
Sandro Santilli
5b4184c2db Fix support for exponential notation in CartoCSS filter values
Closes #87.
Includes testcase
2013-11-08 12:34:34 +01:00
Sandro Santilli
895aa3b977 Prepare for 1.4.1 2013-10-31 16:02:40 +01:00
4 changed files with 37 additions and 12 deletions

View File

@@ -1,3 +1,8 @@
1.4.1 -- 2013-11-08
-------------------
* Fix support for exponential notation in CartoCSS filter values (#87)
1.4.0 -- 2013-10-31
-------------------

17
npm-shrinkwrap.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "windshaft-cartodb",
"version": "1.4.0",
"version": "1.4.1",
"dependencies": {
"node-varnish": {
"version": "0.1.1"
@@ -9,14 +9,14 @@
"version": "1.3.3"
},
"windshaft": {
"version": "0.14.1",
"version": "0.14.2",
"dependencies": {
"grainstore": {
"version": "0.14.1",
"version": "0.14.2",
"dependencies": {
"carto": {
"version": "0.9.5-cdb1",
"from": "git://github.com/CartoDB/carto.git#0.9.5-cdb1",
"version": "0.9.5-cdb2",
"from": "git://github.com/CartoDB/carto.git#0.9.5-cdb2",
"dependencies": {
"underscore": {
"version": "1.4.4"
@@ -128,17 +128,14 @@
}
},
"srs": {
"version": "0.3.6"
"version": "0.3.8"
},
"zipfile": {
"version": "0.4.2"
},
"sqlite3": {
"version": "2.1.18",
"version": "2.1.19",
"dependencies": {
"progress": {
"version": "1.0.1"
},
"tar.gz": {
"version": "0.1.1",
"dependencies": {

View File

@@ -1,7 +1,7 @@
{
"private": true,
"name": "windshaft-cartodb",
"version": "1.4.0",
"version": "1.4.1",
"description": "A map tile server for CartoDB",
"url": "https://github.com/CartoDB/Windshaft-cartodb",
"licenses": [{
@@ -21,7 +21,7 @@
"dependencies": {
"node-varnish": "0.1.1",
"underscore" : "~1.3.3",
"windshaft" : "~0.14.1",
"windshaft" : "~0.14.2",
"step": "0.0.x",
"generic-pool": "~2.0.3",
"redis": "~0.8.3",

View File

@@ -682,6 +682,29 @@ suite('multilayer', function() {
});
});
// See https://github.com/CartoDB/Windshaft-cartodb/issues/87
test("exponential notation in CartoCSS filter values", function(done) {
var layergroup = {
version: '1.0.1',
layers: [
{ options: {
sql: "select .4 as n, 'SRID=3857;POINT(0 0)'::geometry as the_geom_webmercator",
cartocss: '#s [n<=.2e-2] { marker-fill:red; }',
cartocss_version: '2.1.0',
} }
]
};
assert.response(server, {
url: '/tiles/layergroup?',
method: 'POST',
headers: {host: 'localhost', 'Content-Type': 'application/json' },
data: JSON.stringify(layergroup)
}, {}, function(res) {
assert.equal(res.statusCode, 200, res.statusCode + ': ' + res.body);
done();
});
});
suiteTeardown(function(done) {
// This test will add map_style records, like