Skip to content

invalid loop #8

@mick

Description

@mick

using this data: https://gist.github.com/mick/3439b673dfd7e5ffd59e and geojson-cover 0.1.2 I get:

/bench-s2/cardboard/node_modules/geojson-cover/index.js:134
    return s2.getCover(llRings, cover_options).map(function(cell) {
              ^
Error: invalid loop
    at multipolygonIndex (/bench-s2/cardboard/node_modules/geojson-cover/index.js:134:15)
    at Object.module.exports.geometryIndexes (/bench-s2/cardboard/node_modules/geojson-cover/index.js:60:20)
    at Cardboard.insert (/bench-s2/cardboard/index.js:41:32)
    at /bench-s2/cardboard/cardboard:32:27
    at Array.forEach (native)
    at /bench-s2/cardboard/cardboard:28:25
    at ConcatStream.<anonymous> (/bench-s2/cardboard/node_modules/concat-stream/index.js:32:43)
    at ConcatStream.EventEmitter.emit (events.js:117:20)
    at finishMaybe (/bench-s2/cardboard/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:455:14)
    at endWritable (/bench-s2/cardboard/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:464:3)

cc: @morganherlocker

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions