Comparing version
@@ -5,2 +5,6 @@ # Change Log | ||
## [1.7.0] - 02-27-2017 | ||
### Added | ||
* Support for geometry filters specified as strings | ||
## [1.6.0] - 02-27-2017 | ||
@@ -98,2 +102,3 @@ ### Added | ||
[1.6.0]: https://github.com/dmfenton/winnow/compare/v1.6.0...v1.7.0 | ||
[1.6.0]: https://github.com/dmfenton/winnow/compare/v1.6.0...v1.5.4 | ||
@@ -100,0 +105,0 @@ [1.5.4]: https://github.com/dmfenton/winnow/compare/v1.5.3...v1.5.4 |
@@ -79,2 +79,5 @@ var transformEnvelope = require('./geometry/transform-envelope') | ||
var geometry = options.geometry | ||
if (typeof geometry === 'string') { | ||
geometry = geometry.split(',').map(parseFloat) | ||
} | ||
if (Array.isArray(geometry)) { | ||
@@ -81,0 +84,0 @@ geometry = transformArray(geometry) |
{ | ||
"name": "winnow", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"description": "Apply sql-like filters to GeoJSON", | ||
@@ -16,3 +16,3 @@ "main": "dist/index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/dmfenton/winnow.git" | ||
"url": "git+https://github.com/FeatureServer/winnow.git" | ||
}, | ||
@@ -30,5 +30,5 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/dmfenton/winnow/issues" | ||
"url": "https://github.com/FeatureServer/winnow/issues" | ||
}, | ||
"homepage": "https://github.com/dmfenton/winnow#readme", | ||
"homepage": "https://github.com/FeatureServer/winnow#readme", | ||
"dependencies": { | ||
@@ -35,0 +35,0 @@ "@turf/bbox-polygon": "^3.10.3", |
43397
0.61%640
0.47%