(x)
| 94 | } |
| 95 | // Parse geographic bounding box coordinates from command line |
| 96 | function BoundingBox(x) { |
| 97 | if (!(this instanceof BoundingBox)) return new BoundingBox(x); |
| 98 | const v = x.match(/[+-]?\d+(?:\.\d*)?|\.\d+/g); |
| 99 | this.poly = turf.bboxPolygon(v.slice(0,4).map(x => Number(x))); |
| 100 | } |
| 101 | const optionsList = [ |
| 102 | {name: 'help', alias: 'h', type: Boolean, description: 'Display this usage guide.', defaultValue: false}, |
| 103 | {name: 'verbose', alias: 'v', type: Boolean, description: 'Print detailed CSV output for each query', defaultValue: false}, |
no test coverage detected