cutting-room-floor / geojson-cover Goto Github PK
View Code? Open in Web Editor NEWgenerates an s2 cover from geojson
License: MIT License
generates an s2 cover from geojson
License: MIT License
Here are a couple gists of features that were invalid. Might be good candidates for invalid test cases. All sources are available from mapnik-test-data
.
https://gist.github.com/GretaCB/b92801286fadd811fb32
https://gist.github.com/GretaCB/50c85cc23330dfb84bac
https://gist.github.com/GretaCB/b93d2871a040be864976
cc @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
this can probably use https://github.com/mapbox/geojson-flatten
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.