Do not run the query twice when exporting to KML
This commit is contained in:
parent
eb011269bb
commit
41dd23b429
1
NEWS.md
1
NEWS.md
@ -2,6 +2,7 @@
|
|||||||
-----
|
-----
|
||||||
* Fix parsing of numeric arrays (#88)
|
* Fix parsing of numeric arrays (#88)
|
||||||
* node-pool upgraded to 2.0.3
|
* node-pool upgraded to 2.0.3
|
||||||
|
* Reduce memory use on KML export
|
||||||
|
|
||||||
1.3.6 (DD/MM/YY)
|
1.3.6 (DD/MM/YY)
|
||||||
-----
|
-----
|
||||||
|
@ -215,7 +215,9 @@ function handleQuery(req, res) {
|
|||||||
// see https://github.com/Vizzuality/CartoDB-SQL-API/issues/80
|
// see https://github.com/Vizzuality/CartoDB-SQL-API/issues/80
|
||||||
sql += ' where ' + gn + ' is not null';
|
sql += ' where ' + gn + ' is not null';
|
||||||
}
|
}
|
||||||
} else if (format === 'shp') {
|
} else if (format === 'shp' || format === 'kml' ) {
|
||||||
|
// These format are implemented via OGR2OGR, so we don't
|
||||||
|
// need to run a query ourselves
|
||||||
return null;
|
return null;
|
||||||
} else if (format === 'svg') {
|
} else if (format === 'svg') {
|
||||||
var svg_ratio = svg_width/svg_height;
|
var svg_ratio = svg_width/svg_height;
|
||||||
|
Loading…
Reference in New Issue
Block a user